Glade Reference
The Rect class is used to represent a rectangle comprising two coordinate pairs. Note that this is NOT the same as a rectangle object which is a database object instead.
Creates a Rect object r. The rectangle coordinates are set to invalid i.e. llx = +infinity, urx = -infinity etc.
Creates a Rect object r and initialises it with Point types ll, ur.
Creates a Rect object and initialises its coordinates.
Get the specified Rect coordinate.
Set the specified Rect coordinate.
Get the Rect coordinates as a Point.
Set the Rect to invalid, i.e. llx = +infinity, urx = -infinity etc.
Returns true if the Rect is zero area.
Returns the Rect coordinate by index. Index must be from 0-3.
Returns the Rect Edge by index. Index must be from 0-3.
Get the Rect edge points by index. Index must be from 0-3.
Get the Rect edges by index. Index must be from 0-3.
Returns true if this Rect is equal to the other Rect.
Returns true if this Rect is not equal to the other Rect.
Returns true if this Rect is less than the other Rect.
Returns true if this Rect is less than the other Rect.
Scale a Rect coordinates by dividing them by s.
Returns a Rect offset by the specified x and y distances.
Returns a Rect offset by the specified Point p.
Moves a Rect's lower left to the specified Point p.
Set a Rect's width. The lower left of the Rect remains the same.
Get the width of a Rect.
Set the height of a Rect. The lower left rof the Rect emains the same.
Get the height of a Rect.
Get the centre point of a Rect.
Returns true is the rectangle is square.
Transforms a Rect using Point p and orientation orient.
Swaps the X and Y coordinates of a Rect.
Rect r is set to the union of the Rects r and p, i.e. the bounding box of both.
Rect r is set to the union of itself and Point p, i.e. the bounding box of both.
Returns true if the Rect touches or overlaps the point x, y.
Returns true if the Rect touches or overlaps the rectangle formed by xlo, ylo, xhi, yhi.
Returns true if the Rect touches or overlaps the Rect r.
Returns true if the Rect touches the point x, y.
Returns true if the Rect touches the rectangle formed by xlo, ylo, xhi, yhi; returns false otherwise.
Returns true if the Rect touches the Rect r.
Returns true if the Rect overlaps the point x, y.
Returns true if the Rect overlaps the rectangle formed by xlo, ylo, xhi, yhi.
Returns true if the Rect overlaps the Rect p.
Returns true if the Rect contains the point x, y.
Returns true if the Rect contains the rectangle formed by xlo, ylo, xhi, yhi.
Returns true if the Rect contains the Rect p.
Modifies this Rect to the intersection of itself and Rect p.
Returns a rectangle which is the intersection of this Rect and r.
Copyright © Peardrop Design 2024.