diff options
author | ambihelical <ergosys@gmail.com> | 2014-12-13 15:06:12 -0800 |
---|---|---|
committer | ambihelical <ergosys@gmail.com> | 2014-12-13 15:06:12 -0800 |
commit | 7285477f1329612f9087a3bfe392f875f3517683 (patch) | |
tree | 31ac3b0db749640f1776e8258336d94bc20b87bf /demos | |
parent | ce9503a1187c8ab48bd32da24cbe95be425dd533 (diff) | |
parent | 262db6484498ec31baa8b9888aadb48e4f4984f3 (diff) | |
download | uGFX-7285477f1329612f9087a3bfe392f875f3517683.tar.gz uGFX-7285477f1329612f9087a3bfe392f875f3517683.tar.bz2 uGFX-7285477f1329612f9087a3bfe392f875f3517683.zip |
Merged Tectu/ugfx into master
Diffstat (limited to 'demos')
-rw-r--r-- | demos/modules/gwin/slider/gfxconf.h | 5 | ||||
-rw-r--r-- | demos/modules/gwin/slider/main.c | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/demos/modules/gwin/slider/gfxconf.h b/demos/modules/gwin/slider/gfxconf.h index cb9fc1db..9d55d29f 100644 --- a/demos/modules/gwin/slider/gfxconf.h +++ b/demos/modules/gwin/slider/gfxconf.h @@ -42,12 +42,14 @@ #define GFX_USE_GINPUT TRUE #define GFX_USE_GEVENT TRUE #define GFX_USE_GTIMER TRUE +#define GFX_USE_GQUEUE TRUE /* Features for the GDISP sub-system. */ #define GDISP_NEED_VALIDATION TRUE #define GDISP_NEED_CLIP TRUE #define GDISP_NEED_CIRCLE TRUE #define GDISP_NEED_TEXT TRUE +#define GDISP_NEED_MULTITHREAD TRUE /* GDISP fonts to include */ #define GDISP_INCLUDE_FONT_UI2 TRUE @@ -61,5 +63,8 @@ /* Features for the GINPUT subsystem. */ #define GINPUT_NEED_MOUSE TRUE +/* Features for the GQUEUE subsystem. */ +#define GQUEUE_NEED_ASYNC TRUE + #endif /* _GFXCONF_H */ diff --git a/demos/modules/gwin/slider/main.c b/demos/modules/gwin/slider/main.c index 781447b6..66cd7a1b 100644 --- a/demos/modules/gwin/slider/main.c +++ b/demos/modules/gwin/slider/main.c @@ -50,6 +50,11 @@ static void createWidgets(void) { // Set slider 2 to return extended events gwinSliderSendExtendedEvents(ghSlider2, TRUE); + // Some options to try + //gwinSliderSetRange(ghSlider1, 0, 70000); + //gwinSliderSetRange(ghSlider2, -4, 4); + //gwinSliderSetRange(ghSlider1, 4, -4); + // Console to display slider events wi.g.y = 40; wi.g.x = 40; wi.g.width = gdispGetWidth()-50; wi.g.height = gdispGetHeight()-50; ghConsole = gwinConsoleCreate(0, &wi.g); @@ -90,7 +95,7 @@ int main(void) { case GSLIDER_EVENT_START: sAction = "START"; break; default: sAction = "????"; break; } - gwinPrintf(ghConsole, "Slider %s = %d%% %s\n", gwinGetText(pe->gwin), pe->position, sAction); + gwinPrintf(ghConsole, "Slider %s = %d %s\n", gwinGetText(pe->gwin), pe->position, sAction); break; default: |