mledstatic.h

00001 #ifdef _MGNCSCTRL_LEDLABEL
00002 
00003 #ifndef _MGUI_NCSCTRL_LEDLABEL_H
00004 #define _MGUI_NCSCTRL_LEDLABEL_H
00005 
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif  /* __cplusplus */
00009 
00015 #include "mwidget.h"
00016 
00022 #define NCSCTRL_LEDLABEL   NCSCLASSNAME("ledlabel")
00023 
00024 
00025 typedef struct _mLEDLabel mLEDLabel;
00026 typedef struct _mLEDLabelClass mLEDLabelClass;
00027 typedef struct _mLEDLabelRenderer mLEDLabelRenderer;
00028 
00029 /* define mLEDLabel */
00030 #define mLEDLabelHeader(clsName)  \
00031         mStaticHeader(clsName)
00032 
00038 struct _mLEDLabel
00039 {
00040         mLEDLabelHeader(mLEDLabel)
00041 };
00042 
00043 /* define mLEDLabelClass */
00044 #define mLEDLabelClassHeader(clsName, parentClass)    \
00045         mStaticClassHeader(clsName, parentClass)
00046 
00052 struct _mLEDLabelClass
00053 {
00054         mLEDLabelClassHeader(mLEDLabel, mStatic)
00055 };
00056 
00057 
00058 /* define IRendererStatic */
00059 #define mLEDLabelRendererHeader(clsName, parentClass) \
00060         mStaticRendererHeader(clsName, parentClass)
00061 
00066 struct  _mLEDLabelRenderer {
00067         mLEDLabelRendererHeader(mLEDLabel, mStatic)
00068 };
00069 
00074 MGNCS_EXPORT extern mLEDLabelClass g_stmLEDLabelCls;
00075 
00076 /* define property of static */
00077 
00083 enum mLEDLabelProp {
00084         NCSP_LEDLBL_COLOR = NCSP_STATIC_MAX + 1,
00085         NCSP_LEDLBL_WIDTH,
00086         NCSP_LEDLBL_HEIGHT,
00087         NCSP_LEDLBL_GAP,
00088         NCSP_LEDLBL_MAX,
00089 };
00090 
00095 enum enumLEDLabelNotify {
00096         NCSN_LEDLBL_MAX = NCSN_STATIC_MAX + 1
00097 };
00098 
00099 // BOOL ncsLedDrawText(HDC hdc, char *str, int len, const RECT *rect, DWORD uflag, int width, int height);
00100 
00104 #ifdef __cplusplus
00105 }
00106 #endif  /* __cplusplus */
00107 
00108 #endif /* _MGUI_NCSCTRL_LEDLABEL_H */
00109 #endif //_MGNCSCTRL_LEDLABEL
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3