diff options
Diffstat (limited to 'frontends/cocoa/desktop-tree.h')
-rw-r--r-- | frontends/cocoa/desktop-tree.h | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/frontends/cocoa/desktop-tree.h b/frontends/cocoa/desktop-tree.h index f8864e167..3a6fee306 100644 --- a/frontends/cocoa/desktop-tree.h +++ b/frontends/cocoa/desktop-tree.h @@ -44,45 +44,44 @@ extern const char *tree_hotlist_path; /* Tree flags */ enum tree_flags { - TREE_HISTORY, - TREE_COOKIES, - TREE_SSLCERT, - TREE_HOTLIST + TREE_HISTORY, + TREE_COOKIES, + TREE_SSLCERT, + TREE_HOTLIST }; typedef enum { - TREE_NO_DRAG = 0, - TREE_SELECT_DRAG, - TREE_MOVE_DRAG, - TREE_TEXTAREA_DRAG, /** < A drag that is passed to a textarea */ - TREE_UNKNOWN_DRAG /** < A drag the tree itself won't handle */ + TREE_NO_DRAG = 0, + TREE_SELECT_DRAG, + TREE_MOVE_DRAG, + TREE_TEXTAREA_DRAG, /** < A drag that is passed to a textarea */ + TREE_UNKNOWN_DRAG /** < A drag the tree itself won't handle */ } tree_drag_type; /** callbacks to perform necessary operations on treeview. */ struct treeview_table { - void (*redraw_request)(int x, int y, int width, int height, - void *data); /**< request a redraw. */ - void (*resized)(struct tree *tree, int width, int height, - void *data); /**< resize treeview area. */ - void (*scroll_visible)(int y, int height, void *data); /**< scroll visible treeview area. */ - void (*get_window_dimensions)(int *width, int *height, void *data); /**< get dimensions of window */ + void (*redraw_request)(int x, int y, int width, int height, + void *data); /**< request a redraw. */ + void (*resized)(struct tree *tree, int width, int height, + void *data); /**< resize treeview area. */ + void (*scroll_visible)(int y, int height, void *data); /**< scroll visible treeview area. */ + void (*get_window_dimensions)(int *width, int *height, void *data); /**< get dimensions of window */ }; struct tree *tree_create(unsigned int flags, - const struct treeview_table *callbacks, - void *client_data); + const struct treeview_table *callbacks, + void *client_data); /** deprecated compatibility layer for new treeview modules. Do not use. */ void tree_delete(struct tree *tree); tree_drag_type tree_drag_status(struct tree *tree); void tree_draw(struct tree *tree, int x, int y, - int clip_x, int clip_y, int clip_width, int clip_height, - const struct redraw_context *ctx); + int clip_x, int clip_y, int clip_width, int clip_height, + const struct redraw_context *ctx); bool tree_mouse_action(struct tree *tree, browser_mouse_state mouse, - int x, int y); + int x, int y); void tree_drag_end(struct tree *tree, browser_mouse_state mouse, int x0, int y0, - int x1, int y1); + int x1, int y1); bool tree_keypress(struct tree *tree, uint32_t key); - #endif |