Gtk2
view release on metacpan or search on metacpan
xs/GtkTreeView.xs view on Meta::CPAN
gtk_tree_view_row_expanded (tree_view, path)
GtkTreeView *tree_view
GtkTreePath *path
void
gtk_tree_view_set_reorderable (tree_view, reorderable)
GtkTreeView *tree_view
gboolean reorderable
gboolean
gtk_tree_view_get_reorderable (tree_view)
GtkTreeView *tree_view
void
gtk_tree_view_set_cursor (tree_view, path, focus_column=NULL, start_editing=FALSE)
GtkTreeView *tree_view
GtkTreePath *path
GtkTreeViewColumn_ornull *focus_column
gboolean start_editing
#if GTK_CHECK_VERSION(2,2,0)
void
gtk_tree_view_set_cursor_on_cell (tree_view, path, focus_column, focus_cell, start_editing)
GtkTreeView *tree_view
GtkTreePath *path
GtkTreeViewColumn_ornull *focus_column
GtkCellRenderer_ornull *focus_cell
gboolean start_editing
#endif /* >= 2.2.0 */
## void gtk_tree_view_get_cursor (GtkTreeView *tree_view, GtkTreePath **path, GtkTreeViewColumn **focus_column)
=for apidoc
=for signature (path, focus_column) = $tree_view->get_cursor
Returns the Gtk2::TreePath and Gtk2::TreeViewColumn of the cell with the
keyboard focus cursor. Either may be undef.
=cut
void
gtk_tree_view_get_cursor (tree_view)
GtkTreeView *tree_view
PREINIT:
GtkTreePath *path = NULL;
GtkTreeViewColumn *focus_column = NULL;
PPCODE:
gtk_tree_view_get_cursor (tree_view, &path, &focus_column);
EXTEND (SP, 2);
PUSHs (sv_2mortal (newSVGtkTreePath_own_ornull (path)));
PUSHs (sv_2mortal (newSVGtkTreeViewColumn_ornull (focus_column)));
#### gboolean gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view, gint x, gint y, GtkTreePath **path, GtkTreeViewColumn **column, gint *cell_x, gint *cell_y)
=for apidoc
=for signature path = $tree_view->get_path_at_pos ($x, $y)
=for signature (path, column, cell_x, cell_y) = $tree_view->get_path_at_pos ($x, $y)
Finds the path at the point (I<$x>, I<$y>), relative to widget
coordinates. That is, I<$x> and I<$y> are relative to an event's
coordinates. I<$x> and I<$y> must come from an event on the I<$tree_view> only
where C<$event-E<gt>window == $tree_view-E<gt>get_bin_window>. It is primarily
for things like popup menus. In scalar context, returns the Gtk2::TreePath, in
array context, adds the Gtk2::TreeViewColumn, and I<$x> and I<$y> translated to
be relative to the cell. This function is only meaningful if I<$tree_view> is
realized.
=cut
void
gtk_tree_view_get_path_at_pos (tree_view, x, y)
GtkTreeView *tree_view
gint x
gint y
PREINIT:
GtkTreePath *path;
GtkTreeViewColumn *column;
gint cell_x;
gint cell_y;
PPCODE:
if (!gtk_tree_view_get_path_at_pos (tree_view, x, y, &path, &column, &cell_x, &cell_y))
XSRETURN_EMPTY;
XPUSHs (sv_2mortal (newSVGtkTreePath_own (path)));
if (GIMME_V == G_ARRAY) {
XPUSHs (sv_2mortal (newSVGtkTreeViewColumn (column)));
XPUSHs (sv_2mortal (newSViv (cell_x)));
XPUSHs (sv_2mortal (newSViv (cell_y)));
}
### void gtk_tree_view_get_cell_area (GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, GdkRectangle *rect)
GdkRectangle_copy *
gtk_tree_view_get_cell_area (tree_view, path, column)
GtkTreeView *tree_view
GtkTreePath_ornull *path
GtkTreeViewColumn_ornull *column
PREINIT:
GdkRectangle rect;
CODE:
gtk_tree_view_get_cell_area (tree_view, path, column, &rect);
RETVAL = ▭
OUTPUT:
RETVAL
### void gtk_tree_view_get_background_area (GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, GdkRectangle *rect)
GdkRectangle_copy *
gtk_tree_view_get_background_area (tree_view, path, column)
GtkTreeView *tree_view
GtkTreePath_ornull *path
GtkTreeViewColumn_ornull *column
PREINIT:
GdkRectangle rect;
CODE:
gtk_tree_view_get_background_area (tree_view, path, column, &rect);
RETVAL = ▭
OUTPUT:
RETVAL
### void gtk_tree_view_get_visible_rect (GtkTreeView *tree_view, GdkRectangle *visible_rect)
GdkRectangle_copy *
gtk_tree_view_get_visible_rect (tree_view)
GtkTreeView *tree_view
PREINIT:
GdkRectangle visible_rect;
( run in 0.812 second using v1.01-cache-2.11-cpan-364913b4093 )