diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-05 16:46:42 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-05 16:46:42 +0300 |
commit | e242cee1974fc265e005d05f8849af9f2cfb9483 (patch) | |
tree | c931ac6ad99ebf97a920eaa1b966b5becc10627b /src/ui/widget.h | |
parent | 8e2828efc6d9c88f39592f4ae1c709937b8b9f46 (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.h | 3 |
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 *); | |||
135 | iInt2 localCoord_Widget (const iWidget *, iInt2 coord); | 135 | iInt2 localCoord_Widget (const iWidget *, iInt2 coord); |
136 | iBool contains_Widget (const iWidget *, iInt2 coord); | 136 | iBool contains_Widget (const iWidget *, iInt2 coord); |
137 | iAny * findChild_Widget (const iWidget *, const char *id); | 137 | iAny * findChild_Widget (const iWidget *, const char *id); |
138 | iAny * findParentClass_Widget(const iWidget *, const iAnyClass *class); | ||
138 | iAny * findFocusable_Widget(const iWidget *startFrom, enum iWidgetFocusDir focusDir); | 139 | iAny * findFocusable_Widget(const iWidget *startFrom, enum iWidgetFocusDir focusDir); |
139 | size_t childCount_Widget (const iWidget *); | 140 | size_t childCount_Widget (const iWidget *); |
140 | void draw_Widget (const iWidget *); | 141 | void draw_Widget (const iWidget *); |
142 | void drawBackground_Widget(const iWidget *); | ||
143 | void drawChildren_Widget (const iWidget *); | ||
141 | 144 | ||
142 | iLocalDef iObjectList *children_Widget(iAnyObject *d) { | 145 | iLocalDef iObjectList *children_Widget(iAnyObject *d) { |
143 | iAssert(isInstance_Object(d, &Class_Widget)); | 146 | iAssert(isInstance_Object(d, &Class_Widget)); |