TypeLibF REALbasic Support Plugin

RectF Class

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

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.
EqualReturns true if two rectangles are equal.
FillFills the rectangle into a Graphics context with the current color of the Graphics context.
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.