mcolorbutton.h

00001 #ifdef _MGNCSCTRL_COLORBUTTON
00002 
00003 #ifndef _MGUI_NCSCTRL_CLRBTN_H
00004 #define _MGUI_NCSCTRL_CLRBTN_H
00005 
00006 
00007 #ifdef __cplusplus
00008 extern "C" {
00009 #endif  /* __cplusplus */
00010 
00020 #define NCSCTRL_COLORBUTTON        NCSCLASSNAME("colorbutton")
00021 
00022 typedef struct _mColorButton mColorButton;
00023 typedef struct _mColorButtonClass mColorButtonClass;
00024 typedef struct _mColorButtonRenderer mColorButtonRenderer;
00025 
00026 #define mColorButtonHeader(clsName)   \
00027         mWidgetHeader(clsName)
00028 
00035 struct _mColorButton
00036 {
00037         mColorButtonHeader(mColorButton)
00038 };
00039 
00040 #define mColorButtonClassHeader(clsName, parentClass) \
00041         mWidgetClassHeader(clsName, parentClass)
00042 
00050 struct _mColorButtonClass
00051 {
00052         mColorButtonClassHeader(mColorButton, mWidget)
00053 };
00054 
00055 #define mColorButtonRendererHeader(clsName, parentClass) \
00056         mWidgetRendererHeader(clsName, parentClass)
00057 
00062 /* define the render of colorbutton */
00063 struct _mColorButtonRenderer {
00064         mColorButtonRendererHeader(mColorButton, mWidget)
00065 };
00066 
00071 MGNCS_EXPORT extern mColorButtonClass g_stmColorButtonCls;
00072 
00077 enum mColorButtonProp {
00084         NCSP_CLRBTN_CURCOLOR = NCSP_WIDGET_MAX + 1,
00085         NCSP_CLRBTN_MAX
00086 };
00087 
00088 #define NCSS_CLRBTN_SHIFT NCSS_WIDGET_SHIFT
00089 #define NCSS_CLRBTN_FLAT  (1<<NCSS_WIDGET_SHIFT)
00090 
00095 enum enumColorButtonNotify{
00102         NCSN_CLRBTN_COLORCHANGED = NCSN_WIDGET_MAX + 1,
00103         NCSN_CLRBTN_MAX
00104 };
00105 
00109 #ifdef __cplusplus
00110 }
00111 #endif  /* __cplusplus */
00112 
00113 #endif /* _MGUI_NCSCTRL_CLRBTN_H */
00114 #endif          //_MGNCSCTRL_COLORBUTTON
00115 
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3