diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-05-10 17:17:03 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-05-10 17:17:03 +0000 |
commit | dc9e685cde0f63fc4f7fc60fbaf8f809642e0151 (patch) | |
tree | 03ccec34b4984373430331cade8d58a0a30b174c /desktop/scrollbar.h | |
parent | 2b19c144da0e3adbe5f15a26545bd370bd51b63a (diff) | |
download | netsurf-dc9e685cde0f63fc4f7fc60fbaf8f809642e0151.tar.gz netsurf-dc9e685cde0f63fc4f7fc60fbaf8f809642e0151.tar.bz2 |
Scrollbar widget changes: Update functon parameters to have names that aren't wrong. Remove confusion and wrongness from API documentation. General source tidy.
svn path=/trunk/netsurf/; revision=12372
Diffstat (limited to 'desktop/scrollbar.h')
-rw-r--r-- | desktop/scrollbar.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/desktop/scrollbar.h b/desktop/scrollbar.h index d211339b8..5a9cc108f 100644 --- a/desktop/scrollbar.h +++ b/desktop/scrollbar.h @@ -53,43 +53,43 @@ struct scrollbar_msg_data { /** * Client callback for the scrollbar. * - * \param client_data user data passed at scroll creation - * \param scrollbar_data struct all necessary message data + * \param client_data user data passed at scroll creation + * \param scrollbar_data scrollbar message data */ typedef void(*scrollbar_client_callback)(void *client_data, struct scrollbar_msg_data *scrollbar_data); -bool scrollbar_create(bool horizontal, int length, - int scrolled_dimension, int scrolled_visible, - void *client_data, scrollbar_client_callback client_callback, - struct scrollbar **scrollbar); +bool scrollbar_create(bool horizontal, int length, int full_size, + int visible_size, void *client_data, + scrollbar_client_callback client_callback, + struct scrollbar **s); -void scrollbar_destroy(struct scrollbar *scrollbar); +void scrollbar_destroy(struct scrollbar *s); -bool scrollbar_redraw(struct scrollbar *scrollbar, int x, int y, +bool scrollbar_redraw(struct scrollbar *s, int x, int y, const struct rect *clip, float scale); -void scrollbar_set(struct scrollbar *scrollbar, int scrollbar_val, bool bar); +void scrollbar_set(struct scrollbar *s, int value, bool bar_pos); -int scrollbar_get_offset(struct scrollbar *scrollbar); +int scrollbar_get_offset(struct scrollbar *s); -void scrollbar_set_extents(struct scrollbar *scrollbar, int length, - int scrolled_visible, int scrolled_dimension); +void scrollbar_set_extents(struct scrollbar *s, int length, + int visible_size, int full_size); -bool scrollbar_is_horizontal(struct scrollbar *scrollbar); +bool scrollbar_is_horizontal(struct scrollbar *s); -const char *scrollbar_mouse_action(struct scrollbar *scrollbar, +const char *scrollbar_mouse_action(struct scrollbar *s, browser_mouse_state mouse, int x, int y); -void scrollbar_mouse_drag_end(struct scrollbar *scrollbar, +void scrollbar_mouse_drag_end(struct scrollbar *s, browser_mouse_state mouse, int x, int y); -void scrollbar_start_content_drag(struct scrollbar *scrollbar, int x, int y); +void scrollbar_start_content_drag(struct scrollbar *s, int x, int y); -void scrollbar_make_pair(struct scrollbar *horizontal_scrollbar, - struct scrollbar *vertical_scrollbar); +void scrollbar_make_pair(struct scrollbar *horizontal, + struct scrollbar *vertical); -void *scrollbar_get_data(struct scrollbar *scrollbar); +void *scrollbar_get_data(struct scrollbar *s); #endif |