mtoolbar.h

00001 #ifdef _MGNCSCTRL_TOOLBAR
00002 
00003 #ifndef _MGUI_NCSCTRL_TLBAR_H
00004 #define _MGUI_NCSCTRL_TLBAR_H
00005 
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif  /* __cplusplus */
00009 
00015 #include "mwidget.h"
00016 
00022 #define NCSCTRL_TOOLBAR   NCSCLASSNAME("toolbar")
00023 
00024 typedef struct _mToolBar mToolBar;
00025 typedef struct _mToolBarClass mToolBarClass;
00026 typedef struct _mToolBarRenderer mToolBarRenderer;
00027 
00028 /* define mToolBar */
00029 #define mToolBarHeader(clsName)  \
00030         mWidgetHeader(clsName)
00031 
00038 struct _mToolBar
00039 {
00040         mToolBarHeader(mToolBar)
00041 };
00042 
00043 /* define mToolBarClass */
00044 #define mToolBarClassHeader(clsName, parentClass)    \
00045         mWidgetClassHeader(clsName, parentClass) \
00046         BOOL (*addItem)(clsName*, void *item, int type, int min_size, int max_size); \
00047         int  (*isItemChecked)(clsName *, int id); \
00048         int  (*checkItem)(clsName *, int id, int state);
00049 
00083 struct _mToolBarClass
00084 {
00085         mToolBarClassHeader(mToolBar, mWidget)
00086 };
00087 
00088 /* define IRendererToolBar */
00089 #define mToolBarRendererHeader(clsName, parentClass) \
00090         mWidgetRendererHeader(clsName, parentClass)
00091 
00095 struct  _mToolBarRenderer {
00096         mToolBarRendererHeader(mToolBar, mWidget)
00097 };
00098 
00103 MGNCS_EXPORT extern mToolBarClass g_stmToolBarCls;
00104 
00105 /* define property of static */
00106 
00112 enum mToolBarProp {
00113         NCSP_TLBAR_MAX = NCSP_WIDGET_MAX + 1,
00114 };
00115 
00116 
00121 #define NCSS_TLBAR_SHIFT  (NCSS_WIDGET_SHIFT + 1)
00122 
00127 enum enumToolBarNotify {
00131         NCSN_TLBAR_ITEMCHAGED = NCSN_WIDGET_MAX + 1,
00132         NCSN_TLBAR_MAX
00133 };
00134 
00138 #ifdef __cplusplus
00139 }
00140 #endif  /* __cplusplus */
00141 
00142 #endif /* _MGUI_NCSCTRL_TLBAR_H */
00143 #endif //_MGNCSCTRL_TOOLBAR
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3