diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-05-31 13:24:27 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-05-31 13:24:27 +0100 |
commit | ab9efd19fe88547c305589e518a49961d58028b5 (patch) | |
tree | 2c19d544a0b39b8dae5e49ec1688d5eb0ef937c7 /desktop/treeview.h | |
parent | d9394608726224bdaf5678ea634564b9da2b5248 (diff) | |
download | netsurf-ab9efd19fe88547c305589e518a49961d58028b5.tar.gz netsurf-ab9efd19fe88547c305589e518a49961d58028b5.tar.bz2 |
Make node flags for expanded and selected. Start mouse action support. (Little more than a stub.)
Diffstat (limited to 'desktop/treeview.h')
-rw-r--r-- | desktop/treeview.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/desktop/treeview.h b/desktop/treeview.h index 91383d313..6969ea60a 100644 --- a/desktop/treeview.h +++ b/desktop/treeview.h @@ -118,6 +118,17 @@ nserror treeview_node_contract(struct treeview *tree, void treeview_redraw(struct treeview *tree, int x, int y, struct rect *clip, const struct redraw_context *ctx); +/** + * Handles all kinds of mouse action + * + * \param tree Treeview + * \param mouse the mouse state at action moment + * \param x X coordinate + * \param y Y coordinate + */ +void treeview_mouse_action(struct treeview *tree, + browser_mouse_state mouse, int x, int y); + struct treeview_node * treeview_get_root(struct treeview *tree); #endif |