From 4e7235a92f1f42872bf4c0d1621ce3f3cfba37b1 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Sun, 10 Apr 2011 21:52:07 +0000 Subject: Moved mouse movement handling into window event handlers, updated resources, updated todos, implemented treeview + hotlist svn path=/trunk/netsurf/; revision=12182 --- atari/treeview.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'atari/treeview.h') 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 -- cgit v1.2.3