aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwidget.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-07-04 00:59:12 +1000
committerinmarket <andrewh@inmarket.com.au>2013-07-04 00:59:12 +1000
commitf9eed6036d7f28ef1ab8f8d3feec6a05e0572405 (patch)
tree03e4d38b594e5483db377c5023703de3c5bdf7f8 /src/gwin/gwidget.c
parenta7198b53ff82a02a86a55823a8be895ec5eca1e4 (diff)
downloaduGFX-f9eed6036d7f28ef1ab8f8d3feec6a05e0572405.tar.gz
uGFX-f9eed6036d7f28ef1ab8f8d3feec6a05e0572405.tar.bz2
uGFX-f9eed6036d7f28ef1ab8f8d3feec6a05e0572405.zip
Make the enabled state available to all GWIN's - not just widgets.
Diffstat (limited to 'src/gwin/gwidget.c')
-rw-r--r--src/gwin/gwidget.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/gwin/gwidget.c b/src/gwin/gwidget.c
index a2b82f1d..6440f171 100644
--- a/src/gwin/gwidget.c
+++ b/src/gwin/gwidget.c
@@ -226,23 +226,6 @@ void _gwidgetRedraw(GHandle gh) {
gw->fnDraw(gw, gw->fnParam);
}
-void gwinSetEnabled(GHandle gh, bool_t enabled) {
- if (!(gh->flags & GWIN_FLG_WIDGET))
- return;
-
- if (enabled) {
- if (!(gh->flags & GWIN_FLG_ENABLED)) {
- gh->flags |= GWIN_FLG_ENABLED;
- _gwidgetRedraw(gh);
- }
- } else {
- if ((gh->flags & GWIN_FLG_ENABLED)) {
- gh->flags &= ~GWIN_FLG_ENABLED;
- _gwidgetRedraw(gh);
- }
- }
-}
-
void gwinSetText(GHandle gh, const char *txt, bool_t useAlloc) {
if (!(gh->flags & GWIN_FLG_WIDGET))
return;