Package: gtk

Function gtk:tree-view-tooltip-context

Lambda List

gtk:tree-view-tooltip-context (view)

Arguments

view -- a gtk:tree-view widget

Return Value

x -- an integer with the x coordinate (relative to widget coordinates)
y -- an integer with the y coordinate (relative to widget coordinates)
tip -- a boolean whether this is a keyboard tooltip or not
model -- a gtk:tree-model object or nil
path -- a gtk:tree-path instance or nil
iter -- a gtk:tree-iter iterator or nil

Details

This function is supposed to be used in a "query-tooltip" signal handler for gtk:tree-view widgets. The x, y and 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 view's "bin window" if tip is false.
 

See also

#2024-3-10