Rect.Constructor(origin as Point, size as Size)

From Xojo Documentation

Revision as of 18:57, 12 November 2019 by PLefebvre (talk | contribs) (Sample Code)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Constructor

Rect.Constructor(origin as Point, size as Size)

New in 2019r2

Creates a Rect object given the origin and size passed.

Sample Code

Create a rect at 100, 100 that is 50 tall and 50 wide.

Var p As New Point(100, 100)
Var s As New Size(50, 50)
Var myRect As New Rect(p, s)