GPPoint
Unit : GPShapesUnit
Association : GPPointAsn
Inherits from : GPShape
Description
- A single pixel on the screen. Note that the coordinate system places the
point (0, 0) in the top left corner of the window.
Public Interface
-
CONSTRUCTOR Init;
Initializes a GPPoint with (0,0).
CONSTRUCTOR InitWithCoords (x, y: integer);
Initializes a GPPoint with a location.
CONSTRUCTOR InitWithPoint (pt: GPPoint);
Initializes a GPPoint with the values of another GPPoint.
DESTRUCTOR Destroy; VIRTUAL;
Destroys a GPPoint.
FUNCTION GetX: integer;
Returns the value of the x-coordinate.
PROCEDURE SetX (x: integer);
Sets the value of the x-coordinate.
FUNCTION GetY: integer;
Returns the value of the y-coordinate.
PROCEDURE SetY (y: integer);
Sets the value of the y coordinate.
PROCEDURE SetCoords (x, y: integer);
Sets the values of the x- and y-coordinates to the corresponding parameters.
PROCEDURE GetCoords (VAR x, y: integer);
Returns the value of the x-coordinate and the y-coordinate in the respective parameters.
PROCEDURE Copy: GPShapeAsn; VIRTUAL;
Produce a copy of the GPPoint.
PROCEDURE CopyAsGPPoint: GPPointAsn;
Produce a copy of the GPPoint.
FUNCTION Equal(other : GPPoint): Boolean;
Returns TRUE if the coordinates of other are the same as this instance's.
Subclasses
- None
Please report any problems with GP or the documentation to
GP Support
.
Loring Holden