Method

Gtk.IconView.get_tooltip_context

Declaration [src]

gboolean
gtk_icon_view_get_tooltip_context (
  GtkIconView* icon_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 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.

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 GtkTreeModel or NULL

 Direction: out
 Ownership is not transferred to the callee
path GtkTreePath
 

a pointer to receive a GtkTreePath or NULL

 Direction: out
 Ownership of the data is transferred to the callee
iter GtkTreeIter
 

a pointer to receive a GtkTreeIter or NULL

 Direction: out
 Ownership is not transferred to the callee

Return value

Returns: gboolean

whether or not the given tooltip context points to an item