aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2013-06-03 17:36:39 +0200
committerJoel Bodenmann <joel@unormal.org>2013-06-03 17:36:39 +0200
commit9945b011a9245907b5066565b396808d3d22c363 (patch)
treeb1188b538b8db5e49ec64f958df0b23b8a44f8d9 /src
parent2cd0bc13d517a1b4c1db43683c99cf5b2fd02d21 (diff)
downloaduGFX-9945b011a9245907b5066565b396808d3d22c363.tar.gz
uGFX-9945b011a9245907b5066565b396808d3d22c363.tar.bz2
uGFX-9945b011a9245907b5066565b396808d3d22c363.zip
added custom render interface for checkboxes
Diffstat (limited to 'src')
-rw-r--r--src/gwin/checkbox.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/gwin/checkbox.c b/src/gwin/checkbox.c
index df97a38d..0cc75622 100644
--- a/src/gwin/checkbox.c
+++ b/src/gwin/checkbox.c
@@ -122,6 +122,19 @@ GHandle gwinCheckboxCreate(GCheckboxObject *gb, coord_t x, coord_t y, coord_t wi
return (GHandle)gb;
}
+void gwinCheckboxSetCustom(GHandle gh, GCheckboxDrawFunction fn, void *param) {
+ #define gcw ((GCheckboxObject *)gh)
+
+ if (gh->type != GW_CHECKBOX)
+ return;
+
+ gcw->fn = fn;
+ gcw->param = param;
+
+ #undef gcw
+}
+
+
void gwinCheckboxSetEnabled(GHandle gh, bool_t enabled) {
if (gh->type != GW_CHECKBOX)
return;
@@ -136,7 +149,7 @@ void gwinCheckboxDraw(GHandle gh) {
return;
#if GDISP_NEED_CLIP
- gdispSetClip(gh->x, gh->y, gh->width, gh->height);
+ //gdispSetClip(gh->x, gh->y, gh->width, gh->height);
#endif
gcw->fn(gh,