summaryrefslogtreecommitdiff
path: root/src/ui/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r--src/ui/widget.h9
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
134iDeclareType(WidgetDrawBuffer)
135
134struct Impl_Widget { 136struct 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
153iDeclareObjectConstruction(Widget) 156iDeclareObjectConstruction(Widget)
@@ -203,6 +206,12 @@ size_t childCount_Widget (const iWidget *);
203void draw_Widget (const iWidget *); 206void draw_Widget (const iWidget *);
204void drawBackground_Widget (const iWidget *); 207void drawBackground_Widget (const iWidget *);
205void drawChildren_Widget (const iWidget *); 208void drawChildren_Widget (const iWidget *);
209void drawRoot_Widget (const iWidget *); /* root only */
210void setDrawBufferEnabled_Widget (iWidget *, iBool enable);
211
212iLocalDef iBool isDrawBufferEnabled_Widget(const iWidget *d) {
213 return d && d->drawBuf;
214}
206 215
207iLocalDef int width_Widget(const iAnyObject *d) { 216iLocalDef int width_Widget(const iAnyObject *d) {
208 if (d) { 217 if (d) {