mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
mlistcolumn.h
Go to the documentation of this file.
1 
42 #ifndef _MGUI_WIDGET_LSTCLM_H
43 #define _MGUI_WIDGET_LSTCLM_H
44 
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif /* __cplusplus */
49 
55 typedef struct _mListColumn mListColumn;
56 typedef struct _mListColumnClass mListColumnClass;
57 
62 typedef enum
63 {
68 
73 
78 
79  NCSID_LSTCLM_MAXVALUE
81 
86 typedef struct _NCS_LSTCLM_SORTDATA
87 {
91  int column;
92 
96  int losorted;
97 
101  mWidget *obj;
103 
108 typedef int (*NCS_CB_LISTV_CMPCLM)(HITEM nItem1, HITEM nItem2, NCS_LSTCLM_SORTDATA *sortData);
109 
114 #define NCSF_LSTCLM_LEFTALIGN (0x00<<NCSF_ITEM_SHIFT)
115 
120 #define NCSF_LSTCLM_RIGHTALIGN (0x01<<NCSF_ITEM_SHIFT)
121 
126 #define NCSF_LSTCLM_CENTERALIGN (0x02<<NCSF_ITEM_SHIFT)
127 
132 #define NCSF_LSTCLM_TOPALIGN (0x00<<NCSF_ITEM_SHIFT)
133 
138 #define NCSF_LSTCLM_BOTTOMALIGN (0x04<<NCSF_ITEM_SHIFT)
139 
144 #define NCSF_LSTCLM_VCENTERALIGN (0x08<<NCSF_ITEM_SHIFT)
145 
150 #define NCSF_LSTCLM_VALIGNMASK (0x0C<<NCSF_ITEM_SHIFT)
151 
156 #define NCSF_LSTCLM_SHIFT (NCSF_ITEM_SHIFT+4)
157 
158 #define mListColumnHeader(className)\
159  mItemHeader(className) \
160  int startX; \
161  int width; \
162  ncsLstClmSortType sort; \
163  NCS_CB_LISTV_CMPCLM pfnCmp;
164 
181 struct _mListColumn
182 {
183  mListColumnHeader(mListColumn)
184 };
185 
186 #define mListColumnClassHeader(clsName, superCls) \
187  mItemClassHeader(clsName, superCls)
188 
194 struct _mListColumnClass
195 {
196  mListColumnClassHeader(mListColumn, mItem)
197 };
198 
203 typedef enum
204 {
209 
214 
219 
224 
230 
237 MGNCS_EXPORT extern mListColumnClass g_stmListColumnCls;
238 
241 #ifdef __cplusplus
242 }
243 #endif /* __cplusplus */
244 
245 #endif /* _MGUI_WIDGET_LSTCLM_H */
246 
MGNCS_EXPORT mListColumnClass g_stmListColumnCls
The instance of mListColumnClass.
GHANDLE HITEM
The handle of item widget.
Definition: mitem.h:63
The sort type.
define the mWidget members, inherit from mComponent
The virtual function table of mListColumn, which derived from mItemClass.
The structure of mListColumn. It&#39;s used as header by mListView.
ncsLstClmSortType
The sort type.
Definition: mlistcolumn.h:62
mListColumnProp
The properties id of mListColumn.
Definition: mlistcolumn.h:203
The structure of mItem. It is the abstract superclass of all items occur within specific controls...
int(* NCS_CB_LISTV_CMPCLM)(HITEM nItem1, HITEM nItem2, NCS_LSTCLM_SORTDATA *sortData)
The callback of comparison column function.
Definition: mlistcolumn.h:108