Details
struct GtkTreeView
struct GtkTreeView
{
GtkContainer parent;
GtkTreeViewPrivate *priv;
}; |
struct GtkTreeSelection
struct GtkTreeSelection
{
GObject parent;
/*< private >*/
GtkTreeView *tree_view;
GtkSelectionMode type;
GtkTreeSelectionFunc user_func;
gpointer user_data;
GtkDestroyNotify destroy;
}; |
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_clickable ()
Allow the column title buttons to be clicked.
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. If position is
-1, then the column is inserted at the end.
gtk_tree_view_get_column ()
Gets the GtkTreeViewColumn at the given position in the tree_view.
gtk_tree_view_scroll_to_cell ()
Moves the alignments of tree_view to the position specified by column and
path. If column is NULL, then no horizontal scrolling occurs. Likewise,
if path is NULL no vertical scrolling occurs. 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. 0.0 means left/top alignment, 1.0
means right/bottom alignment, 0.5 means center. If use_align is TRUE, then
the alignment arguments are ignored, and the tree does the minimum amount of
work to scroll the cell onto the screen.
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. cell_x and cell_y
return the coordinates relative to the cell background (i.e. the
background_area passed to gtk_cell_renderer_render()). This function only
works if tree_view is realized.
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 ()
Opens the row so its children are visible
gtk_tree_view_collapse_row ()
Collapses a row (hides its child rows, if they exist.)