summaryrefslogtreecommitdiff
path: root/riscos/theme.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/theme.h')
-rw-r--r--riscos/theme.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/riscos/theme.h b/riscos/theme.h
index 3a86c05ac..38a8c2343 100644
--- a/riscos/theme.h
+++ b/riscos/theme.h
@@ -66,6 +66,7 @@ struct toolbar {
int status_current; /**< the size of the status window in OS units */
int toolbar_current; /**< the size of the toolbar window in OS units */
int height; /**< vertical extent of the toolbar (read only) */
+ int max_height; /**< allowed vertical extent (read only) */
wimp_w toolbar_handle; /**< toolbar window handle */
wimp_w status_handle; /**< status window handle (if applicable) */
wimp_w parent_handle; /**< parent window handle (read only) */
@@ -120,4 +121,6 @@ void ro_gui_theme_destroy_toolbar(struct toolbar *toolbar);
struct toolbar_icon *ro_gui_theme_toolbar_get_icon(struct toolbar *toolbar, int x, int y);
bool ro_gui_theme_toolbar_separator_following(struct toolbar_icon *icon);
+#define ro_gui_theme_toolbar_height(toolbar) toolbar->height > toolbar->max_height ? \
+ toolbar->max_height : toolbar->height
#endif