IsPointWithinRect

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
<Point> is within <Rect>
Associationscom.livecode.widget
Summary

Determines whether a point is within a rectangle.

Parameters
NameTypeDescription
Point

An expression that evaluates to a Point.

Rect

An expression that evaluates to a Rectangle.

Example
variable tClick as Point
put the click position into tClick

variable tRect as Rectangle
put my bounds into tRect

if tClick is within tRect then
	// click was within widget bounds
end if
Description

Determines whether a point is within a rectangle.

Tagswidget