![]() |
µGFX
2.9
version 2.9
|
CheckBox widget.
GWIN allows it to easily create a group of checkbox buttons.
Modules | |
Renderings | |
Built-in rendering functions for the checkbox widget. | |
Functions | |
GHandle | gwinGCheckboxCreate (GDisplay *g, GCheckboxObject *gb, const GWidgetInit *pInit) |
Create a checkbox window. More... | |
void | gwinCheckboxCheck (GHandle gh, gBool isChecked) |
Set the state of a checkbox. More... | |
gBool | gwinCheckboxIsChecked (GHandle gh) |
Get the state of a checkbox. More... | |
#define | GCHECKBOX_FLG_CHECKED 0x01 |
The internal checkbox flags. More... | |
void gwinCheckboxCheck | ( | GHandle | gh, |
gBool | isChecked | ||
) |
Set the state of a checkbox.
[in] | gh | The window handle (must be a checkbox window) |
[in] | isChecked | gTrue to set the check, gFalse to uncheck. |
Definition at line 142 of file gwin_checkbox.c.
References GWindowObject::vmt.
gBool gwinCheckboxIsChecked | ( | GHandle | gh | ) |
Get the state of a checkbox.
[in] | gh | The window handle (must be a checkbox window) |
Definition at line 157 of file gwin_checkbox.c.
References GWindowObject::vmt.
GHandle gwinGCheckboxCreate | ( | GDisplay * | g, |
GCheckboxObject * | gb, | ||
const GWidgetInit * | pInit | ||
) |
Create a checkbox window.
[in] | g | The GDisplay to display this window on |
[in] | gb | The GCheckboxObject structure to initialise. If this is NULL, the structure is dynamically allocated. |
[in] | pInit | The initialization parameters to use |
gwinSetDefaultColor()
or gwinSetDefaultBgColor()
then these are GFX_WHITE and GFX_BLACK respectively. gwinSetDefaultFont()
then there is no default font and text drawing operations will no nothing. Definition at line 131 of file gwin_checkbox.c.
#define GCHECKBOX_FLG_CHECKED 0x01 |
The internal checkbox flags.
Definition at line 53 of file gwin_checkbox.h.