mGNCS4Touch API Reference  v1.5.0
A set of mGNCS-compliant controls for devices with a touch screen.
Data Structures | Macros | Enumerations | Variables
mSwitchButton

Data Structures

struct  mSwitchButton
 SwitchButton class, derived from mWidget. More...
 
struct  mSwitchButtonClass
 switchbutton struct of switchbutton control, derived from mWidgetClass More...
 
struct  mSwitchButtonRenderer
 SwitchButton class renderer interface, derived from mWidgetRenderer. More...
 

Macros

#define NCSCTRL_SWBUTTON   NCSCLASSNAME("switchbutton")
 the name of switchbutton control More...
 

Enumerations

enum  mSwitchButtonStatus { NCS_SWB_OFF = 0, NCS_SWB_ON }
 define the check state of switchbutton More...
 
enum  mSwitchButtonProp { NCSP_SWB_STATUS = NCSP_WIDGET_MAX + 1 }
 the properties id of mSwitchButton More...
 
enum  mSwitchButtonNotify { NCSN_SWB_STATUSCHANGED = NCSN_WIDGET_MAX + 1 }
 the notification code of mSwitchButton More...
 

Variables

MTOUCH_EXPORT mSwitchButtonClass g_stmSwitchButtonCls
 global mSwitchButtonClass More...
 

mSwitchButtonStyle the style id of \ref mSwitchButton

#define NCSS_SWB_SHIFT   (NCSS_WIDGET_SHIFT)
 

Detailed Description

Macro Definition Documentation

◆ NCSCTRL_SWBUTTON

#define NCSCTRL_SWBUTTON   NCSCLASSNAME("switchbutton")

the name of switchbutton control

Definition at line 67 of file mswitchbutton.h.

Enumeration Type Documentation

◆ mSwitchButtonNotify

the notification code of mSwitchButton

Enumerator
NCSN_SWB_STATUSCHANGED 

Identify switch control choice status changes.

Definition at line 173 of file mswitchbutton.h.

◆ mSwitchButtonProp

the properties id of mSwitchButton

end of mSwitchButtonStyle

Enumerator
NCSP_SWB_STATUS 

Label control displays the switch status.

Definition at line 161 of file mswitchbutton.h.

◆ mSwitchButtonStatus

define the check state of switchbutton

Enumerator
NCS_SWB_OFF 

SwitchButton status, OFF.

NCS_SWB_ON 

SwitchButton status, ON.

Definition at line 83 of file mswitchbutton.h.

Variable Documentation

◆ g_stmSwitchButtonCls

g_stmSwitchButtonCls