summaryrefslogtreecommitdiff
path: root/src/ui/widget.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-05 16:46:42 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-05 16:46:42 +0300
commite242cee1974fc265e005d05f8849af9f2cfb9483 (patch)
treec931ac6ad99ebf97a920eaa1b966b5becc10627b /src/ui/widget.h
parent8e2828efc6d9c88f39592f4ae1c709937b8b9f46 (diff)
Widget: More granularity for drawing widgets
Allow draw background and children separately.
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r--src/ui/widget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h
index 3f03fc07..b1b7a1d7 100644
--- a/src/ui/widget.h
+++ b/src/ui/widget.h
@@ -135,9 +135,12 @@ iRect innerBounds_Widget (const iWidget *);
135iInt2 localCoord_Widget (const iWidget *, iInt2 coord); 135iInt2 localCoord_Widget (const iWidget *, iInt2 coord);
136iBool contains_Widget (const iWidget *, iInt2 coord); 136iBool contains_Widget (const iWidget *, iInt2 coord);
137iAny * findChild_Widget (const iWidget *, const char *id); 137iAny * findChild_Widget (const iWidget *, const char *id);
138iAny * findParentClass_Widget(const iWidget *, const iAnyClass *class);
138iAny * findFocusable_Widget(const iWidget *startFrom, enum iWidgetFocusDir focusDir); 139iAny * findFocusable_Widget(const iWidget *startFrom, enum iWidgetFocusDir focusDir);
139size_t childCount_Widget (const iWidget *); 140size_t childCount_Widget (const iWidget *);
140void draw_Widget (const iWidget *); 141void draw_Widget (const iWidget *);
142void drawBackground_Widget(const iWidget *);
143void drawChildren_Widget (const iWidget *);
141 144
142iLocalDef iObjectList *children_Widget(iAnyObject *d) { 145iLocalDef iObjectList *children_Widget(iAnyObject *d) {
143 iAssert(isInstance_Object(d, &Class_Widget)); 146 iAssert(isInstance_Object(d, &Class_Widget));