aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/slider.c
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2013-05-27 12:53:34 +0200
committerJoel Bodenmann <joel@unormal.org>2013-05-27 12:53:34 +0200
commita4ca308dd51bb780ead1e2388bffe391fcef5659 (patch)
tree4948c80d027b5e311200115ec1817a8442d7a13b /src/gwin/slider.c
parent9c33df953dcc7bcfa1f73a7f3d275ff04e58ed17 (diff)
downloaduGFX-a4ca308dd51bb780ead1e2388bffe391fcef5659.tar.gz
uGFX-a4ca308dd51bb780ead1e2388bffe391fcef5659.tar.bz2
uGFX-a4ca308dd51bb780ead1e2388bffe391fcef5659.zip
added slider enable/disable API
Diffstat (limited to 'src/gwin/slider.c')
-rw-r--r--src/gwin/slider.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gwin/slider.c b/src/gwin/slider.c
index 7f1e36bc..1f252d77 100644
--- a/src/gwin/slider.c
+++ b/src/gwin/slider.c
@@ -241,6 +241,13 @@ void gwinSetSliderCustom(GHandle gh, GSliderDrawFunction fn, void *param) {
#undef gsw
}
+void gwinSliderSetEnabled(GHandle gh, bool_t enabled) {
+ if (gh->type != GW_SLIDER)
+ return;
+
+ gh->enabled = enabled;
+}
+
void gwinSliderDraw_Std(GHandle gh, bool_t isVertical, coord_t thumbpos, const GSliderDrawStyle *pstyle, void *param) {
(void) param;