left
, top
, right
, bottom
, topLeft
, bottomRight
, botRight
, location
, loc
, width
, height
The rect
data type represents a rectangle in a Cartesian coordinate system with integer coordinates.
The string
representation of a rect
is the string
representations of the left, top, right, and bottom coordinates, in order, delimited by commas.
The string
representation of a rect
always includes a comma; it does not depend on the setting of the itemDelimiter
property.
In HyperTalk, you can test for a rectangle with the is an
operator, but the test is broken: if the value is not a comma-delimited list of integers, the expression will trigger an "Expected integer here" script error instead of evaluating to false
.