diff options
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r-- | src/ui/widget.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h index bde13272..4c5b7d85 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h | |||
@@ -129,6 +129,7 @@ struct Impl_Widget { | |||
129 | iString id; | 129 | iString id; |
130 | int64_t flags; | 130 | int64_t flags; |
131 | iRect rect; | 131 | iRect rect; |
132 | iInt2 minSize; | ||
132 | int padding[4]; /* left, top, right, bottom */ | 133 | int padding[4]; /* left, top, right, bottom */ |
133 | iAnim visualOffset; | 134 | iAnim visualOffset; |
134 | int bgColor; | 135 | int bgColor; |
@@ -221,7 +222,8 @@ iBool hasParent_Widget (const iWidget *d, const iWidget *someParent | |||
221 | void setId_Widget (iWidget *, const char *id); | 222 | void setId_Widget (iWidget *, const char *id); |
222 | void setFlags_Widget (iWidget *, int64_t flags, iBool set); | 223 | void setFlags_Widget (iWidget *, int64_t flags, iBool set); |
223 | void setPos_Widget (iWidget *, iInt2 pos); | 224 | void setPos_Widget (iWidget *, iInt2 pos); |
224 | void setSize_Widget (iWidget *, iInt2 size); | 225 | void setFixedSize_Widget (iWidget *, iInt2 fixedSize); |
226 | void setMinSize_Widget (iWidget *, iInt2 minSize); | ||
225 | void setPadding_Widget (iWidget *, int left, int top, int right, int bottom); | 227 | void setPadding_Widget (iWidget *, int left, int top, int right, int bottom); |
226 | iLocalDef void setPadding1_Widget (iWidget *d, int padding) { setPadding_Widget(d, padding, padding, padding, padding); } | 228 | iLocalDef void setPadding1_Widget (iWidget *d, int padding) { setPadding_Widget(d, padding, padding, padding, padding); } |
227 | void setVisualOffset_Widget (iWidget *, int value, uint32_t span, int animFlags); | 229 | void setVisualOffset_Widget (iWidget *, int value, uint32_t span, int animFlags); |
@@ -238,6 +240,7 @@ iAny * removeChild_Widget (iWidget *, iAnyObject *child); /* returns a | |||
238 | iAny * child_Widget (iWidget *, size_t index); /* O(n) */ | 240 | iAny * child_Widget (iWidget *, size_t index); /* O(n) */ |
239 | size_t childIndex_Widget (const iWidget *, const iAnyObject *child); /* O(n) */ | 241 | size_t childIndex_Widget (const iWidget *, const iAnyObject *child); /* O(n) */ |
240 | void arrange_Widget (iWidget *); | 242 | void arrange_Widget (iWidget *); |
243 | void resetSize_Widget (iWidget *); | ||
241 | iBool dispatchEvent_Widget (iWidget *, const SDL_Event *); | 244 | iBool dispatchEvent_Widget (iWidget *, const SDL_Event *); |
242 | iBool processEvent_Widget (iWidget *, const SDL_Event *); | 245 | iBool processEvent_Widget (iWidget *, const SDL_Event *); |
243 | void postCommand_Widget (const iAnyObject *, const char *cmd, ...); | 246 | void postCommand_Widget (const iAnyObject *, const char *cmd, ...); |