TypeLib Xojo support Plugin

EinhugurGeometry.Rectangle Class (console safe)

This class defines Integer based rectangle structure.

Object
   Rectangle

class EinhugurGeometry.Rectangle

Constructors

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

Properties

BottomSets or gets the bottom coordinate of the rectangle.
CloneReturns a clone of the Rect.
HeightSets or gets the height of the rectangle.
LeftSets or gets the left coordinate of the rectangle.
RightSets or gets the right coordinate of the rectangle.
TopSets or gets the top coordinate of the rectangle.
WidthSets or gets the width of a rectangle.

Methods

ContainsReturns true if the given point is within the rectangle.
ContainsReturns true if the given x and y coordinates are within the rectangle.
EqualReturns true if two rectangles are equal.
InsetShrinks or expands a rectangle by given x and y values.
IsEmptyReturns true if the rectangle is empty.
OffsetMoves the rectangle.
UnionCalculates the smallest rectangle that encloses two rectangles and returns the result as new rectangle.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS