From 403f12872d55a71b04287ed828be0c63be19e856 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Mon, 4 Oct 2004 23:54:42 +0000 Subject: [project @ 2004-10-04 23:54:42 by rjw] Moved GIF file reading to image/, optimisation of plotting for GIFs, JNGs, PNGs and JPEGs, initial work for toolbar customisation. Possibly some other things too. svn path=/import/netsurf/; revision=1301 --- riscos/theme.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'riscos/theme.h') diff --git a/riscos/theme.h b/riscos/theme.h index 1ab6793e3..8e34ff66b 100644 --- a/riscos/theme.h +++ b/riscos/theme.h @@ -19,7 +19,17 @@ typedef enum { THEME_HOTLIST_TOOLBAR } toolbar_type; -struct toolbar_icon; +struct toolbar_icon { + int icon_number; /**< wimp icon number */ + bool display; /**< whether to display the icon */ + int x; /**< icon x position (valid only when displayed) */ + int y; /**< icon y position (valid only when displayed) */ + int width; /**< icon width */ + int height; /**< icon height */ + char name[12]; /**< icon name */ + char validation[40]; /**< validation string */ + struct toolbar_icon *next; /**< next toolbar icon, or NULL for no more */ +}; struct theme { osspriteop_area *sprite_area; /**< sprite area for theme */ @@ -48,6 +58,7 @@ struct toolbar { struct toolbar_icon *icon; /**< first toolbar icon (read only) */ struct theme_descriptor *descriptor; /**< theme descriptor (read only) */ toolbar_type type; /**< toolbar type (read only) */ + bool locked; /**< toolbar is locked from editing */ }; struct theme_descriptor { @@ -82,5 +93,7 @@ void ro_gui_theme_resize_toolbar_status(struct toolbar *toolbar); bool ro_gui_theme_process_toolbar(struct toolbar *toolbar, int width); 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); #endif -- cgit v1.2.3