mGNCS API Reference
v1.5.0
A new control set and a new framework for MiniGUI apps
|
Data Structures | |
struct | mButton |
Button class, derived from mWidget. More... | |
struct | mButtonClass |
button struct of button control, derived from mWidgetClass More... | |
struct | mButtonRenderer |
Button class renderer interface, derived from mWidgetRenderer. More... | |
Macros | |
#define | NCSCTRL_BUTTON NCSCLASSNAME("button") |
the name of button control More... | |
#define | NCSS_BUTTON_IMAGE (1<<NCSS_WIDGET_SHIFT) |
indicate a image button More... | |
#define | NCSS_BUTTON_CHECKABLE (2<<NCSS_WIDGET_SHIFT) |
indicate a chackable button More... | |
#define | NCSS_BUTTON_AUTOCHECK (4<<NCSS_WIDGET_SHIFT) |
indicate a auto check button More... | |
#define | NCSS_BUTTON_3DCHECK (8<<NCSS_WIDGET_SHIFT) |
indicate a three type (unchecked-halfchekced-checked) check button More... | |
#define | NCSS_BUTTON_IMAGELABEL (0x10<<NCSS_WIDGET_SHIFT) |
indicate a button with image and label More... | |
#define | NCSS_BUTTON_VERTIMAGELABEL (0x20<<NCSS_WIDGET_SHIFT) |
indicate a button with vertical image and label More... | |
Enumerations | |
enum | mButtonCheckState { NCS_BUTTON_UNCHECKED = 0, NCS_BUTTON_HALFCHECKED, NCS_BUTTON_CHECKED } |
define the check state of button More... | |
enum | mButtonProp { NCSP_BUTTON_ALIGN = NCSP_WIDGET_MAX + 1, NCSP_BUTTON_VALIGN, NCSP_BUTTON_WORDWRAP, NCSP_BUTTON_IMAGE, NCSP_BUTTON_CHECKSTATE, NCSP_BUTTON_IMAGE_SIZE_PERCENT, NCSP_BUTTON_GROUPID, NCSP_BUTTON_GROUP } |
the properties id of mButton More... | |
enum | eButtonNotify { NCSN_BUTTON_PUSHED = NCSN_WIDGET_MAX + 1, NCSN_BUTTON_STATE_CHANGED } |
the notification code of mButton More... | |
Variables | |
MGNCS_EXPORT mButtonClass | g_stmButtonCls |
global mButtonClass More... | |
#define NCSCTRL_BUTTON NCSCLASSNAME("button") |
#define NCSS_BUTTON_3DCHECK (8<<NCSS_WIDGET_SHIFT) |
#define NCSS_BUTTON_AUTOCHECK (4<<NCSS_WIDGET_SHIFT) |
#define NCSS_BUTTON_CHECKABLE (2<<NCSS_WIDGET_SHIFT) |
#define NCSS_BUTTON_IMAGE (1<<NCSS_WIDGET_SHIFT) |
#define NCSS_BUTTON_IMAGELABEL (0x10<<NCSS_WIDGET_SHIFT) |
#define NCSS_BUTTON_VERTIMAGELABEL (0x20<<NCSS_WIDGET_SHIFT) |
enum eButtonNotify |
the notification code of mButton
Enumerator | |||
---|---|---|---|
NCSN_BUTTON_PUSHED | button pushed | ||
NCSN_BUTTON_STATE_CHANGED | button check state changed
|
enum mButtonCheckState |
define the check state of button
enum mButtonProp |
the properties id of mButton
Enumerator | |
---|---|
NCSP_BUTTON_ALIGN | Set the button text horizontal align.
|
NCSP_BUTTON_VALIGN | Set the button text vertical align.
|
NCSP_BUTTON_WORDWRAP | Set the button text to autowrap mode.
|
NCSP_BUTTON_IMAGE | Set the button image pointer.
|
NCSP_BUTTON_CHECKSTATE | Set the check state of button.
|
NCSP_BUTTON_IMAGE_SIZE_PERCENT | Set the image size.
|
NCSP_BUTTON_GROUPID | Set the button group id.
|
NCSP_BUTTON_GROUP | Set the button group.
|
g_stmButtonCls |
global mButtonClass
global mStaticClass