summaryrefslogtreecommitdiff
path: root/frontends/cocoa/desktop-tree.h
diff options
context:
space:
mode:
authorSven Weidauer <sven@5sw.de>2017-06-05 12:43:58 +0200
committerSven Weidauer <sven@5sw.de>2017-06-05 12:43:58 +0200
commit7a3976a120e33a9a56590388e5ed077a0c766e14 (patch)
treeb5accdebdecea0ba26cd14b5e2d2cfc2f7b82d1b /frontends/cocoa/desktop-tree.h
parente51c739bfc8e0c50161172952c99b8796703c6fe (diff)
downloadnetsurf-7a3976a120e33a9a56590388e5ed077a0c766e14.tar.gz
netsurf-7a3976a120e33a9a56590388e5ed077a0c766e14.tar.bz2
Reformat headers as well.
Diffstat (limited to 'frontends/cocoa/desktop-tree.h')
-rw-r--r--frontends/cocoa/desktop-tree.h43
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