diff options
Diffstat (limited to 'atari/toolbar.h')
-rw-r--r-- | atari/toolbar.h | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/atari/toolbar.h b/atari/toolbar.h index 19063f906..61ae48c82 100644 --- a/atari/toolbar.h +++ b/atari/toolbar.h @@ -26,37 +26,35 @@ struct s_toolbar; struct nsurl; enum toolbar_textarea { - URL_INPUT_TEXT_AREA = 1 + URL_INPUT_TEXT_AREA = 1 }; -struct s_url_widget
-{
+struct s_url_widget { struct textarea *textarea; - GRECT area;
+ GRECT area; }; -struct s_throbber_widget
-{
- short index;
- short max_index;
- bool running;
-};
+struct s_throbber_widget { + short index; + short max_index; + bool running; +}; -struct s_toolbar
-{
+struct s_toolbar { struct s_gui_win_root *owner; - struct s_url_widget url;
+ struct s_url_widget url; struct s_throbber_widget throbber; OBJECT *form; - GRECT area;
+ GRECT area; + /* size & location of buttons: */ struct s_tb_button * buttons; int btcnt; int style; bool attached; - bool reflow; - bool visible; - bool search_visible;
+ bool reflow; + bool visible; + bool search_visible; }; @@ -68,11 +66,11 @@ bool toolbar_text_input(struct s_toolbar *tb, char *text); bool toolbar_key_input(struct s_toolbar *tb, short nkc); void toolbar_mouse_input(struct s_toolbar *tb, short obj, short mbut); void toolbar_update_buttons(struct s_toolbar *tb, struct browser_window *bw, - short idx); + short idx); void toolbar_get_grect(struct s_toolbar *tb, short which, GRECT *g); OBJECT *toolbar_get_form(struct s_toolbar *tb); struct textarea *toolbar_get_textarea(struct s_toolbar *tb, - enum toolbar_textarea which); + enum toolbar_textarea which); char *toolbar_get_url(struct s_toolbar *tb); struct nsurl * toolbar_get_nsurl(struct s_toolbar * tb); void toolbar_set_throbber_state(struct s_toolbar *tb, bool active); @@ -86,10 +84,10 @@ void toolbar_set_url(struct s_toolbar *tb, const char *text); 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);
-void toolbar_forward_click(struct s_toolbar *tb);
-void toolbar_home_click(struct s_toolbar *tb);
+void toolbar_back_click(struct s_toolbar *tb); +void toolbar_reload_click(struct s_toolbar *tb); +void toolbar_forward_click(struct s_toolbar *tb); +void toolbar_home_click(struct s_toolbar *tb); void toolbar_stop_click(struct s_toolbar *tb); void toolbar_favorite_click(struct s_toolbar *tb); void toolbar_crypto_click(struct s_toolbar *tb); |