diff options
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r-- | src/ui/widget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h index 8dc51a1f..88d75b62 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h | |||
@@ -29,6 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
29 | 29 | ||
30 | #include <the_Foundation/object.h> | 30 | #include <the_Foundation/object.h> |
31 | #include <the_Foundation/objectlist.h> | 31 | #include <the_Foundation/objectlist.h> |
32 | #include <the_Foundation/ptrarray.h> | ||
32 | #include <the_Foundation/rect.h> | 33 | #include <the_Foundation/rect.h> |
33 | #include <the_Foundation/string.h> | 34 | #include <the_Foundation/string.h> |
34 | #include <SDL_events.h> | 35 | #include <SDL_events.h> |
@@ -108,6 +109,7 @@ enum iWidgetFlag { | |||
108 | #define drawBackgroundToBottom_WidgetFlag iBit64(53) | 109 | #define drawBackgroundToBottom_WidgetFlag iBit64(53) |
109 | #define dragged_WidgetFlag iBit64(54) | 110 | #define dragged_WidgetFlag iBit64(54) |
110 | #define hittable_WidgetFlag iBit64(55) | 111 | #define hittable_WidgetFlag iBit64(55) |
112 | #define safePadding_WidgetFlag iBit64(56) /* padded using safe area insets */ | ||
111 | 113 | ||
112 | enum iWidgetAddPos { | 114 | enum iWidgetAddPos { |
113 | back_WidgetAddPos, | 115 | back_WidgetAddPos, |
@@ -167,6 +169,7 @@ iInt2 localCoord_Widget (const iWidget *, iInt2 coord); | |||
167 | iBool contains_Widget (const iWidget *, iInt2 coord); | 169 | iBool contains_Widget (const iWidget *, iInt2 coord); |
168 | iAny * hitChild_Widget (const iWidget *, iInt2 coord); | 170 | iAny * hitChild_Widget (const iWidget *, iInt2 coord); |
169 | iAny * findChild_Widget (const iWidget *, const char *id); | 171 | iAny * findChild_Widget (const iWidget *, const char *id); |
172 | const iPtrArray *findChildren_Widget (const iWidget *, const char *id); | ||
170 | iAny * findParentClass_Widget(const iWidget *, const iAnyClass *class); | 173 | iAny * findParentClass_Widget(const iWidget *, const iAnyClass *class); |
171 | iAny * findFocusable_Widget(const iWidget *startFrom, enum iWidgetFocusDir focusDir); | 174 | iAny * findFocusable_Widget(const iWidget *startFrom, enum iWidgetFocusDir focusDir); |
172 | size_t childCount_Widget (const iWidget *); | 175 | size_t childCount_Widget (const iWidget *); |