diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2005-03-18 23:52:38 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2005-03-18 23:52:38 +0000 |
commit | 036622f35fc98ad154a982f1dd6f384f66d79707 (patch) | |
tree | 89f47a06134b137a24df04417799330eff9a1cfb /riscos/theme.h | |
parent | 793bb9119a04a109c2ac55200f0d4a00d026dee0 (diff) | |
download | netsurf-036622f35fc98ad154a982f1dd6f384f66d79707.tar.gz netsurf-036622f35fc98ad154a982f1dd6f384f66d79707.tar.bz2 |
[project @ 2005-03-18 23:52:38 by rjw]
Allow windows to be resized to an absolute minimum (toolbars collapse.)
svn path=/import/netsurf/; revision=1541
Diffstat (limited to 'riscos/theme.h')
-rw-r--r-- | riscos/theme.h | 3 |
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 |