2000-10-05 01:04:57 +00:00
|
|
|
|
/* gtktreeview.h
|
|
|
|
|
* Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com>
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library 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
|
|
|
|
|
* Library General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2000-10-05 01:04:57 +00:00
|
|
|
|
*/
|
2008-05-28 15:07:04 +00:00
|
|
|
|
|
2012-12-28 14:57:34 +00:00
|
|
|
|
#ifndef __GTK_TREE_VIEW_H__
|
|
|
|
|
#define __GTK_TREE_VIEW_H__
|
|
|
|
|
|
2009-10-21 18:30:04 +00:00
|
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
2008-05-28 15:07:04 +00:00
|
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-05-05 11:27:04 +00:00
|
|
|
|
#include <gtk/gtkwidget.h>
|
2022-10-07 21:47:28 +00:00
|
|
|
|
#include <gtk/deprecated/gtktreemodel.h>
|
|
|
|
|
#include <gtk/deprecated/gtktreeviewcolumn.h>
|
2006-01-24 10:49:29 +00:00
|
|
|
|
#include <gtk/gtkentry.h>
|
2000-10-05 01:04:57 +00:00
|
|
|
|
|
2005-06-21 05:35:43 +00:00
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
2010-11-06 02:04:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkTreeViewDropPosition:
|
|
|
|
|
* @GTK_TREE_VIEW_DROP_BEFORE: dropped row is inserted before
|
|
|
|
|
* @GTK_TREE_VIEW_DROP_AFTER: dropped row is inserted after
|
|
|
|
|
* @GTK_TREE_VIEW_DROP_INTO_OR_BEFORE: dropped row becomes a child or is inserted before
|
|
|
|
|
* @GTK_TREE_VIEW_DROP_INTO_OR_AFTER: dropped row becomes a child or is inserted after
|
|
|
|
|
*
|
|
|
|
|
* An enum for determining where a dropped row goes.
|
|
|
|
|
*/
|
2001-01-19 22:39:19 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
/* drop before/after this row */
|
|
|
|
|
GTK_TREE_VIEW_DROP_BEFORE,
|
|
|
|
|
GTK_TREE_VIEW_DROP_AFTER,
|
|
|
|
|
/* drop as a child of this row (with fallback to before or after
|
|
|
|
|
* if into is not possible)
|
|
|
|
|
*/
|
|
|
|
|
GTK_TREE_VIEW_DROP_INTO_OR_BEFORE,
|
|
|
|
|
GTK_TREE_VIEW_DROP_INTO_OR_AFTER
|
|
|
|
|
} GtkTreeViewDropPosition;
|
|
|
|
|
|
2020-07-17 00:06:06 +00:00
|
|
|
|
#define GTK_TYPE_TREE_VIEW (gtk_tree_view_get_type ())
|
|
|
|
|
#define GTK_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_VIEW, GtkTreeView))
|
|
|
|
|
#define GTK_IS_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_VIEW))
|
|
|
|
|
#define GTK_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_VIEW, GtkTreeViewClass))
|
|
|
|
|
#define GTK_IS_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_VIEW))
|
|
|
|
|
#define GTK_TREE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_VIEW, GtkTreeViewClass))
|
2000-10-05 01:04:57 +00:00
|
|
|
|
|
2001-04-28 00:29:34 +00:00
|
|
|
|
typedef struct _GtkTreeView GtkTreeView;
|
2020-07-17 00:06:06 +00:00
|
|
|
|
typedef struct _GtkTreeViewClass GtkTreeViewClass;
|
2000-10-05 01:04:57 +00:00
|
|
|
|
typedef struct _GtkTreeSelection GtkTreeSelection;
|
|
|
|
|
|
2010-11-06 02:04:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkTreeViewColumnDropFunc:
|
2021-05-20 13:17:04 +00:00
|
|
|
|
* @tree_view: A `GtkTreeView`
|
|
|
|
|
* @column: The `GtkTreeViewColumn` being dragged
|
|
|
|
|
* @prev_column: A `GtkTreeViewColumn` on one side of @column
|
|
|
|
|
* @next_column: A `GtkTreeViewColumn` on the other side of @column
|
2011-01-18 05:28:24 +00:00
|
|
|
|
* @data: (closure): user data
|
2010-11-06 02:04:27 +00:00
|
|
|
|
*
|
|
|
|
|
* Function type for determining whether @column can be dropped in a
|
|
|
|
|
* particular spot (as determined by @prev_column and @next_column). In
|
|
|
|
|
* left to right locales, @prev_column is on the left of the potential drop
|
|
|
|
|
* spot, and @next_column is on the right. In right to left mode, this is
|
|
|
|
|
* reversed. This function should return %TRUE if the spot is a valid drop
|
|
|
|
|
* spot. Please note that returning %TRUE does not actually indicate that
|
|
|
|
|
* the column drop was made, but is meant only to indicate a possible drop
|
|
|
|
|
* spot to the user.
|
|
|
|
|
*
|
|
|
|
|
* Returns: %TRUE, if @column can be dropped in this spot
|
|
|
|
|
*/
|
2001-04-28 00:29:34 +00:00
|
|
|
|
typedef gboolean (* GtkTreeViewColumnDropFunc) (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewColumn *column,
|
|
|
|
|
GtkTreeViewColumn *prev_column,
|
|
|
|
|
GtkTreeViewColumn *next_column,
|
|
|
|
|
gpointer data);
|
2010-11-06 02:04:27 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GtkTreeViewMappingFunc:
|
2021-05-20 13:17:04 +00:00
|
|
|
|
* @tree_view: A `GtkTreeView`
|
2014-02-07 18:01:26 +00:00
|
|
|
|
* @path: The path that’s expanded
|
2010-11-06 02:04:27 +00:00
|
|
|
|
* @user_data: user data
|
|
|
|
|
*
|
|
|
|
|
* Function used for gtk_tree_view_map_expanded_rows().
|
|
|
|
|
*/
|
2001-04-28 00:29:34 +00:00
|
|
|
|
typedef void (* GtkTreeViewMappingFunc) (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
gpointer user_data);
|
2010-11-06 02:04:27 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GtkTreeViewSearchEqualFunc:
|
2021-05-20 13:17:04 +00:00
|
|
|
|
* @model: the `GtkTreeModel` being searched
|
2010-11-06 02:04:27 +00:00
|
|
|
|
* @column: the search column set by gtk_tree_view_set_search_column()
|
|
|
|
|
* @key: the key string to compare with
|
2021-05-20 13:17:04 +00:00
|
|
|
|
* @iter: a `GtkTreeIter` pointing the row of @model that should be compared
|
2010-11-06 02:04:27 +00:00
|
|
|
|
* with @key.
|
2011-01-18 05:28:24 +00:00
|
|
|
|
* @search_data: (closure): user data from gtk_tree_view_set_search_equal_func()
|
2010-11-06 02:04:27 +00:00
|
|
|
|
*
|
|
|
|
|
* A function used for checking whether a row in @model matches
|
|
|
|
|
* a search key string entered by the user. Note the return value
|
|
|
|
|
* is reversed from what you would normally expect, though it
|
|
|
|
|
* has some similarity to strcmp() returning 0 for equal strings.
|
|
|
|
|
*
|
|
|
|
|
* Returns: %FALSE if the row matches, %TRUE otherwise.
|
|
|
|
|
*/
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
typedef gboolean (*GtkTreeViewSearchEqualFunc) (GtkTreeModel *model,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int column,
|
2020-07-24 18:40:36 +00:00
|
|
|
|
const char *key,
|
2001-09-01 04:14:25 +00:00
|
|
|
|
GtkTreeIter *iter,
|
|
|
|
|
gpointer search_data);
|
2010-11-06 02:04:27 +00:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GtkTreeViewRowSeparatorFunc:
|
2021-05-20 13:17:04 +00:00
|
|
|
|
* @model: the `GtkTreeModel`
|
|
|
|
|
* @iter: a `GtkTreeIter` pointing at a row in @model
|
2011-01-18 05:28:24 +00:00
|
|
|
|
* @data: (closure): user data
|
2010-11-06 02:04:27 +00:00
|
|
|
|
*
|
|
|
|
|
* Function type for determining whether the row pointed to by @iter should
|
|
|
|
|
* be rendered as a separator. A common way to implement this is to have a
|
2021-05-20 13:17:04 +00:00
|
|
|
|
* boolean column in the model, whose values the `GtkTreeViewRowSeparatorFunc`
|
2010-11-06 02:04:27 +00:00
|
|
|
|
* returns.
|
|
|
|
|
*
|
|
|
|
|
* Returns: %TRUE if the row is a separator
|
|
|
|
|
*/
|
2004-07-07 15:15:35 +00:00
|
|
|
|
typedef gboolean (*GtkTreeViewRowSeparatorFunc) (GtkTreeModel *model,
|
|
|
|
|
GtkTreeIter *iter,
|
|
|
|
|
gpointer data);
|
2001-04-28 00:29:34 +00:00
|
|
|
|
|
2020-07-17 00:06:06 +00:00
|
|
|
|
struct _GtkTreeView
|
|
|
|
|
{
|
|
|
|
|
GtkWidget parent_instance;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct _GtkTreeViewClass
|
|
|
|
|
{
|
|
|
|
|
GtkWidgetClass parent_class;
|
|
|
|
|
|
|
|
|
|
void (* row_activated) (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *column);
|
|
|
|
|
gboolean (* test_expand_row) (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeIter *iter,
|
|
|
|
|
GtkTreePath *path);
|
|
|
|
|
gboolean (* test_collapse_row) (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeIter *iter,
|
|
|
|
|
GtkTreePath *path);
|
|
|
|
|
void (* row_expanded) (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeIter *iter,
|
|
|
|
|
GtkTreePath *path);
|
|
|
|
|
void (* row_collapsed) (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeIter *iter,
|
|
|
|
|
GtkTreePath *path);
|
|
|
|
|
void (* columns_changed) (GtkTreeView *tree_view);
|
|
|
|
|
void (* cursor_changed) (GtkTreeView *tree_view);
|
|
|
|
|
|
|
|
|
|
/* Key Binding signals */
|
|
|
|
|
gboolean (* move_cursor) (GtkTreeView *tree_view,
|
|
|
|
|
GtkMovementStep step,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int count,
|
2020-07-17 00:06:06 +00:00
|
|
|
|
gboolean extend,
|
|
|
|
|
gboolean modify);
|
|
|
|
|
gboolean (* select_all) (GtkTreeView *tree_view);
|
|
|
|
|
gboolean (* unselect_all) (GtkTreeView *tree_view);
|
|
|
|
|
gboolean (* select_cursor_row) (GtkTreeView *tree_view,
|
|
|
|
|
gboolean start_editing);
|
|
|
|
|
gboolean (* toggle_cursor_row) (GtkTreeView *tree_view);
|
|
|
|
|
gboolean (* expand_collapse_cursor_row) (GtkTreeView *tree_view,
|
|
|
|
|
gboolean logical,
|
|
|
|
|
gboolean expand,
|
|
|
|
|
gboolean open_all);
|
|
|
|
|
gboolean (* select_cursor_parent) (GtkTreeView *tree_view);
|
|
|
|
|
gboolean (* start_interactive_search) (GtkTreeView *tree_view);
|
|
|
|
|
|
|
|
|
|
/*< private >*/
|
|
|
|
|
gpointer _reserved[16];
|
|
|
|
|
};
|
2001-04-28 00:29:34 +00:00
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-11-23 20:02:15 +00:00
|
|
|
|
GType gtk_tree_view_get_type (void) G_GNUC_CONST;
|
2020-07-17 00:06:06 +00:00
|
|
|
|
|
|
|
|
|
/* Creators */
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-03-16 23:22:46 +00:00
|
|
|
|
GtkWidget *gtk_tree_view_new (void);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkWidget *gtk_tree_view_new_with_model (GtkTreeModel *model);
|
|
|
|
|
|
|
|
|
|
/* Accessors */
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreeModel *gtk_tree_view_get_model (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_set_model (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeModel *model);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreeSelection *gtk_tree_view_get_selection (GtkTreeView *tree_view);
|
2010-10-18 04:21:39 +00:00
|
|
|
|
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gboolean gtk_tree_view_get_headers_visible (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_set_headers_visible (GtkTreeView *tree_view,
|
|
|
|
|
gboolean headers_visible);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_columns_autosize (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2005-11-10 14:18:45 +00:00
|
|
|
|
gboolean gtk_tree_view_get_headers_clickable (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view,
|
|
|
|
|
gboolean setting);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2013-01-17 23:27:15 +00:00
|
|
|
|
gboolean gtk_tree_view_get_activate_on_single_click (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2013-01-17 23:27:15 +00:00
|
|
|
|
void gtk_tree_view_set_activate_on_single_click (GtkTreeView *tree_view,
|
|
|
|
|
gboolean single);
|
2001-04-28 00:29:34 +00:00
|
|
|
|
|
2020-05-28 08:00:03 +00:00
|
|
|
|
/* Column functions */
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int gtk_tree_view_append_column (GtkTreeView *tree_view,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreeViewColumn *column);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int gtk_tree_view_remove_column (GtkTreeView *tree_view,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreeViewColumn *column);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int gtk_tree_view_insert_column (GtkTreeView *tree_view,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreeViewColumn *column,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int position);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int gtk_tree_view_insert_column_with_attributes (GtkTreeView *tree_view,
|
|
|
|
|
int position,
|
2020-07-24 18:40:36 +00:00
|
|
|
|
const char *title,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkCellRenderer *cell,
|
2005-03-08 05:52:55 +00:00
|
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int gtk_tree_view_insert_column_with_data_func (GtkTreeView *tree_view,
|
|
|
|
|
int position,
|
2020-07-24 18:40:36 +00:00
|
|
|
|
const char *title,
|
2001-05-25 20:41:46 +00:00
|
|
|
|
GtkCellRenderer *cell,
|
2001-06-01 22:57:30 +00:00
|
|
|
|
GtkTreeCellDataFunc func,
|
2001-05-25 20:41:46 +00:00
|
|
|
|
gpointer data,
|
|
|
|
|
GDestroyNotify dnotify);
|
2012-02-27 12:10:59 +00:00
|
|
|
|
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2011-11-15 15:37:24 +00:00
|
|
|
|
guint gtk_tree_view_get_n_columns (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreeViewColumn *gtk_tree_view_get_column (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int n);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-30 16:16:02 +00:00
|
|
|
|
GList *gtk_tree_view_get_columns (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-30 16:16:02 +00:00
|
|
|
|
void gtk_tree_view_move_column_after (GtkTreeView *tree_view,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreeViewColumn *column,
|
2001-04-30 16:16:02 +00:00
|
|
|
|
GtkTreeViewColumn *base_column);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_set_expander_column (GtkTreeView *tree_view,
|
2001-06-29 03:11:01 +00:00
|
|
|
|
GtkTreeViewColumn *column);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-06-29 03:11:01 +00:00
|
|
|
|
GtkTreeViewColumn *gtk_tree_view_get_expander_column (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-05-09 22:23:12 +00:00
|
|
|
|
void gtk_tree_view_set_column_drag_function (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewColumnDropFunc func,
|
|
|
|
|
gpointer user_data,
|
2008-06-18 09:12:32 +00:00
|
|
|
|
GDestroyNotify destroy);
|
2001-01-19 22:39:19 +00:00
|
|
|
|
|
2000-10-05 01:04:57 +00:00
|
|
|
|
/* Actions */
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_scroll_to_point (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int tree_x,
|
|
|
|
|
int tree_y);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_scroll_to_cell (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *column,
|
2001-08-24 20:09:26 +00:00
|
|
|
|
gboolean use_align,
|
2020-07-24 20:25:56 +00:00
|
|
|
|
float row_align,
|
|
|
|
|
float col_align);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_row_activated (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *column);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_expand_all (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_collapse_all (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2002-06-04 19:05:33 +00:00
|
|
|
|
void gtk_tree_view_expand_to_path (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gboolean gtk_tree_view_expand_row (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
gboolean open_all);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gboolean gtk_tree_view_collapse_row (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_map_expanded_rows (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewMappingFunc func,
|
|
|
|
|
gpointer data);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-06-19 00:08:48 +00:00
|
|
|
|
gboolean gtk_tree_view_row_expanded (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-05-16 00:23:30 +00:00
|
|
|
|
void gtk_tree_view_set_reorderable (GtkTreeView *tree_view,
|
|
|
|
|
gboolean reorderable);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-06-24 15:34:48 +00:00
|
|
|
|
gboolean gtk_tree_view_get_reorderable (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-06-08 22:59:37 +00:00
|
|
|
|
void gtk_tree_view_set_cursor (GtkTreeView *tree_view,
|
2001-09-25 16:44:39 +00:00
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *focus_column,
|
|
|
|
|
gboolean start_editing);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
The "big treeview focus patch". Fixes several issues and adds some
Sun May 5 16:42:32 2002 Kristian Rietveld <kris@gtk.org>
The "big treeview focus patch". Fixes several issues and adds some
goodies. Related bugs: #73676, #73734, #78660.
* gtk/gtktreeview.h: add gtk_tree_view_set_cursor_on_cell
* gtk/gtktreeview.c (gtk_tree_view_button_press): focus on a cell
if applicable,
(gtk_tree_view_bin_expose): set_cell_data before iterating columns,
add support for row-spanning focus rectangles,
(gtk_tree_view_has_special_cell): new function,
(gtk_tree_view_move_cursor_left_right): add support for multiple
focusable cells in one column,
(gtk_tree_view_set_cursor): call _set_cursor_on_cell now,
(gtk_tree_view_set_cursor_on_cell): copy of _set_cursor, extended
with focus_cell parameter,
(gtk_tree_view_search_iter): removed unused column variable,
(gtk_tree_view_start_editing): add neighbor size code to allow
for multiple editable cells in one column.
* gtk/gtktreeviewcolumn.c (_GtkTreeViewColumnCellInfo): add
in_editing_mode field,
(gtk_tree_view_column_get_edited_cell): new function, removed
_get_editable_cell,
(_gtk_tree_view_column_get_cell_at_pos): new function,
(gtk_tree_view_column_pack_end): s/g_new/g_new0/ ...,
(gtk_tree_view_column_cell_process_action): loads of changes to get
it right and to allow for multiple special cells, etc,
(gtk_tree_view_column_cell_first): new function,
(gtk_tree_view_column_cell_last): ditto,
(gtk_tree_view_column_cell_next): ditto,
(gtk_tree_view_column_cell_prev): ditto,
(gtk_tree_view_column_cell_focus): add left and right parameters,
allow for multiple special cells,
(gtk_tree_view_column_cell_is_visible): add assertion,
(gtk_tree_view_column_focus_cell): new function,
(gtk_tree_view_column_stop_editing): unset in_editing_mode flag,
(_gtk_tree_view_column_get_neighbor_sizes): iterate through cells
correctly
* gtk/gtktreeviewcolumn.h: add gtk_tree_view_column_focus_cell
* gtk/gtktreeprivate.h: s/_get_editable_cell/_get_edited_cell/, add
_gtk_tree_view_column_get_cell_at_pos, add new parameters to
_gtk_tree_view_column_cell_focus.
* tests/testtreeedit.c: add some cells in order to test new code.
2002-05-05 14:54:00 +00:00
|
|
|
|
void gtk_tree_view_set_cursor_on_cell (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *focus_column,
|
|
|
|
|
GtkCellRenderer *focus_cell,
|
|
|
|
|
gboolean start_editing);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-09-25 19:38:18 +00:00
|
|
|
|
void gtk_tree_view_get_cursor (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath **path,
|
|
|
|
|
GtkTreeViewColumn **focus_column);
|
2001-05-16 00:23:30 +00:00
|
|
|
|
|
2001-04-28 00:29:34 +00:00
|
|
|
|
|
|
|
|
|
/* Layout information */
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gboolean gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int x,
|
|
|
|
|
int y,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreePath **path,
|
|
|
|
|
GtkTreeViewColumn **column,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int *cell_x,
|
|
|
|
|
int *cell_y);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_get_cell_area (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *column,
|
|
|
|
|
GdkRectangle *rect);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_get_background_area (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *column,
|
|
|
|
|
GdkRectangle *rect);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_get_visible_rect (GtkTreeView *tree_view,
|
|
|
|
|
GdkRectangle *visible_rect);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2005-07-13 23:05:27 +00:00
|
|
|
|
gboolean gtk_tree_view_get_visible_range (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath **start_path,
|
|
|
|
|
GtkTreePath **end_path);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2011-01-07 14:35:35 +00:00
|
|
|
|
gboolean gtk_tree_view_is_blank_at_pos (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int x,
|
|
|
|
|
int y,
|
2011-01-07 14:35:35 +00:00
|
|
|
|
GtkTreePath **path,
|
|
|
|
|
GtkTreeViewColumn **column,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int *cell_x,
|
|
|
|
|
int *cell_y);
|
2001-01-19 22:39:19 +00:00
|
|
|
|
|
|
|
|
|
/* Drag-and-Drop support */
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2020-01-07 00:38:05 +00:00
|
|
|
|
void gtk_tree_view_enable_model_drag_source (GtkTreeView *tree_view,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GdkModifierType start_button_mask,
|
2017-11-18 01:19:53 +00:00
|
|
|
|
GdkContentFormats *formats,
|
2001-11-06 19:10:03 +00:00
|
|
|
|
GdkDragAction actions);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2020-02-28 03:19:36 +00:00
|
|
|
|
void gtk_tree_view_enable_model_drag_dest (GtkTreeView *tree_view,
|
2017-11-18 01:19:53 +00:00
|
|
|
|
GdkContentFormats *formats,
|
2001-11-06 19:10:03 +00:00
|
|
|
|
GdkDragAction actions);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_unset_rows_drag_source (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_unset_rows_drag_dest (GtkTreeView *tree_view);
|
2001-01-19 22:39:19 +00:00
|
|
|
|
|
2001-05-16 00:23:30 +00:00
|
|
|
|
|
2001-01-19 22:39:19 +00:00
|
|
|
|
/* These are useful to implement your own custom stuff. */
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_set_drag_dest_row (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewDropPosition pos);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
void gtk_tree_view_get_drag_dest_row (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreePath **path,
|
|
|
|
|
GtkTreeViewDropPosition *pos);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2001-04-28 00:29:34 +00:00
|
|
|
|
gboolean gtk_tree_view_get_dest_row_at_pos (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int drag_x,
|
|
|
|
|
int drag_y,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreePath **path,
|
|
|
|
|
GtkTreeViewDropPosition *pos);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2018-03-26 04:20:56 +00:00
|
|
|
|
GdkPaintable *gtk_tree_view_create_row_drag_icon (GtkTreeView *tree_view,
|
2001-04-28 00:29:34 +00:00
|
|
|
|
GtkTreePath *path);
|
2000-10-05 01:04:57 +00:00
|
|
|
|
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
/* Interactive search */
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
void gtk_tree_view_set_enable_search (GtkTreeView *tree_view,
|
2001-09-27 00:09:41 +00:00
|
|
|
|
gboolean enable_search);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
gboolean gtk_tree_view_get_enable_search (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int gtk_tree_view_get_search_column (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
void gtk_tree_view_set_search_column (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int column);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
GtkTreeViewSearchEqualFunc gtk_tree_view_get_search_equal_func (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
Add heavily modified patch from Kristian Rietveld to handle interactive
Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c: (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_set_property),
(gtk_tree_view_get_property), (gtk_tree_view_destroy),
(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
(gtk_tree_view_set_destroy_count_func),
(gtk_tree_view_set_enable_search),
(gtk_tree_view_get_enable_search),
(gtk_tree_view_get_search_column),
(gtk_tree_view_set_search_column),
(gtk_tree_view_get_search_equal_func),
(gtk_tree_view_set_search_equal_func),
(gtk_tree_view_search_dialog_destroy),
(gtk_tree_view_search_position_func),
(gtk_tree_view_interactive_search),
(gtk_tree_view_search_delete_event),
(gtk_tree_view_search_button_press_event),
(gtk_tree_view_search_key_press_event),
(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
* gtk/gtktreeview.h:
Add heavily modified patch from Kristian Rietveld to handle
interactive searching.
2001-08-17 23:35:52 +00:00
|
|
|
|
void gtk_tree_view_set_search_equal_func (GtkTreeView *tree_view,
|
2001-09-27 00:09:41 +00:00
|
|
|
|
GtkTreeViewSearchEqualFunc search_equal_func,
|
|
|
|
|
gpointer search_user_data,
|
2008-06-18 09:12:32 +00:00
|
|
|
|
GDestroyNotify search_destroy);
|
2001-06-26 17:01:53 +00:00
|
|
|
|
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2019-02-17 04:56:15 +00:00
|
|
|
|
GtkEditable *gtk_tree_view_get_search_entry (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2006-01-24 10:49:29 +00:00
|
|
|
|
void gtk_tree_view_set_search_entry (GtkTreeView *tree_view,
|
2019-02-17 04:56:15 +00:00
|
|
|
|
GtkEditable *entry);
|
2006-01-24 10:49:29 +00:00
|
|
|
|
|
2007-06-13 13:27:00 +00:00
|
|
|
|
/* Convert between the different coordinate systems */
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2007-06-13 13:27:00 +00:00
|
|
|
|
void gtk_tree_view_convert_widget_to_tree_coords (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int wx,
|
|
|
|
|
int wy,
|
|
|
|
|
int *tx,
|
|
|
|
|
int *ty);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2007-06-13 13:27:00 +00:00
|
|
|
|
void gtk_tree_view_convert_tree_to_widget_coords (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int tx,
|
|
|
|
|
int ty,
|
|
|
|
|
int *wx,
|
|
|
|
|
int *wy);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2018-03-21 10:49:14 +00:00
|
|
|
|
void gtk_tree_view_convert_widget_to_bin_window_coords (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int wx,
|
|
|
|
|
int wy,
|
|
|
|
|
int *bx,
|
|
|
|
|
int *by);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2007-06-13 13:27:00 +00:00
|
|
|
|
void gtk_tree_view_convert_bin_window_to_widget_coords (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int bx,
|
|
|
|
|
int by,
|
|
|
|
|
int *wx,
|
|
|
|
|
int *wy);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2018-03-21 10:49:14 +00:00
|
|
|
|
void gtk_tree_view_convert_tree_to_bin_window_coords (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int tx,
|
|
|
|
|
int ty,
|
|
|
|
|
int *bx,
|
|
|
|
|
int *by);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2007-06-13 13:27:00 +00:00
|
|
|
|
void gtk_tree_view_convert_bin_window_to_tree_coords (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int bx,
|
|
|
|
|
int by,
|
|
|
|
|
int *tx,
|
|
|
|
|
int *ty);
|
2007-06-13 13:27:00 +00:00
|
|
|
|
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2004-05-10 17:15:14 +00:00
|
|
|
|
void gtk_tree_view_set_fixed_height_mode (GtkTreeView *tree_view,
|
2004-07-07 16:24:55 +00:00
|
|
|
|
gboolean enable);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2004-05-10 17:15:14 +00:00
|
|
|
|
gboolean gtk_tree_view_get_fixed_height_mode (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2004-05-10 17:15:14 +00:00
|
|
|
|
void gtk_tree_view_set_hover_selection (GtkTreeView *tree_view,
|
|
|
|
|
gboolean hover);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2004-05-10 17:15:14 +00:00
|
|
|
|
gboolean gtk_tree_view_get_hover_selection (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2004-08-02 19:11:32 +00:00
|
|
|
|
void gtk_tree_view_set_hover_expand (GtkTreeView *tree_view,
|
|
|
|
|
gboolean expand);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2004-08-02 19:11:32 +00:00
|
|
|
|
gboolean gtk_tree_view_get_hover_expand (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
Rubber banding for GtkTreeView, #80127. Uses same method as GtkIconView.
2006-06-02 Kristian Rietveld <kris@imendio.com>
Rubber banding for GtkTreeView, #80127. Uses same method as
GtkIconView.
* gtk/gtktreeview.c (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_get_property),
(gtk_tree_view_set_property), (gtk_tree_view_set_rubber_banding),
(gtk_tree_view_get_rubber_banding): add property,
(gtk_tree_view_button_press): start rubber banding if enabled and
press is on a non-selected node,
(gtk_tree_view_button_release): stop rubber banding,
(gtk_tree_view_motion_bin_window), (scrool_row_timeout): enable/update
the rubber band,
(gtk_tree_view_bin_expose): draw rubber band if active,
(gtk_tree_view_stop_rubberband),
(gtk_tree_view_update_rubber_band_selection_range),
(gtk_tree_view_update_rubber_band_selection),
(gtk_tree_view_update_rubber_band),
(gtk_tree_view_paint_rubber_band): new functions.
* gtk/gtktreeview.h: add new set/get function for rubber banding
property.
* gtk/gtktreeprivate.h: add a bunch of new private fields.
2006-06-02 20:40:33 +00:00
|
|
|
|
void gtk_tree_view_set_rubber_banding (GtkTreeView *tree_view,
|
|
|
|
|
gboolean enable);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
Rubber banding for GtkTreeView, #80127. Uses same method as GtkIconView.
2006-06-02 Kristian Rietveld <kris@imendio.com>
Rubber banding for GtkTreeView, #80127. Uses same method as
GtkIconView.
* gtk/gtktreeview.c (gtk_tree_view_class_init),
(gtk_tree_view_init), (gtk_tree_view_get_property),
(gtk_tree_view_set_property), (gtk_tree_view_set_rubber_banding),
(gtk_tree_view_get_rubber_banding): add property,
(gtk_tree_view_button_press): start rubber banding if enabled and
press is on a non-selected node,
(gtk_tree_view_button_release): stop rubber banding,
(gtk_tree_view_motion_bin_window), (scrool_row_timeout): enable/update
the rubber band,
(gtk_tree_view_bin_expose): draw rubber band if active,
(gtk_tree_view_stop_rubberband),
(gtk_tree_view_update_rubber_band_selection_range),
(gtk_tree_view_update_rubber_band_selection),
(gtk_tree_view_update_rubber_band),
(gtk_tree_view_paint_rubber_band): new functions.
* gtk/gtktreeview.h: add new set/get function for rubber banding
property.
* gtk/gtktreeprivate.h: add a bunch of new private fields.
2006-06-02 20:40:33 +00:00
|
|
|
|
gboolean gtk_tree_view_get_rubber_banding (GtkTreeView *tree_view);
|
2001-06-26 17:01:53 +00:00
|
|
|
|
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2007-07-02 17:33:25 +00:00
|
|
|
|
gboolean gtk_tree_view_is_rubber_banding_active (GtkTreeView *tree_view);
|
|
|
|
|
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2004-07-07 15:15:35 +00:00
|
|
|
|
GtkTreeViewRowSeparatorFunc gtk_tree_view_get_row_separator_func (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2004-07-07 15:15:35 +00:00
|
|
|
|
void gtk_tree_view_set_row_separator_func (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewRowSeparatorFunc func,
|
|
|
|
|
gpointer data,
|
2008-06-18 09:12:32 +00:00
|
|
|
|
GDestroyNotify destroy);
|
2004-07-07 15:15:35 +00:00
|
|
|
|
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
Introduce grid and tree lines in GtkTreeView. (#106406, Martyn Russell).
2006-06-12 Kristian Rietveld <kris@imendio.com>
Introduce grid and tree lines in GtkTreeView. (#106406,
Martyn Russell).
* gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
* gtk/gtkenums.h: add GtkTreeViewGridLines.
* gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
(gtk_tree_view_get_grid_lines),
(gtk_tree_view_set_enable_tree_lines),
(gtk_tree_view_get_enable_tree_lines): new API,
(gtk_tree_view_class_init): new properties,
(gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
(gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
(gtk_tree_view_bin_expose): implement.
* gtk/gtk.symbols: update.
2006-06-12 18:17:35 +00:00
|
|
|
|
GtkTreeViewGridLines gtk_tree_view_get_grid_lines (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
Introduce grid and tree lines in GtkTreeView. (#106406, Martyn Russell).
2006-06-12 Kristian Rietveld <kris@imendio.com>
Introduce grid and tree lines in GtkTreeView. (#106406,
Martyn Russell).
* gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
* gtk/gtkenums.h: add GtkTreeViewGridLines.
* gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
(gtk_tree_view_get_grid_lines),
(gtk_tree_view_set_enable_tree_lines),
(gtk_tree_view_get_enable_tree_lines): new API,
(gtk_tree_view_class_init): new properties,
(gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
(gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
(gtk_tree_view_bin_expose): implement.
* gtk/gtk.symbols: update.
2006-06-12 18:17:35 +00:00
|
|
|
|
void gtk_tree_view_set_grid_lines (GtkTreeView *tree_view,
|
|
|
|
|
GtkTreeViewGridLines grid_lines);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
Introduce grid and tree lines in GtkTreeView. (#106406, Martyn Russell).
2006-06-12 Kristian Rietveld <kris@imendio.com>
Introduce grid and tree lines in GtkTreeView. (#106406,
Martyn Russell).
* gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
* gtk/gtkenums.h: add GtkTreeViewGridLines.
* gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
(gtk_tree_view_get_grid_lines),
(gtk_tree_view_set_enable_tree_lines),
(gtk_tree_view_get_enable_tree_lines): new API,
(gtk_tree_view_class_init): new properties,
(gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
(gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
(gtk_tree_view_bin_expose): implement.
* gtk/gtk.symbols: update.
2006-06-12 18:17:35 +00:00
|
|
|
|
gboolean gtk_tree_view_get_enable_tree_lines (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
Introduce grid and tree lines in GtkTreeView. (#106406, Martyn Russell).
2006-06-12 Kristian Rietveld <kris@imendio.com>
Introduce grid and tree lines in GtkTreeView. (#106406,
Martyn Russell).
* gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
* gtk/gtkenums.h: add GtkTreeViewGridLines.
* gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
(gtk_tree_view_get_grid_lines),
(gtk_tree_view_set_enable_tree_lines),
(gtk_tree_view_get_enable_tree_lines): new API,
(gtk_tree_view_class_init): new properties,
(gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
(gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
(gtk_tree_view_bin_expose): implement.
* gtk/gtk.symbols: update.
2006-06-12 18:17:35 +00:00
|
|
|
|
void gtk_tree_view_set_enable_tree_lines (GtkTreeView *tree_view,
|
|
|
|
|
gboolean enabled);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2006-10-08 14:36:20 +00:00
|
|
|
|
void gtk_tree_view_set_show_expanders (GtkTreeView *tree_view,
|
|
|
|
|
gboolean enabled);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2006-10-08 14:36:20 +00:00
|
|
|
|
gboolean gtk_tree_view_get_show_expanders (GtkTreeView *tree_view);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2006-10-08 14:36:20 +00:00
|
|
|
|
void gtk_tree_view_set_level_indentation (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int indentation);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int gtk_tree_view_get_level_indentation (GtkTreeView *tree_view);
|
2005-06-21 05:35:43 +00:00
|
|
|
|
|
2007-07-13 14:25:21 +00:00
|
|
|
|
/* Convenience functions for setting tooltips */
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2007-07-13 14:25:21 +00:00
|
|
|
|
void gtk_tree_view_set_tooltip_row (GtkTreeView *tree_view,
|
|
|
|
|
GtkTooltip *tooltip,
|
|
|
|
|
GtkTreePath *path);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2007-07-13 14:25:21 +00:00
|
|
|
|
void gtk_tree_view_set_tooltip_cell (GtkTreeView *tree_view,
|
|
|
|
|
GtkTooltip *tooltip,
|
|
|
|
|
GtkTreePath *path,
|
|
|
|
|
GtkTreeViewColumn *column,
|
|
|
|
|
GtkCellRenderer *cell);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2007-07-19 13:21:09 +00:00
|
|
|
|
gboolean gtk_tree_view_get_tooltip_context(GtkTreeView *tree_view,
|
2020-11-17 14:40:52 +00:00
|
|
|
|
int x,
|
|
|
|
|
int y,
|
2007-07-19 13:21:09 +00:00
|
|
|
|
gboolean keyboard_tip,
|
|
|
|
|
GtkTreeModel **model,
|
|
|
|
|
GtkTreePath **path,
|
|
|
|
|
GtkTreeIter *iter);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2007-07-19 13:21:09 +00:00
|
|
|
|
void gtk_tree_view_set_tooltip_column (GtkTreeView *tree_view,
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int column);
|
2022-10-20 10:37:23 +00:00
|
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkListView)
|
2020-07-24 13:54:49 +00:00
|
|
|
|
int gtk_tree_view_get_tooltip_column (GtkTreeView *tree_view);
|
2007-07-13 14:25:21 +00:00
|
|
|
|
|
2022-09-24 01:54:15 +00:00
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTreeView, g_object_unref)
|
|
|
|
|
|
2005-06-21 05:35:43 +00:00
|
|
|
|
G_END_DECLS
|
2000-10-05 01:04:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __GTK_TREE_VIEW_H__ */
|