24 #ifndef _GWIN_SLIDER_H 25 #define _GWIN_SLIDER_H 29 #define GEVENT_GWIN_SLIDER (GEVENT_GWIN_CTRL_FIRST+1) 31 typedef struct GEventGWinSlider {
40 #define GSLIDER_EVENT_SET 4 41 #define GSLIDER_EVENT_CANCEL 3 42 #define GSLIDER_EVENT_START 2 43 #define GSLIDER_EVENT_MOVE 1 53 #define GSLIDER_FLG_EXTENDED_EVENTS 0x01 57 typedef struct GSliderObject {
59 #if GINPUT_NEED_TOGGLE 101 #define gwinSliderCreate(w, pInit) gwinGSliderCreate(GDISP, w, pInit) 140 #define gwinSliderGetPosition(gh) (((GSliderObject *)(gh))->pos) 180 #if GDISP_NEED_IMAGE || defined(__DOXYGEN__) void gwinSliderSendExtendedEvents(GHandle gh, bool_t enabled)
Should the slider send extended events.
void gwinSliderSetPosition(GHandle gh, int pos)
Set the slider position.
int16_t coord_t
The type for a coordinate or length on the screen.
A window object structure.
void gwinSliderDraw_Image(GWidgetObject *gw, void *param)
The default rendering function.
void gwinSliderDraw_Std(GWidgetObject *gw, void *param)
The default rendering function for the slider widget.
void gwinSliderSetRange(GHandle gh, int min, int max)
Set the slider range.
GHandle gwinGSliderCreate(GDisplay *g, GSliderObject *gb, const GWidgetInit *pInit)
Create a slider window.