From 5449303bd1bf27e4cc8baccb0985e4d52c563caf Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Tue, 20 Nov 2012 00:29:20 +0100 Subject: Ripped Windom out of the treeview implementation, it still requires scroll event handling to be implemented. --- atari/treeview.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'atari/treeview.h') diff --git a/atari/treeview.h b/atari/treeview.h index 3796665af..41d1cf519 100755 --- a/atari/treeview.h +++ b/atari/treeview.h @@ -22,25 +22,27 @@ #include #include #include "desktop/tree.h" -#include "atari/gui.h" +#include "atari/gui.h" +#include "atari/gemtk/gemtk.h" #define ATARI_TREEVIEW_WIDGETS (CLOSER | MOVER | SIZER| NAME | FULLER | SMALLER | VSLIDE | HSLIDE | UPARROW | DNARROW | LFARROW | RTARROW) struct atari_treeview { struct tree * tree; - WINDOW * window; + GUIWIN * window; bool disposing; bool redraw; GRECT rdw_area; POINT click; - POINT extent; - POINT startdrag; + POINT startdrag; + guiwin_event_handler_f user_func; }; typedef struct atari_treeview * NSTREEVIEW; -NSTREEVIEW atari_treeview_create( uint32_t flags, WINDOW * win ); +NSTREEVIEW atari_treeview_create( uint32_t flags, GUIWIN *win, + guiwin_event_handler_f user_func); void atari_treeview_destroy( NSTREEVIEW tv ); void atari_treeview_open( NSTREEVIEW tv ); void atari_treeview_close( NSTREEVIEW tv ); -- cgit v1.2.3