summaryrefslogtreecommitdiff
path: root/src/ui/widget.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-07-25 14:24:06 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-07-25 14:24:06 +0300
commit570818dfd9f979a04375bbe0657139c62df34387 (patch)
tree96b39d2be9333c3d728ac89cb1c3054670c6585f /src/ui/widget.h
parent40421af6e6571b58b97b3e3372641de3b3ba60d8 (diff)
Widget: Drawing optional frames
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r--src/ui/widget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h
index af3934e6..3155d6df 100644
--- a/src/ui/widget.h
+++ b/src/ui/widget.h
@@ -65,6 +65,7 @@ struct Impl_Widget {
65 int flags; 65 int flags;
66 iRect rect; 66 iRect rect;
67 int bgColor; 67 int bgColor;
68 int frameColor;
68 iObjectList *children; 69 iObjectList *children;
69 iWidget * parent; 70 iWidget * parent;
70 iBool (*commandHandler)(iWidget *, const char *); 71 iBool (*commandHandler)(iWidget *, const char *);
@@ -113,6 +114,7 @@ void setFlags_Widget (iWidget *, int flags, iBool set);
113void setPos_Widget (iWidget *, iInt2 pos); 114void setPos_Widget (iWidget *, iInt2 pos);
114void setSize_Widget (iWidget *, iInt2 size); 115void setSize_Widget (iWidget *, iInt2 size);
115void setBackgroundColor_Widget (iWidget *, int bgColor); 116void setBackgroundColor_Widget (iWidget *, int bgColor);
117void setFrameColor_Widget (iWidget *, int frameColor);
116void setCommandHandler_Widget (iWidget *, iBool (*handler)(iWidget *, const char *)); 118void setCommandHandler_Widget (iWidget *, iBool (*handler)(iWidget *, const char *));
117iAny * addChild_Widget (iWidget *, iAnyObject *child); /* holds a ref */ 119iAny * addChild_Widget (iWidget *, iAnyObject *child); /* holds a ref */
118iAny * addChildPos_Widget (iWidget *, iAnyObject *child, enum iWidgetAddPos addPos); 120iAny * addChildPos_Widget (iWidget *, iAnyObject *child, enum iWidgetAddPos addPos);