diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-06-08 14:14:40 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-06-08 14:14:40 +1000 |
commit | ccde54722f2c284fb0e7fc273d65c57a3be71db1 (patch) | |
tree | fffa49870c73d7e9d5caaf5c6d1d47cf0e5c90d3 /src/gwin/gwin_radio.c | |
parent | e850c344b818f21a2ec286f9c4a149a9cd4ac34b (diff) | |
download | uGFX-ccde54722f2c284fb0e7fc273d65c57a3be71db1.tar.gz uGFX-ccde54722f2c284fb0e7fc273d65c57a3be71db1.tar.bz2 uGFX-ccde54722f2c284fb0e7fc273d65c57a3be71db1.zip |
Added ability to compile ugfx as a single file (excluding driver and board files).
Simply compile src/gfx_mk.c
Diffstat (limited to 'src/gwin/gwin_radio.c')
-rw-r--r-- | src/gwin/gwin_radio.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gwin/gwin_radio.c b/src/gwin/gwin_radio.c index b9076109..c7d5cf5c 100644 --- a/src/gwin/gwin_radio.c +++ b/src/gwin/gwin_radio.c @@ -49,7 +49,7 @@ static void SendRadioEvent(GWidgetObject *gw) { #if GINPUT_NEED_MOUSE // A mouse down has occurred over the button - static void MouseDown(GWidgetObject *gw, coord_t x, coord_t y) { + static void RadioMouseDown(GWidgetObject *gw, coord_t x, coord_t y) { (void) x; (void) y; gwinRadioPress((GHandle)gw); @@ -58,18 +58,18 @@ static void SendRadioEvent(GWidgetObject *gw) { #if GINPUT_NEED_TOGGLE // A toggle on has occurred - static void ToggleOn(GWidgetObject *gw, uint16_t role) { + static void RadioToggleOn(GWidgetObject *gw, uint16_t role) { (void) role; gwinRadioPress((GHandle)gw); } - static void ToggleAssign(GWidgetObject *gw, uint16_t role, uint16_t instance) { + static void RadioToggleAssign(GWidgetObject *gw, uint16_t role, uint16_t instance) { (void) role; ((GRadioObject *)gw)->toggle = instance; } - static uint16_t ToggleGet(GWidgetObject *gw, uint16_t role) { + static uint16_t RadioToggleGet(GWidgetObject *gw, uint16_t role) { (void) role; return ((GRadioObject *)gw)->toggle; } @@ -87,7 +87,7 @@ static const gwidgetVMT radioVMT = { gwinRadioDraw_Radio, // The default drawing routine #if GINPUT_NEED_MOUSE { - MouseDown, // Process mouse down events + RadioMouseDown, // Process mouse down events 0, // Process mouse up events (NOT USED) 0, // Process mouse move events (NOT USED) }, @@ -95,10 +95,10 @@ static const gwidgetVMT radioVMT = { #if GINPUT_NEED_TOGGLE { 1, // 1 toggle role - ToggleAssign, // Assign Toggles - ToggleGet, // Get Toggles + RadioToggleAssign, // Assign Toggles + RadioToggleGet, // Get Toggles 0, // Process toggle off events (NOT USED) - ToggleOn, // Process toggle on events + RadioToggleOn, // Process toggle on events }, #endif #if GINPUT_NEED_DIAL |