summaryrefslogtreecommitdiff
path: root/riscos/treeview.h
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-12-09 10:30:44 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-12-09 10:30:44 +0000
commit32db7e04d0c3bd255b2e8aa7dbd7c2b884b35614 (patch)
tree312984b2b972916fd10e1efc338d08e437d55b70 /riscos/treeview.h
parent77a96712244ad4a8b4bde235aa051372a64a8789 (diff)
downloadnetsurf-32db7e04d0c3bd255b2e8aa7dbd7c2b884b35614.tar.gz
netsurf-32db7e04d0c3bd255b2e8aa7dbd7c2b884b35614.tar.bz2
[project @ 2004-12-09 10:30:43 by rjw]
Re-implementation of hotlist via general tree code. Animations can be stopped once more. Purged a few xcalloc() calls. svn path=/import/netsurf/; revision=1394
Diffstat (limited to 'riscos/treeview.h')
-rw-r--r--riscos/treeview.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/riscos/treeview.h b/riscos/treeview.h
new file mode 100644
index 000000000..1757d2fd8
--- /dev/null
+++ b/riscos/treeview.h
@@ -0,0 +1,45 @@
+/*
+ * This file is part of NetSurf, http://netsurf.sourceforge.net/
+ * Licensed under the GNU General Public License,
+ * http://www.opensource.org/licenses/gpl-license
+ * Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>
+ */
+
+/** \file
+ * Generic tree handling (interface).
+ */
+
+#ifndef _NETSURF_RISCOS_TREEVIEW_H_
+#define _NETSURF_RISCOS_TREEVIEW_H_
+
+#include <stdbool.h>
+#include "oslib/osspriteop.h"
+#include "oslib/wimp.h"
+#include "netsurf/desktop/tree.h"
+
+#define TREE_TEXT_HEIGHT 40
+#define TREE_SPRITE_WIDTH 40 /* text plus sprite entries only */
+
+struct node_sprite {
+ osspriteop_area *area;
+ char name[12];
+ char expanded_name[12];
+};
+
+bool ro_gui_tree_initialise(void);
+void ro_gui_tree_redraw(wimp_draw *redraw, struct tree *tree);
+bool ro_gui_tree_click(wimp_pointer *pointer, struct tree *tree);
+void ro_gui_tree_menu_closed(struct tree *tree);
+void ro_gui_tree_stop_edit(struct tree *tree);
+void ro_gui_tree_open(wimp_open *open, struct tree *tree);
+bool ro_gui_tree_keypress(int key, struct tree *tree);
+void ro_gui_tree_selection_drag_end(wimp_dragged *drag);
+void ro_gui_tree_move_drag_end(wimp_dragged *drag);
+void ro_gui_tree_launch_selected(struct tree *tree);
+void ro_gui_tree_start_edit(struct tree *tree, struct node_element *element,
+ wimp_pointer *pointer);
+void ro_gui_tree_scroll_visible(struct tree *tree, struct node_element *element);
+void ro_gui_tree_get_tree_coordinates(struct tree *tree, int x, int y,
+ int *tree_x, int *tree_y);
+
+#endif