| #define ISCLASS | ( | class_name, | |||
| clssName | ) | ncsIsClass((const char*)(class_name), (mComponentClass*)(&Class(clssName))) |
the wrapper of ncsIsClass, test a one component class is special one.
Definition at line 443 of file mcomponent.h.
| typedef struct _NCS_EVENT_CONNECT_INFO NCS_EVENT_CONNECT_INFO |
A struct of connection map
| typedef struct _NCS_EVENT_HANDLER NCS_EVENT_HANDLER |
| BOOL ncsComponentConnectEvents | ( | mComponent * | comps, | |
| NCS_EVENT_CONNECT_INFO * | connects, | |||
| int | counts = -1 | |||
| ) |
connect the events between parent and its children, used by ncsCreateMainWindowIndirectFromID
| comps | the mComponent object pointer, it's the parent of the senders and listeners in NCS_EVENT_CONNECT_INFO | |
| connects | the connection information array | |
| counts | the count of connects array, if it's -1, the array must end by {0, 0, -1, NULL} |
| mComponentClass * ncsGetComponentClass | ( | const char * | className, | |
| BOOL | check | |||
| ) |
Get a mComponentClass instance from MiniGUI.
| className | the class name to find | |
| check | check the class name with found mComponentClass instance, to ensure that we found the right class |
| void * ncsGetComponentHandler | ( | mComponent * | comp, | |
| int | message | |||
| ) |
get an event callback
| comp | ||
| message | - event code |
| BOOL ncsIsChildClass | ( | const char * | childClassName, | |
| const char * | parentClassName | |||
| ) |
check a class name is derived class of a special class
| childClassName | - the class name to be checked, the component class name, not the typeName of mObject | |
| parentClassName | - the class name expected as child class's ancestor, the component class name, not the typeName of mObject |
| BOOL ncsIsClass | ( | const char * | class_name, | |
| mComponentClass * | clss | |||
| ) |
check a class name is a special class type or not
| class_name | the class name to check, this is the component class Name, not the typeName of mObject. | |
| clss | the expected class type pointer |
| BOOL ncsRegisterComponent | ( | mComponentClass * | compCls, | |
| DWORD | dwStyle, | |||
| DWORD | dwExStyle, | |||
| int | idCursor, | |||
| int | idBkColor | |||
| ) |
register a component class into MiniGUI, so that ncsCreateWindow and ncsCreateWindow can find a mComponentClass instance
| compCls | the mComponentClass to be registered | |
| dwStyle | the default style | |
| dwExStyle | the default extend style | |
| idCursor | the default cursor | |
| idBkColor | the default background color |
| void * ncsSetComponentHandler | ( | mComponent * | comp, | |
| int | message, | |||
| void * | handler | |||
| ) |
set the component handler
| comp | the compont to set | |
| message | the event code | |
| handler | the event callback pointer |
| void ncsSetComponentHandlers | ( | mComponent * | comp, | |
| NCS_EVENT_HANDLER * | handlers, | |||
| int | count | |||
| ) |
set an array of event handlers
| comp | - the component to set | |
| handlers | - the array of NCS_EVENT_HANDLER | |
| count | - the count of array handlers. |
1.6.3