GPBoxBoundedShape

Unit : GPShapesUnit
Association : GPBoxBoundedShapeAsn
Inherits from : GPShape

Description

An abstract base class for shapes that are bounded by a rectangle defined by two opposite corners. This class does not have a graphical representation and does nothing when Draw is called.

Public Interface

CONSTRUCTOR Init;
Initializes a GPBoxBoundedShape with (0,0) for both corners.

CONSTRUCTOR InitWithPoints (topLeft, bottomRight: GPPoint);
Initializes a GPBoxBoundedShape with corners topLeft and bottomRight.

CONSTRUCTOR InitWithSize (topLeft: GPPoint; width, height: integer);
Initializes a GPBoxBoundedShape with top left corner and dimensions.

CONSTRUCTOR InitWithCoords (leftX, topY, rightX, bottomY: integer);
Initializes a GPBoxBoundedShape with coordinates.

DESTRUCTOR Destroy; VIRTUAL;
Destroys a GPBoxBoundedShape.

PROCEDURE SetTopLeft(topLeft: GPPoint); VIRTUAL;
Modifies the top left corner.

PROCEDURE GetTopLeft (VAR topLeft: GPPoint);
Returns the current top left corner.

PROCEDURE SetBottomRight (bottomRight: GPPoint);
Modifies the bottom right corner.

PROCEDURE GetBottomRight (VAR bottomRight: GPPoint);
Returns the current bottom right corner.

PROCEDURE SetPoints (topLeft, bottomRight: GPPoint);
Modifies both corners.

PROCEDURE GetPoints (VAR topLeft, bottomRight: GPPoint);
Returns both corners.

PROCEDURE SetCoords (leftX, topY, rightX, bottomY : integer);
Modifies the current coordinates.

FPROCEDURE GetCoords (leftX, topY, rightX, bottomY : integer);
Returns the current coordinates.

FUNCTION GetHeight: integer;
Returns the current height.

FUNCTION GetWidth: integer;
Returns the current width.

Subclasses

GPArc, GPFilledOval, GPFramedOval, GPFilledPie, GPFramedPie, GPFilledRect, GPFramedRect, GPRubberShape, GPRubberLine, GPRubberFramedRect, GPRubberFramedOval

Please report any problems with GP or the documentation to GP Support .


GP Home Page GP Documentation
Loring Holden