- TGRect
- ~TGRect
- GetTopLeft
- GetBottomRight
- GetTopRight
- GetBottomLeft
- GetTopLine
- GetBottomLine
- GetLeftLine
- GetRightLine
- Interpolate
- IsEmpty
- GetSize
- GetCenter
- GetHeight
- GetWidth
- EqualSize
- Pin
- MapRect
- SetToPoint
- SetTopLeft
- SetBottomRight
- SetTopRight
- SetBottomLeft
- SetCenter
- SetSize
- Set
- ExtendTo
- IntersectWith
- Offset
- Inset
- OrderPoints
- Intersects
- Contains
- operator>>=
- operator<<=
- operator=
- operator==
- operator!=

- TGRect ()
- TGRect (const TGPoint & p0, const TGPoint & p1)
- TGRect (GCoordinate left, GCoordinate top, GCoordinate right, GCoordinate bottom)
- TGRect (const TGRect &)

- Default constructor. The member variables are
*not*initialized. - Creates a rectangle with the specified corners.
- Creates a rectangle with the specified corners.
- Copy constructor.

- Creates a TGRect
*without*initializing the member variables. - Creates a rectangle with the specified corners.
- Creates a rectangle with the specified corners.
- Called to copy an object.

- Takes no parameters.
- const TGPoint & p0 -The top-left corner.
- const TGPoint & p1 -The bottom-right corner.
- GCoordinate left -The x-coordinate of the rectangle's left side.
- GCoordinate top -The y-coordinate of the rectangle's top side.
- GCoordinate right -The x-coordinate of the rectangle's right side.
- GCoordinate bottom -The y-coordinate of the rectangle's bottom side.
- const TGRect & -The rectangle to be copied.

- Takes no parameters.

- Takes no parameters.

- Takes no parameters.

- Takes no parameters.

- Takes no parameters.

- Takes no parameters.

- Takes no parameters.

- Takes no parameters.

- Takes no parameters.

- GParametric u -The horizontal parameter.
- GParametric v -The vertical parameter.

- Takes no parameters.

- Takes no parameters.

- Takes no parameters.

- Takes no parameters.

- Takes no parameters.

- const TGRect & g -The rectangle to compare with this rectangle.

- TGPoint & Point -The point to be moved.

- TGRect & r -The rectangle to be scaled and moved.
- const TGRect & dr -The destination rectangle, to which rectangle r bears the relationship it previously bore to *this.

- const TGPoint & -The new location of the zero-sized rectangle.

- const TGPoint & point -The new location of the top-left corner.

- const TGPoint & point -The new location of the bottom-right corner.

- const TGPoint & point -The new location of the top-right corner.

- const TGPoint & point -The new location of the bottom-left corner.

- const TGPoint & center -The new midpoint of the rectangle.

- const TGPoint & size -The point whose x-coordinate specifies the new width, and whose y-coordinate specifies the new height.

- Expands the rectangle until it just encompasses the specified rectangle. If the specified rectangle is empty or already lies within this rectangle, nothing changes. The rectangle is only stretched in the required direction(s), so it does not necessarily retain its original shape or center.
- Expands the rectangle until it just encompasses the specified point. If the specified point already lies within this rectangle, nothing changes. The rectangle is only stretched in the required direction(s), so it does not necessarily retain its original shape or center.

- Call this function directly.
- Call this function directly.

- const TGRect & g -The rectangle to enclose within this one.
- const TGPoint & pt -The point to enclose within this one.

- const TGRect & g -The rectangle that intersects with this rectangle.

- const TGPoint & dg -The offset.

- const TGPoint & inset -The point whose x- and y-coordinates determine the amount that each side moves.

- Takes no parameters.

- const TGRect & g -The rectangle to test.

- Specifies whether the rectangle encloses the specified point. A point that lies on the top or left side is considered to be contained in the rectangle, but a point on the right or bottom side isn't.
- Specifies whether the rectangle encloses the specified rectangle. Any or all sides of the enclosed rectangle can lie on the corresponding sides of the outer rectangle.

- Call this function directly.
- Call this function directly.

- const TGPoint & p -The point to test.
- const TGRect & g -The rectangle that is tested to see whether it is contained by *this.

- TStream & -The stream the object streams itself out to.

- TStream & -The stream from which the object streams itself in.

- const TGRect & Src -The rectangle to be copied.

- const TGRect & Src -The object whose coordinates are compared to this object's coordinates.

- const TGRect & Src -The object whose coordinates are compared to this object's coordinates.

Click the icon to mail questions or corrections about this material to Taligent personnel.

Copyright©1995 Taligent,Inc. All rights reserved.