summaryrefslogtreecommitdiff
path: root/atari/toolbar.h
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-11-29 02:01:13 +0100
committerOle Loots <ole@monochrom.net>2012-11-29 02:01:13 +0100
commit1b93b72b9b731bb1844d5941e5165ff0ebc6711a (patch)
tree90ae6b57e574949a8ebbafdcfa60ea4888c50f2b /atari/toolbar.h
parent9ec2e77b2782454facda6858ca04735cb03f6743 (diff)
downloadnetsurf-1b93b72b9b731bb1844d5941e5165ff0ebc6711a.tar.gz
netsurf-1b93b72b9b731bb1844d5941e5165ff0ebc6711a.tar.bz2
re-implemented browser toolbar redraw / URL area redraw.
Diffstat (limited to 'atari/toolbar.h')
-rw-r--r--atari/toolbar.h38
1 files changed, 37 insertions, 1 deletions
diff --git a/atari/toolbar.h b/atari/toolbar.h
index 17cb16d08..6a40cf3e5 100644
--- a/atari/toolbar.h
+++ b/atari/toolbar.h
@@ -13,6 +13,40 @@ enum toolbar_textarea {
URL_INPUT_TEXT_AREA = 1
};
+struct s_url_widget
+{
+ /* widget is only redrawn when this flag is set */
+ bool redraw;
+ struct text_area *textarea;
+ GRECT rdw_area;
+ GRECT area;
+};
+
+struct s_throbber_widget
+{
+ short index;
+ short max_index;
+ bool running;
+ GRECT area;
+};
+
+struct s_toolbar
+{
+ struct s_gui_win_root *owner;
+ struct s_url_widget url;
+ struct s_throbber_widget throbber;
+ GRECT btdim;
+ GRECT area;
+ /* size & location of buttons: */
+ struct s_tb_button * buttons;
+ bool hidden;
+ int btcnt;
+ int style;
+ bool redraw;
+ bool reflow;
+};
+
+
void toolbar_init(void);
struct s_toolbar *toolbar_create(struct s_gui_win_root *owner);
void toolbar_destroy(struct s_toolbar * tb);
@@ -24,10 +58,12 @@ bool toolbar_key_input(struct s_toolbar *tb, short nkc);
void toolbar_mouse_input(struct s_toolbar *tb, short mx, short my);
void toolbar_update_buttons(struct s_toolbar *tb, struct browser_window *bw,
short idx);
-void toolbar_get_grect(struct s_toolbar *tb, short which, short opt, GRECT *g);
+void toolbar_get_grect(struct s_toolbar *tb, short which, GRECT *g);
struct text_area *toolbar_get_textarea(struct s_toolbar *tb,
enum toolbar_textarea which);
+void toolbar_set_throbber_state(struct s_toolbar *tb, bool active);
void toolbar_redraw(struct s_toolbar *tb, GRECT *clip);
+void toolbar_throbber_progress(struct s_toolbar *tb);
/* public events handlers: */
void toolbar_back_click(struct s_toolbar *tb);
void toolbar_reload_click(struct s_toolbar *tb);