TypeLib Xojo support Plugin

Rect Class (console safe)

This class defines and wraps a Rect structure.

Object
   Rect

class Rect

Constructors

RectThe default constructor for the Rect class.
RectA constructor which takes x1, y1, x2 and y2 coordinates as a parameters.
RectA constructor which takes two points as a parameters.

Properties

Bottom (console safe) Sets or gets the bottom coordinate of the rectangle.
Clone (console safe) Returns a clone of the Rect.
Height (console safe) Sets or gets the height of the rectangle.
Left (console safe) Sets or gets the left coordinate of the rectangle.
Right (console safe) Sets or gets the right coordinate of the rectangle.
Top (console safe) Sets or gets the top coordinate of the rectangle.
Width (console safe) Sets or gets the width of a rectangle.

Methods

Contains (console safe) Returns true if the given x and y coordinates are within the rectangle.
Contains (console safe) Returns true if the given point is within the rectangle.
Equal (console safe) Returns true if two rectangles are equal.
Inset (console safe) Shrinks or expands a rectangle by given x and y values.
IsEmpty (console safe) Returns true if the rectangle is empty.
Offset (console safe) Moves the rectangle.
Union (console safe) Calculates the smallest rectangle that encloses two rectangles and returns the result as new rectangle.

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM