TypeLibF Xojo Plugin

RectF Class (console safe)

This class defines a Rectangle structure that uses floating point precision.

Object
   RectF

class RectF

Constructors

RectFThe default constructor for the RectF class.
RectFA constructor which takes x1, y1, x2 and y2 coordinates as a parameters.
RectFA constructor which takes two PointF as a parameters.
RectFConstructor that takes location as PointF and size as SizeF

Properties

BottomSets or gets the bottom coordinate of the rectangle.
CloneReturns a clone of the RectF.
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

AreaReturns the size of the area of the rectangle.
ContainsReturns true if the given point is within the rectangle.
ContainsReturns true if the given x and y coordinates are within the rectangle.
DrawDraws the rectangle into a Graphics context with the current color of the Graphics context.
Draw (web only) Draws the rectangle into a WebGraphics context with the current color of the WebGraphics context.
EllipseContainsReturns true if the given point is within the ellipse defined by the rectangle coordinates.
EllipseContainsReturns true if the given x and y coordinates are within the ellipse defined by the rectangle coordinates.
EqualReturns true if two rectangles are equal.
FillFills the rectangle into a Graphics context with the current color of the Graphics context.
Fill (web only) Fills the rectangle into a WebGraphics context with the current color of the WebGraphics context.
InsetShrinks or expands a rectangle by given x and y values.
IntersectsReturns true if a RectF intersects with our current instance of RectF.
IsEmptyReturns true if the rectangle is empty.
OffsetMoves the rectangle.
Operator_ConvertOperator to automatically convert Xojo.Core.Rect to RectF.
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