summaryrefslogtreecommitdiff
path: root/atari/treeview.h
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-04-10 21:52:07 +0000
committerOle Loots <ole@monochrom.net>2011-04-10 21:52:07 +0000
commit4e7235a92f1f42872bf4c0d1621ce3f3cfba37b1 (patch)
treee81f556532cac29e2ecff2418f542b8cbc6f0e5a /atari/treeview.h
parent8723876bd53dc4137743e89e2df0ac690e6c1542 (diff)
downloadnetsurf-4e7235a92f1f42872bf4c0d1621ce3f3cfba37b1.tar.gz
netsurf-4e7235a92f1f42872bf4c0d1621ce3f3cfba37b1.tar.bz2
Moved mouse movement handling into window event handlers, updated resources, updated todos, implemented treeview + hotlist
svn path=/trunk/netsurf/; revision=12182
Diffstat (limited to 'atari/treeview.h')
-rwxr-xr-xatari/treeview.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/atari/treeview.h b/atari/treeview.h
index f5f16a57a..487479a67 100755
--- a/atari/treeview.h
+++ b/atari/treeview.h
@@ -24,18 +24,18 @@
#include "desktop/tree.h"
#include "atari/gui.h"
-/* defined in front end code */
-/*
-extern const char tree_directory_icon_name[];
-extern const char tree_content_icon_name[];
-*/
+#define ATARI_TREEVIEW_WIDGETS (CLOSER | MOVER | SIZER| NAME | FULLER | SMALLER | VSLIDE | HSLIDE | UPARROW | DNARROW | LFARROW | RTARROW)
struct atari_treeview
{
struct tree * tree;
WINDOW * window;
- struct s_browser_redrw_info redraw;
- /*tree_drag_type drag;*/
+ bool disposing;
+ bool redraw;
+ GRECT rdw_area;
+ POINT click;
+ POINT extent;
+ POINT startdrag;
};
typedef struct atari_treeview * NSTREEVIEW;
@@ -44,8 +44,10 @@ NSTREEVIEW atari_treeview_create( uint32_t flags, WINDOW * win );
void atari_treeview_destroy( NSTREEVIEW tv );
void atari_treeview_open( NSTREEVIEW tv );
void atari_treeview_close( NSTREEVIEW tv );
-struct tree * atari_treeview_get_tree( NSTREEVIEW tv );
-WINDOW * atari_tree_get_window( NSTREEVIEW tv );
+void atari_treeview_request_redraw(int x, int y, int w, int h, void *pw);
+void atari_treeview_redraw( NSTREEVIEW tv );
+bool atari_treeview_mevent( NSTREEVIEW tv, browser_mouse_state bms, int x, int y);
+
#endif \ No newline at end of file