gtkTreeViewGetTooltipContext {RGtk2}R Documentation

gtkTreeViewGetTooltipContext

Description

This function is supposed to be used in a ::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.

Usage

gtkTreeViewGetTooltipContext(object, x, y, keyboard.tip)

Arguments

object [GtkTreeView] a GtkTreeView
x [integer] the x coordinate (relative to widget coordinates)
y [integer] the y coordinate (relative to widget coordinates)
keyboard.tip [logical] whether this is a keyboard tooltip or not

Details

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.

Since 2.12

Value

A list containing the following elements:

retval [logical] whether or not the given tooltip context points to a row.
model [GtkTreeModel] a pointer to receive a GtkTreeModel or NULL
path [GtkTreePath] a pointer to receive a GtkTreePath or NULL
iter [GtkTreeIter] a pointer to receive a GtkTreeIter or NULL

Author(s)

Derived by RGtkGen from GTK+ documentation


[Package RGtk2 version 2.12.5-3 Index]