Details
struct GtkTreeView
struct GtkTreeView
{
GtkContainer parent;
GtkTreeViewPrivate *priv;
}; |
struct GtkTreeSelection
struct GtkTreeSelection
{
GtkObject parent;
GtkTreeView *tree_view;
GtkTreeSelectionType type;
GtkTreeSelectionFunc user_func;
gpointer user_data;
}; |
struct GtkTreeSelectionClass
struct GtkTreeSelectionClass; |
gtk_tree_view_new_with_model ()
Creates a new GtkTreeView widget with the model initialized to model.
gtk_tree_view_get_model ()
Returns the model the the GtkTreeView is based on. Returns NULL if the
model is unset.
gtk_tree_view_set_model ()
Sets the model for a GtkTreeView. If the tree_view already has a model
set, it will remove it before setting the new model. If model is NULL, then
it will unset the old model.
gtk_tree_view_get_selection ()
Gets the GtkTreeSelection associated with tree_view.
gtk_tree_view_get_hadjustment ()
Gets the GtkAdjustment currently being used for the horizontal aspect.
gtk_tree_view_set_hadjustment ()
Sets the GtkAdjustment for the current horizontal aspect.
gtk_tree_view_get_vadjustment ()
Gets the GtkAdjustment currently being used for the vertical aspect.
gtk_tree_view_set_vadjustment ()
Sets the GtkAdjustment for the current vertical aspect.
gtk_tree_view_get_headers_visible ()
Returns TRUE if the headers on the tree_view are visible.
gtk_tree_view_set_headers_visible ()
Sets the the visibility state of the headers.
gtk_tree_view_columns_autosize ()
void gtk_tree_view_columns_autosize (GtkTreeView *tree_view); |
Resizes all columns to their optimal width.
gtk_tree_view_set_headers_active ()
Sets the headers active (eg. keyboard navigable) or inactive.
gtk_tree_view_append_column ()
Appends column to the list of columns.
gtk_tree_view_remove_column ()
Removes column from tree_view.
gtk_tree_view_insert_column ()
This inserts the column into the tree_view at position.
gtk_tree_view_get_column ()
Gets the GtkTreeViewColumn at the given position in the tree_view.
gtk_tree_view_move_to ()
Moves the alignments of tree_view to the position specified by column and
path. If column is NULL, then the first visible column is assumed, and the
tree_view is left justified. Likewise, if path is NULL the first row is
assumed, and the tree_view is top justified. row_align determines where
the row is placed, and col_align determines where column is placed. Both
are expected to be between 0.0 and 1.0.
gtk_tree_view_get_path_at_pos ()
Finds the path at the point (x, y) relative to window. If window is
NULL, then the point is found relative to the widget coordinates. This
function is expected to be called after an event, with event->window being
passed in as window. It is primarily for things like popup menus. If path
is non-NULL, then it will be filled with the GtkTreePath at that point.
This path should be freed with gtk_tree_path_free. If column is non-NULL,
then it will be filled with the column at that point.
gtk_tree_view_expand_all ()
void gtk_tree_view_expand_all (GtkTreeView *tree_view); |
Recursively expands all nodes in the tree_view.
gtk_tree_view_collapse_all ()
void gtk_tree_view_collapse_all (GtkTreeView *tree_view); |
Recursively collapses all visible, expanded nodes in tree_view.
gtk_tree_view_expand_row ()
gtk_tree_view_collapse_row ()