Realbasic.Rect

From Xojo Documentation

Class (inherits from Object)


New in 2011r2

A way to represent an axis-aligned rectangular area. Rect can be used for window size/position, control size/position and drawing of controls.

Properties
Bottom Left Top
Center Origin VerticalCenter
Height Right Width
HorizontalCenter Size
Methods
Clone LocalPoint SplitVertical
Contains LocalRect Union
Intersection Offset
Intersects SplitHorizontal
Constructors

Constructor()


Constructor(X As Integer, Y As Integer, Width As Integer, Height As Integer)


Notes

You must prefix the classic Rect with "Realbasic" like this:
Realbasic.Rect
.

Sample Code

Dim myRect As New Realbasic.Rect(10, 10, 100, 50)

See Also

Canvas control; Window, ContainerControl, Realbasic.Point, Realbasic.Size classes.