mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
mseparator.h
Go to the documentation of this file.
1 
42 #ifndef _MGUI_NCSCTRL_SPRTR_H
43 #define _MGUI_NCSCTRL_SPRTR_H
44 
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif /* __cplusplus */
49 
60 #define NCSCTRL_SEPARATOR NCSCLASSNAME("separator")
61 
62 typedef struct _mSeparator mSeparator;
63 typedef struct _mSeparatorClass mSeparatorClass;
64 typedef struct _mSeparatorRenderer mSeparatorRenderer;
65 
66 #define mSeparatorHeader(clsName) \
67  mStaticHeader(clsName)
68 
74 struct _mSeparator
75 {
76  mSeparatorHeader(mSeparator)
77 };
78 
79 #define mSeparatorClassHeader(clsName, parentClass) \
80  mStaticClassHeader(clsName, parentClass)
81 
87 struct _mSeparatorClass
88 {
89  mSeparatorClassHeader(mSeparator, mStatic)
90 };
91 
92 #define mHSeparator mSeparator
93 #define mHSeparatorClass mSeparatorClass
94 #define g_stmHSeparatorCls g_stmSeparatorCls
95 #define mVSeparator mSeparator
96 #define mVSeparatorclass mSeparatorclass
97 #define g_stmVSeparatorCls g_stmSeparatorCls
98 
99 #define mSeparatorRendererHeader(clsName, parentClass) \
100  mStaticRendererHeader(clsName, parentClass)
101 
107 /* define the render of image static */
108 struct _mSeparatorRenderer {
109  mSeparatorRendererHeader(mSeparator, mStatic)
110 };
111 
117 MGNCS_EXPORT extern mSeparatorClass g_stmSeparatorCls;
118 
124 /* property */
126  NCSP_SPRTR_MAX = NCSP_STATIC_MAX + 1
127 };
128 
133 #define NCSS_SPRTR_VERT (0x1<<NCSS_STATIC_SHIFT)
134 #define NCSS_SPRTR_SHIFT (1+NCSS_STATIC_SHIFT)
135 
141  NCSN_SPRTR_MAX = NCSN_STATIC_MAX + 1
142 };
143 
147 #ifdef __cplusplus
148 }
149 #endif /* __cplusplus */
150 
151 #endif /* _MGUI_NCSCTRL_SPRTR_H */
152 
separator class, derived from mStatic
MGNCS_EXPORT mSeparatorClass g_stmSeparatorCls
global mSeparatorClass
struct of separator control, derived from mStaticClass
enumSeparatorNotify
the notification code of mSeparator
Definition: mseparator.h:140
Static class, derived from mWidget.
separator class renderer interface, derived from mStaticRenderer
mSeparatorProp
the properties id of mSeparator
Definition: mseparator.h:125