24 #ifndef _GWIN_CHECKBOX_H
25 #define _GWIN_CHECKBOX_H
33 #define GEVENT_GWIN_CHECKBOX (GEVENT_GWIN_CTRL_FIRST+2)
39 typedef struct GEventGWinCheckbox {
53 #define GCHECKBOX_FLG_CHECKED 0x01
57 typedef struct GCheckboxObject {
59 #if GINPUT_NEED_TOGGLE
85 #define gwinCheckboxCreate(gb, pInit) gwinGCheckboxCreate(GDISP, gb, pInit)
GHandle gwinGCheckboxCreate(GDisplay *g, GCheckboxObject *gb, const GWidgetInit *pInit)
Create a checkbox window.
gBool gwinCheckboxIsChecked(GHandle gh)
Get the state of a checkbox.
void gwinCheckboxCheck(GHandle gh, gBool isChecked)
Set the state of a checkbox.
void gwinCheckboxDraw_CheckOnRight(GWidgetObject *gw, void *param)
Renders a square checkbox where the text is on the left side of the checkbox.
void gwinCheckboxDraw_Button(GWidgetObject *gw, void *param)
Renders a checkbox in form of a rectangular button with the text inside of it.
void gwinCheckboxDraw_CheckOnLeft(GWidgetObject *gw, void *param)
Renders a square checkbox where the text is on the right side of the checkbox.
A window object structure.