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
97 #define gwinSliderCreate(w, pInit) gwinGSliderCreate(GDISP, w, pInit)
136 #define gwinSliderGetPosition(gh) (((GSliderObject *)(gh))->pos)
176 #if GDISP_NEED_IMAGE || defined(__DOXYGEN__)
gI16 gCoord
The type for a coordinate or length on the screen.
void gwinSliderDraw_Std(GWidgetObject *gw, void *param)
The default rendering function for the slider widget.
void gwinSliderDraw_Image(GWidgetObject *gw, void *param)
The default rendering function.
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.
void gwinSliderSetPosition(GHandle gh, int pos)
Set the slider position.
void gwinSliderSendExtendedEvents(GHandle gh, gBool enabled)
Should the slider send extended events.
A window object structure.