µGFX  2.9
version 2.9
Renderings

Detailed Description

Built-in rendering functions for the checkbox widget.

These function may be passed to gwinSetCustomDraw() to get different checkbox drawing styles.

Note
In your custom checkbox drawing function you may optionally call these standard functions and then draw your extra details on top.
These custom drawing routines don't have to worry about setting clipping as the framework sets clipping to the object window prior to calling these routines.

Functions

void gwinCheckboxDraw_CheckOnLeft (GWidgetObject *gw, void *param)
 Renders a square checkbox where the text is on the right side of the checkbox. More...
 
void gwinCheckboxDraw_CheckOnRight (GWidgetObject *gw, void *param)
 Renders a square checkbox where the text is on the left side of the checkbox. More...
 
void gwinCheckboxDraw_Button (GWidgetObject *gw, void *param)
 Renders a checkbox in form of a rectangular button with the text inside of it. More...
 

Function Documentation

◆ gwinCheckboxDraw_Button()

void gwinCheckboxDraw_Button ( GWidgetObject gw,
void *  param 
)

Renders a checkbox in form of a rectangular button with the text inside of it.

This behaves like a button that can be toggled.

Parameters
[in]gwThe widget (must be a checkbox)
[in]paramA parameter passed in from the user. Ignored by this function.
Function Class: Normal API, this function can be invoked by regular system threads.

Definition at line 253 of file gwin_checkbox.c.

References GWidgetObject::g, and GWindowObject::vmt.

◆ gwinCheckboxDraw_CheckOnLeft()

void gwinCheckboxDraw_CheckOnLeft ( GWidgetObject gw,
void *  param 
)

Renders a square checkbox where the text is on the right side of the checkbox.

Parameters
[in]gwThe widget (must be a checkbox)
[in]paramA parameter passed in from the user. Ignored by this function.
Function Class: Normal API, this function can be invoked by regular system threads.

Definition at line 174 of file gwin_checkbox.c.

References GWidgetObject::g, and GWindowObject::vmt.

◆ gwinCheckboxDraw_CheckOnRight()

void gwinCheckboxDraw_CheckOnRight ( GWidgetObject gw,
void *  param 
)

Renders a square checkbox where the text is on the left side of the checkbox.

Parameters
[in]gwThe widget (must be a checkbox)
[in]paramA parameter passed in from the user. Ignored by this function.
Function Class: Normal API, this function can be invoked by regular system threads.

Definition at line 203 of file gwin_checkbox.c.

References GWidgetObject::g, and GWindowObject::vmt.