![]() |
µGFX
2.9
version 2.9
|
Slider widget.
Extended events can be enabled using gwinSliderSendExtendedEvents().
Modules | |
| Renderings | |
| Built-in rendering functions for the slider widget. | |
Functions | |
| GHandle | gwinGSliderCreate (GDisplay *g, GSliderObject *gb, const GWidgetInit *pInit) |
| Create a slider window. More... | |
| void | gwinSliderSetRange (GHandle gh, int min, int max) |
| Set the slider range. More... | |
| void | gwinSliderSetPosition (GHandle gh, int pos) |
| Set the slider position. More... | |
| void | gwinSliderSendExtendedEvents (GHandle gh, gBool enabled) |
| Should the slider send extended events. More... | |
| #define | GSLIDER_FLG_EXTENDED_EVENTS 0x01 |
| The internal slider object flags. More... | |
Macros | |
| #define | gwinSliderGetPosition(gh) (((GSliderObject *)(gh))->pos) |
| Get the current slider position. More... | |
| GHandle gwinGSliderCreate | ( | GDisplay * | g, |
| GSliderObject * | gb, | ||
| const GWidgetInit * | pInit | ||
| ) |
Create a slider window.
| [in] | g | The GDisplay to display this window on |
| [in] | gb | The GSliderObject 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 275 of file gwin_slider.c.
| void gwinSliderSendExtendedEvents | ( | GHandle | gh, |
| gBool | enabled | ||
| ) |
Should the slider send extended events.
| [in] | gh | The window handle (must be a slider window) |
| [in] | enabled | gTrue to enable extended events, gFalse to disable them |
Definition at line 329 of file gwin_slider.c.
References GWindowObject::vmt.
| void gwinSliderSetPosition | ( | GHandle | gh, |
| int | pos | ||
| ) |
Set the slider position.
| [in] | gh | The window handle (must be a slider window) |
| [in] | pos | The new position |
Definition at line 308 of file gwin_slider.c.
References GWindowObject::vmt.
| void gwinSliderSetRange | ( | GHandle | gh, |
| int | min, | ||
| int | max | ||
| ) |
Set the slider range.
| [in] | gh | The window handle (must be a slider window) |
| [in] | min | The minimum value |
| [in] | max | The maximum value |
Definition at line 293 of file gwin_slider.c.
References GWindowObject::vmt.
| #define GSLIDER_FLG_EXTENDED_EVENTS 0x01 |
The internal slider object flags.
Definition at line 53 of file gwin_slider.h.
| #define gwinSliderGetPosition | ( | gh | ) | (((GSliderObject *)(gh))->pos) |
Get the current slider position.
| [in] | gh | The window handle (must be a slider window) |
Definition at line 136 of file gwin_slider.h.