mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
mseparator.h
Go to the documentation of this file.
1 //
3 // IMPORTANT NOTICE
4 //
5 // The following open source license statement does not apply to any
6 // entity in the Exception List published by FMSoft.
7 //
8 // For more information, please visit:
9 //
10 // https://www.fmsoft.cn/exception-list
11 //
13 
54 #ifndef _MGUI_NCSCTRL_SPRTR_H
55 #define _MGUI_NCSCTRL_SPRTR_H
56 
57 
58 #ifdef __cplusplus
59 extern "C" {
60 #endif /* __cplusplus */
61 
72 #define NCSCTRL_SEPARATOR NCSCLASSNAME("separator")
73 
74 typedef struct _mSeparator mSeparator;
75 typedef struct _mSeparatorClass mSeparatorClass;
76 typedef struct _mSeparatorRenderer mSeparatorRenderer;
77 
78 #define mSeparatorHeader(clsName) \
79  mStaticHeader(clsName)
80 
86 struct _mSeparator
87 {
88  mSeparatorHeader(mSeparator)
89 };
90 
91 #define mSeparatorClassHeader(clsName, parentClass) \
92  mStaticClassHeader(clsName, parentClass)
93 
99 struct _mSeparatorClass
100 {
101  mSeparatorClassHeader(mSeparator, mStatic)
102 };
103 
104 #define mHSeparator mSeparator
105 #define mHSeparatorClass mSeparatorClass
106 #define g_stmHSeparatorCls g_stmSeparatorCls
107 #define mVSeparator mSeparator
108 #define mVSeparatorclass mSeparatorclass
109 #define g_stmVSeparatorCls g_stmSeparatorCls
110 
111 #define mSeparatorRendererHeader(clsName, parentClass) \
112  mStaticRendererHeader(clsName, parentClass)
113 
119 /* define the render of image static */
120 struct _mSeparatorRenderer {
121  mSeparatorRendererHeader(mSeparator, mStatic)
122 };
123 
129 MGNCS_EXPORT extern mSeparatorClass g_stmSeparatorCls;
130 
136 /* property */
138  NCSP_SPRTR_MAX = NCSP_STATIC_MAX + 1
139 };
140 
145 #define NCSS_SPRTR_VERT (0x1<<NCSS_STATIC_SHIFT)
146 #define NCSS_SPRTR_SHIFT (1+NCSS_STATIC_SHIFT)
147 
153  NCSN_SPRTR_MAX = NCSN_STATIC_MAX + 1
154 };
155 
159 #ifdef __cplusplus
160 }
161 #endif /* __cplusplus */
162 
163 #endif /* _MGUI_NCSCTRL_SPRTR_H */
164 
mSeparatorRenderer
separator class renderer interface, derived from mStaticRenderer
mSeparatorClass
struct of separator control, derived from mStaticClass
enumSeparatorNotify
enumSeparatorNotify
the notification code of mSeparator
Definition: mseparator.h:152
mSeparatorProp
mSeparatorProp
the properties id of mSeparator
Definition: mseparator.h:137
g_stmSeparatorCls
MGNCS_EXPORT mSeparatorClass g_stmSeparatorCls
global mSeparatorClass
mStatic
Static class, derived from mWidget.
mSeparator
separator class, derived from mStatic