Method
Gtk.TreeView.get_tooltip_context
Declaration [src]
gboolean
gtk_tree_view_get_tooltip_context (
GtkTreeView* tree_view,
int x,
int y,
gboolean keyboard_tip,
GtkTreeModel** model,
GtkTreePath** path,
GtkTreeIter* iter
)
Description [src]
This function is supposed to be used in a GtkWidget::query-tooltip
signal handler for GtkTreeView. The x, y and keyboard_tip values
which are received in the signal handler, should be passed to this
function without modification.
The return value indicates whether there is a tree view row at the given
coordinates (TRUE) or not (FALSE) for mouse tooltips. For keyboard
tooltips the row returned will be the cursor row. When TRUE, then any of
model, path and iter which have been provided will be set to point to
that row and the corresponding model. x and y will always be converted
to be relative to tree_view’s bin_window if keyboard_tooltip is FALSE.
Parameters
x |
int |
the x coordinate (relative to widget coordinates) |
|
y |
int |
the y coordinate (relative to widget coordinates) |
|
keyboard_tip |
gboolean |
whether this is a keyboard tooltip or not |
|
model |
GtkTreeModel |
a pointer to
receive a |
|
| Direction: out | |
| Ownership is not transferred to the callee | |
path |
GtkTreePath |
a pointer to receive a |
|
| Direction: out | |
| Ownership of the data is transferred to the callee | |
iter |
GtkTreeIter |
a pointer to receive a |
|
| Direction: out | |
| Ownership is not transferred to the callee |