diff options
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r-- | src/ui/widget.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h index ab08a9b2..f126d40d 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h | |||
@@ -34,6 +34,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
34 | #include <the_Foundation/string.h> | 34 | #include <the_Foundation/string.h> |
35 | #include <SDL_events.h> | 35 | #include <SDL_events.h> |
36 | 36 | ||
37 | iDeclareType(Root) /* each widget is associated with a Root */ | ||
38 | |||
37 | #define iDeclareWidgetClass(className) \ | 39 | #define iDeclareWidgetClass(className) \ |
38 | iDeclareType(className); \ | 40 | iDeclareType(className); \ |
39 | typedef iWidgetClass i##className##Class; \ | 41 | typedef iWidgetClass i##className##Class; \ |
@@ -138,6 +140,7 @@ struct Impl_Widget { | |||
138 | iObjectList *children; | 140 | iObjectList *children; |
139 | iWidget * parent; | 141 | iWidget * parent; |
140 | iBool (*commandHandler)(iWidget *, const char *); | 142 | iBool (*commandHandler)(iWidget *, const char *); |
143 | iRoot * root; | ||
141 | }; | 144 | }; |
142 | 145 | ||
143 | iDeclareObjectConstruction(Widget) | 146 | iDeclareObjectConstruction(Widget) |
@@ -166,7 +169,8 @@ void destroy_Widget (iWidget *); /* widget removed and deleted later | |||
166 | void destroyPending_Widget (void); | 169 | void destroyPending_Widget (void); |
167 | void releaseChildren_Widget (iWidget *); | 170 | void releaseChildren_Widget (iWidget *); |
168 | 171 | ||
169 | const iString *id_Widget (const iWidget *); | 172 | iWidget * root_Widget (const iWidget *); |
173 | const iString * id_Widget (const iWidget *); | ||
170 | int64_t flags_Widget (const iWidget *); | 174 | int64_t flags_Widget (const iWidget *); |
171 | iRect bounds_Widget (const iWidget *); /* outer bounds */ | 175 | iRect bounds_Widget (const iWidget *); /* outer bounds */ |
172 | iRect innerBounds_Widget (const iWidget *); | 176 | iRect innerBounds_Widget (const iWidget *); |