UI module

contains

procedure · 1 overloadsince 0.31.0Source

Whether the point lies inside rect.

contains :: (rect: Rect, x: float, y: float) -> bool

Whether the point lies inside rect.

Parameters

rect: Rect
the rectangle. Its left and top edges count as inside, its right and bottom edges do not.
x: float
the point's horizontal position.
y: float
the point's vertical position.

Returns

bool

See also