UIElement.contains

Check if given point is within the widget. Override this to disambiguate clicks and mouse-over between widgets that would otherwise partially overlap.

x and y are given in local widget coordinates. IMPORTANT: a widget CANNOT be clickable beyond its _position. For now, there is no good reason for that, but it could be useful in the future if we get acceleration structure for picking elements.

class UIElement
nothrow @nogc
bool
contains
(
int x
,
int y
)

Meta