gtkTreeViewGetPathAtPos {RGtk2} | R Documentation |
Finds the path at the point (x
, y
), relative to bin_window coordinates
(please see gtkTreeViewGetBinWindow
).
That is, x
and y
are relative to an events coordinates. x
and y
must
come from an event on the tree.view
only where event->window ==
gtk_tree_view_get_bin_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. 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
gtkCellRendererRender
). This function is only meaningful if
tree.view
is realized.
gtkTreeViewGetPathAtPos(object, x, y)
|
[GtkTreeView ] A GtkTreeView . |
|
[integer] The x position to be identified (relative to bin_window). |
|
[integer] The y position to be identified (relative to bin_window). |
For converting widget coordinates (eg. the ones you get from
GtkWidget::query-tooltip), please see
gtkTreeViewConvertWidgetToBinWindowCoords
.
A list containing the following elements:
retval |
[logical] TRUE if a row exists at that coordinate. |
|
[GtkTreePath ] A pointer to a GtkTreePath pointer to be filled in, or NULL |
|
[GtkTreeViewColumn ] A pointer to a GtkTreeViewColumn pointer to be filled in, or NULL |
|
[integer] A pointer where the X coordinate relative to the cell can be placed, or NULL |
|
[integer] A pointer where the Y coordinate relative to the cell can be placed, or NULL |
Derived by RGtkGen from GTK+ documentation