mGNCS API Reference
v1.2.0
A new control set and a new framework for MiniGUI apps
|
Modules | |
Global Component Functions | |
Gloal InvisibleComponent Functions | |
Global Object Functions | |
Global Control function | |
Data Structures | |
struct | _NCS_RDR_ENTRY |
typedef struct _NCS_RDR_ENTRY | NCS_RDR_ENTRY |
MGNCS_EXPORT DWORD | ncsGetElementEx (mWidget *self, const char *rdrName, int id) |
Get the value of element id in specified window or renderer. More... | |
MGNCS_EXPORT DWORD | ncsSetElementEx (mWidget *self, const char *rdrName, int id, DWORD value) |
Set the value of element id in specified window or renderer. More... | |
MGNCS_EXPORT GHANDLE | ncsLoadRdrEtcFile (const char *etcfile, const char **rdrName, int count) |
Load renderer configure file from file system or incore mode. More... | |
MGNCS_EXPORT int | ncsUnloadRdrEtcFile (GHANDLE hEtcFile) |
Unload renderer configuration file. More... | |
MGNCS_EXPORT mWidgetRenderer * | ncsRetriveCtrlRDR (const char *rendererName, const char *className) |
get a renderer of special control More... | |
MGNCS_EXPORT BOOL | ncsRegisterCtrlRDR (const char *rendererName, const char *className, mWidgetRenderer *renderer) |
register one of implemention of a special control into system More... | |
MGNCS_EXPORT void | ncsUnregisterCtrlRDRs (const char *rdrName, const char *className) |
unregister a special rdr More... | |
MGNCS_EXPORT BOOL | ncsRegisterCtrlRDRs (const char *rendererName, NCS_RDR_ENTRY *entries, int count) |
register a group of renderers into system More... | |
MGNCS_EXPORT BOOL | ncsSetSystemRenderer (const char *name) |
Set the System renderer. If a system renderer would be used by all the controls who haven't been set the property "renderer", see mWidget and mWidgetRenderer. More... | |
MGNCS_EXPORT const char * | ncsGetSystemRenderer (void) |
get the system renderer name More... | |
#define | NCS_TYPE_MASK WE_ATTR_TYPE_MASK |
#define | ncsGetElement(self, id) ncsGetElementEx((mWidget*)self, NULL, id) |
Get the value of element id in specified window. More... | |
#define | ncsSetElement(self, id, value) ncsSetElementEx((mWidget*)self, NULL, id, value) |
Set the value of element id in specified window. More... | |
#define NCS_TYPE_MASK WE_ATTR_TYPE_MASK |
#define ncsGetElement | ( | self, | |
id | |||
) | ncsGetElementEx((mWidget*)self, NULL, id) |
#define ncsSetElement | ( | self, | |
id, | |||
value | |||
) | ncsSetElementEx((mWidget*)self, NULL, id, value) |
typedef struct _NCS_RDR_ENTRY NCS_RDR_ENTRY |
A struct to include a Renderer register info
DWORD ncsGetElementEx | ( | mWidget * | self, |
const char * | rdrName, | ||
int | id | ||
) |
Get the value of element id in specified window or renderer.
When the window class is valid, it will return the element id value in current window. Otherwise return the value in specifed renderer.
self | The instance. |
rdrName | The renderer name. |
id | The window element id number, can be one of the following value:
|
const char * ncsGetSystemRenderer | ( | void | ) |
get the system renderer name
GHANDLE ncsLoadRdrEtcFile | ( | const char * | etcfile, |
const char ** | rdrName, | ||
int | count | ||
) |
Load renderer configure file from file system or incore mode.
etcfile | The name of configuration file. |
rdrName | The renderer name set. |
count | The array size of rdrName. |
BOOL ncsRegisterCtrlRDR | ( | const char * | rendererName, |
const char * | className, | ||
mWidgetRenderer * | renderer | ||
) |
register one of implemention of a special control into system
rendererName | - the name of renderer, eg. skin, classic, fashion, flat, and so on |
className | - the control's classname |
renderer | - the renderer which would be rensigered |
BOOL ncsRegisterCtrlRDRs | ( | const char * | rendererName, |
NCS_RDR_ENTRY * | entries, | ||
int | count | ||
) |
register a group of renderers into system
rendererName | - the name of special renderer |
entries | - the table of renderers, |
count | - the table size of entries |
mWidgetRenderer * ncsRetriveCtrlRDR | ( | const char * | rendererName, |
const char * | className | ||
) |
get a renderer of special control
rendererName | - the renderer name , eg. classic, skin, fashion, flat, and so |
className | - the control's className |
DWORD ncsSetElementEx | ( | mWidget * | self, |
const char * | rdrName, | ||
int | id, | ||
DWORD | value | ||
) |
Set the value of element id in specified window or renderer.
When the window class is valid, it will set the element id value in current window. Otherwise set the value in specifed renderer.
self | The instance. |
rdrName | The renderer name. |
id | The element id. |
value | The new value. |
BOOL ncsSetSystemRenderer | ( | const char * | name | ) |
Set the System renderer. If a system renderer would be used by all the controls who haven't been set the property "renderer", see mWidget and mWidgetRenderer.
name | - The name of system renderer. |
int ncsUnloadRdrEtcFile | ( | GHANDLE | hEtcFile | ) |
Unload renderer configuration file.
void ncsUnregisterCtrlRDRs | ( | const char * | rdrName = NULL , |
const char * | className = NULL |
||
) |
unregister a special rdr
rdrName | the name of the unregistering renender |
className | the special class of the render |