diff options
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r-- | src/ui/widget.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h index 1a944c0a..fd4d8898 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h | |||
@@ -131,6 +131,8 @@ enum iWidgetFocusDir { | |||
131 | backward_WidgetFocusDir, | 131 | backward_WidgetFocusDir, |
132 | }; | 132 | }; |
133 | 133 | ||
134 | iDeclareType(WidgetDrawBuffer) | ||
135 | |||
134 | struct Impl_Widget { | 136 | struct Impl_Widget { |
135 | iObject object; | 137 | iObject object; |
136 | iString id; | 138 | iString id; |
@@ -148,6 +150,7 @@ struct Impl_Widget { | |||
148 | iWidget * parent; | 150 | iWidget * parent; |
149 | iBool (*commandHandler)(iWidget *, const char *); | 151 | iBool (*commandHandler)(iWidget *, const char *); |
150 | iRoot * root; | 152 | iRoot * root; |
153 | iWidgetDrawBuffer *drawBuf; | ||
151 | }; | 154 | }; |
152 | 155 | ||
153 | iDeclareObjectConstruction(Widget) | 156 | iDeclareObjectConstruction(Widget) |
@@ -203,6 +206,12 @@ size_t childCount_Widget (const iWidget *); | |||
203 | void draw_Widget (const iWidget *); | 206 | void draw_Widget (const iWidget *); |
204 | void drawBackground_Widget (const iWidget *); | 207 | void drawBackground_Widget (const iWidget *); |
205 | void drawChildren_Widget (const iWidget *); | 208 | void drawChildren_Widget (const iWidget *); |
209 | void drawRoot_Widget (const iWidget *); /* root only */ | ||
210 | void setDrawBufferEnabled_Widget (iWidget *, iBool enable); | ||
211 | |||
212 | iLocalDef iBool isDrawBufferEnabled_Widget(const iWidget *d) { | ||
213 | return d && d->drawBuf; | ||
214 | } | ||
206 | 215 | ||
207 | iLocalDef int width_Widget(const iAnyObject *d) { | 216 | iLocalDef int width_Widget(const iAnyObject *d) { |
208 | if (d) { | 217 | if (d) { |