diff options
author | Andrew Hannam <andrewh@inmarket.com.au> | 2013-04-06 21:54:19 +1000 |
---|---|---|
committer | Andrew Hannam <andrewh@inmarket.com.au> | 2013-04-06 21:54:19 +1000 |
commit | ee19104dbb51b98a8753414854cc6c5cdee42a55 (patch) | |
tree | 1c2628cac2869e94ed6fe9246a0701a0784ca702 /src/gwin/gwin.c | |
parent | a67cafeaa7fad2c9611647a8c9f71531750e260a (diff) | |
download | uGFX-ee19104dbb51b98a8753414854cc6c5cdee42a55.tar.gz uGFX-ee19104dbb51b98a8753414854cc6c5cdee42a55.tar.bz2 uGFX-ee19104dbb51b98a8753414854cc6c5cdee42a55.zip |
GWIN slider + image support
Diffstat (limited to 'src/gwin/gwin.c')
-rw-r--r-- | src/gwin/gwin.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index a2b702e2..58d75694 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -90,6 +90,12 @@ void gwinDestroyWindow(GHandle gh) { geventDetachSourceListeners((GSourceHandle)gh); break; #endif +#if GWIN_NEED_SLIDER + case GW_SLIDER: + geventDetachSource(&((GSliderObject *)gh)->listener, 0); + geventDetachSourceListeners((GSourceHandle)gh); + break; +#endif default: break; } @@ -285,6 +291,15 @@ void gwinBlitArea(GHandle gh, coord_t x, coord_t y, coord_t cx, coord_t cy, coor } #endif +#if GDISP_NEED_IMAGE + gdispImageError gwinImageDraw(GHandle gh, gdispImage *img, coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t sx, coord_t sy) { + #if GDISP_NEED_CLIP + gdispSetClip(gh->x, gh->y, gh->width, gh->height); + #endif + return gdispImageDraw(img, gh->x+x, gh->y+y, cx, cy, sx, sy); + } +#endif + #endif /* GFX_USE_GWIN */ /** @} */ |