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.

Properties

Bottom (console safe) Sets or gets the bottom coordinate of the rectangle.
Clone (console safe) Returns a clone of the RectF.
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

Area (console safe) Returns the size of the area of the rectangle.
Contains (console safe) Returns true if the given point is within the rectangle.
Contains (console safe) Returns true if the given x and y coordinates are within the rectangle.
Draw (console safe) Draws the rectangle into a Graphics context with the current color of the Graphics context.
EllipseContains (console safe) Returns true if the given point is within the ellipse defined by the rectangle coordinates.
EllipseContains (console safe) Returns true if the given x and y coordinates are within the ellipse defined by the rectangle coordinates.
Equal (console safe) Returns true if two rectangles are equal.
Fill (console safe) Fills the rectangle into a Graphics context with the current color of the Graphics context.
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