aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/slider.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-08-20 12:18:27 +1000
committerinmarket <andrewh@inmarket.com.au>2014-08-20 12:18:27 +1000
commitecaf8b83f8227724e9f862a0a8f64e6004a63d56 (patch)
treeed84213400a1f7e338e5bb79eb5fec11152e24d1 /src/gwin/slider.h
parent3b21507274aa4f98644382903ae529c1fc2c7bd4 (diff)
downloaduGFX-ecaf8b83f8227724e9f862a0a8f64e6004a63d56.tar.gz
uGFX-ecaf8b83f8227724e9f862a0a8f64e6004a63d56.tar.bz2
uGFX-ecaf8b83f8227724e9f862a0a8f64e6004a63d56.zip
Create a generic GWIN event.
The frame now sends a GEVENT_GWIN_CLOSE event on closing. Unfortunately some gwin events have had a field renamed in order to generalise the structure. Demo's updated to match.
Diffstat (limited to 'src/gwin/slider.h')
-rw-r--r--src/gwin/slider.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gwin/slider.h b/src/gwin/slider.h
index 32161d62..6cd8088b 100644
--- a/src/gwin/slider.h
+++ b/src/gwin/slider.h
@@ -24,15 +24,15 @@
/* This file is included within "gwin/gwidget.h" */
-#define GEVENT_GWIN_SLIDER (GEVENT_GWIN_FIRST+1)
+#define GEVENT_GWIN_SLIDER (GEVENT_GWIN_CTRL_FIRST+1)
typedef struct GEventGWinSlider {
GEventType type; // The type of this event (GEVENT_GWIN_BUTTON)
- GHandle slider; // The slider that is returning results
- int position;
+ GHandle gwin; // The slider that is returning results
#if GWIN_WIDGET_TAGS
WidgetTag tag; // The slider tag
#endif
+ int position;
} GEventGWinSlider;
// There are currently no GEventGWinSlider listening flags - use 0