mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
60c840628f
svn path=/trunk/netsurf/; revision=11053
55 lines
1.9 KiB
C
55 lines
1.9 KiB
C
/*
|
|
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>
|
|
* Copyright 2009 Paul Blokus <paul_pl@users.sourceforge.net>
|
|
*
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
*
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; version 2 of the License.
|
|
*
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/** \file
|
|
* Generic tree handling.
|
|
*/
|
|
|
|
#ifndef __NSGTK_TREEVIEW_H__
|
|
#define __NSGTK_TREEVIEW_H__
|
|
|
|
#include "desktop/browser.h"
|
|
|
|
/* defined in front end code */
|
|
extern const char tree_directory_icon_name[];
|
|
extern const char tree_content_icon_name[];
|
|
|
|
struct nsgtk_treeview;
|
|
|
|
struct nsgtk_treeview *nsgtk_treeview_create(unsigned int flags,
|
|
GtkWindow *window, GtkScrolledWindow *scrolled,
|
|
GtkDrawingArea *drawing_area);
|
|
void nsgtk_treeview_destroy(struct nsgtk_treeview *tv);
|
|
|
|
struct tree *nsgtk_treeview_get_tree(struct nsgtk_treeview *tv);
|
|
|
|
gboolean nsgtk_tree_window_expose_event(GtkWidget *, GdkEventExpose *,
|
|
gpointer g);
|
|
void nsgtk_tree_window_hide(GtkWidget *widget, gpointer g);
|
|
gboolean nsgtk_tree_window_button_press_event(GtkWidget *widget,
|
|
GdkEventButton *event, gpointer g);
|
|
gboolean nsgtk_tree_window_button_release_event(GtkWidget *widget,
|
|
GdkEventButton *event, gpointer g);
|
|
gboolean nsgtk_tree_window_motion_notify_event(GtkWidget *widget,
|
|
GdkEventButton *event, gpointer g);
|
|
gboolean nsgtk_tree_window_keypress_event(GtkWidget *widget, GdkEventKey *event,
|
|
gpointer g);
|
|
|
|
#endif /*__NSGTK_TREEVIEW_H__*/
|