mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
minvisible-component.h
Go to the documentation of this file.
1 
43 #ifndef _MGUI_NCSCTRL_INVISIBLECOMP_H
44 #define _MGUI_NCSCTRL_INVISIBLECOMP_H
45 
46 #ifdef __cplusplus
47 extern "C"{
48 #endif
49 
54 typedef struct _mInvsbCompClass mInvsbCompClass;
55 typedef struct _mInvsbComp mInvsbComp;
56 
57 
58 #define mInvsbCompClassHeader(clss, superCls) \
59  mComponentClassHeader(clss, superCls)
60 
69 struct _mInvsbCompClass {
70  mInvsbCompClassHeader(mInvsbComp, mComponent)
71 };
72 
77 MGNCS_EXPORT extern mInvsbCompClass g_stmInvsbCompCls; //Class(mInvsbComp);
78 
79 
80 #define mInvsbCompHeader(clss) \
81  mComponentHeader(clss) \
82  int id; \
83  mComponent* parent, *prev, *next;
84 
96 struct _mInvsbComp {
97  mInvsbCompHeader(mInvsbComp)
98 };
99 
105  NCSP_IVCMPT_MAX = 0
106 };
107 
110 
112 
128 typedef struct _NCS_INVSB_CREATE_INFO {
136  int id;
149 
153  DWORD user_data;
155 
171 MGNCS_EXPORT mInvsbComp * ncsCreateInvsbComp(const char* class_name, mComponent* parent, int id, NCS_PROP_ENTRY *props, NCS_EVENT_HANDLER * handlers, DWORD user_data);
172 
184 MGNCS_EXPORT mInvsbComp * ncsCreateInvsbCompIndirect(const char* class_name, NCS_INVSB_CREATE_INFO *create_info);
185 
186 
191 #ifdef __cplusplus
192 }
193 #endif
194 
195 
196 #endif
197 
198 
struct _NCS_INVSB_CREATE_INFO NCS_INVSB_CREATE_INFO
NCS_EVENT_HANDLER * handlers
MGNCS_EXPORT mInvsbComp * ncsCreateInvsbComp(const char *class_name, mComponent *parent, int id, NCS_PROP_ENTRY *props, NCS_EVENT_HANDLER *handlers, DWORD user_data)
create an Invisible Component
Definition: mwidget.h:845
define the VTable of mInvsbComp, inherit mComponentClass
MGNCS_EXPORT mInvsbCompClass g_stmInvsbCompCls
the singleton mInvsbCompClass
the component member define
MGNCS_EXPORT mInvsbComp * ncsCreateInvsbCompIndirect(const char *class_name, NCS_INVSB_CREATE_INFO *create_info)
create an Invisible Component from creating info
ncsInvsbCompProp
the invisible component property define
define the mInvsbComp members , inherit from mComponent. An Invisible Component is a Component only s...