summaryrefslogtreecommitdiff
path: root/atari/toolbar.h
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-05-13 15:32:35 +0000
committerOle Loots <ole@monochrom.net>2012-05-13 15:32:35 +0000
commit2c4b83b1ee1dfaf27332565b5c7bcbecc0c68f66 (patch)
treef771960f29f588b6b5a95e4451c3a425848d8ebd /atari/toolbar.h
parentb1a2191fbe738fa71b2d9228e8212a6ffe3d5c07 (diff)
downloadnetsurf-2c4b83b1ee1dfaf27332565b5c7bcbecc0c68f66.tar.gz
netsurf-2c4b83b1ee1dfaf27332565b5c7bcbecc0c68f66.tar.bz2
Prepared code for different button states (= different image ).
svn path=/trunk/netsurf/; revision=13924
Diffstat (limited to 'atari/toolbar.h')
-rwxr-xr-xatari/toolbar.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/atari/toolbar.h b/atari/toolbar.h
index c0987848d..10974f35f 100755
--- a/atari/toolbar.h
+++ b/atari/toolbar.h
@@ -35,6 +35,12 @@
#define TOOLBAR_URL_MARGIN_TOP 2
#define TOOLBAR_URL_MARGIN_BOTTOM 2
+enum e_toolbar_button_states {
+ button_on = 0,
+ button_off = 1
+};
+#define TOOLBAR_BUTTON_NUM_STATES 2
+
struct s_tb_button
{
short rsc_id;
@@ -42,9 +48,10 @@ struct s_tb_button
const char * iconfile;
COMPONENT * comp;
OBJECT * aes_object;
- hlcache_handle * icon;
+ hlcache_handle * icon[TOOLBAR_BUTTON_NUM_STATES];
struct gui_window * gw;
- short index;
+ short state;
+ short index;
};