summaryrefslogtreecommitdiff
path: root/atari/toolbar.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-05-28 09:11:32 +0100
committerVincent Sanders <vince@kyllikki.org>2015-05-28 09:11:32 +0100
commit20f2c86a511f7913cf858e7bd3668b0b59663ba0 (patch)
treebcf302d9d30b8b3abf66a06ef285436952e0f00c /atari/toolbar.h
parenta098626ff1c87726551419448c8b01b05aff20b9 (diff)
downloadnetsurf-20f2c86a511f7913cf858e7bd3668b0b59663ba0.tar.gz
netsurf-20f2c86a511f7913cf858e7bd3668b0b59663ba0.tar.bz2
Clean up atari source linendings, whitespace damage and executable status
Diffstat (limited to 'atari/toolbar.h')
-rw-r--r--atari/toolbar.h44
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);