IconView.getTooltipContext

This function is supposed to be used in a "query-tooltip" signal handler for GtkIconView. 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 an icon view item at the given coordinates (TRUE) or not (FALSE) for mouse tooltips. For keyboard tooltips the item returned will be the cursor item. 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 icon_view's bin_window if keyboard_tooltip is FALSE. Since 2.12

class IconView
int
getTooltipContext

Parameters

x int*

the x coordinate (relative to widget coordinates). inout

y int*

the y coordinate (relative to widget coordinates). inout

keyboardTip int

whether this is a keyboard tooltip or not

model TreeModelIF

a pointer to receive a GtkTreeModel or NULL. out[allow-none]

path TreePath

a pointer to receive a GtkTreePath or NULL. out[allow-none]

iter TreeIter

a pointer to receive a GtkTreeIter or NULL. out[allow-none]

Return Value

Type: int

whether or not the given tooltip context points to a item

Meta