Package: gtk

Function gtk:widget-contains

Lambda List

gtk:widget-contains (widget x y)

Arguments

widget -- a gtk:widget object to query
x -- a number coerced to a double float for the x coordinate to test, relative to the origin of the widget
y -- a number coerced to a double float for the y coordinate to test, relative to the origin of the widget

Return Value

True if widget contains (x,y).

Details

Tests if the point at (x,y) is contained in the widget. The coordinates for (x,y) must be in widget coordinates, so (0,0) is assumed to be the top left of the content area of the widget.
 

See also

#2025-2-15