GPDrawingStyle
Unit : GPDStyleUnit
Association : GPDrawingStyleAsn
Inherits from : None
Description
- The style in which objects are drawn. This includes the color, the width
and style of lines, and the drawing mode.
Public Interface
-
CONSTRUCTOR Init;
Initializes a drawing style.
CONSTRUCTOR InitCopy(src: GPDrawingStyle);
Initializes a new drawing style, copying the style elements of src.
DESTRUCTOR Destroy;
Destroys a GPDrawingStyle.
FUNCTION Copy: GPDrawingStyleAsn;
Returns a new drawing style, copying the style elements of this drawing
style.
PROCEDURE SetDrawingForeground (foreground: GPColor);
Sets the foreground color of objects to be drawn with this drawing style.
PROCEDURE GetDrawingForeground (VAR foreground:
GPColor);
Returns the current drawing foreground color.
PROCEDURE SetDrawingMode (mode: GPDrawingMode);
Sets the mode of object to be drawn with this drawing style. There are two
predefined values of GPDrawingMode. When GPxor is sent as the
parameter to mode, it means that drawing will be done using pixel-XOR.
That is, when a new shape (call it shape 1) is drawn and it overlaps an
existing shape (shape 2), the overlap is drawn in a color that is a combination of shape 1's and shape 2's colors. In GPcopy mode, when shape 1 is
drawn, all of shape 1's area, including the overlap with any other shape, is
drawn in shape 1's color.
FUNCTION GetDrawingMode: GPDrawingMode;
Returns the current drawing mode (GPxor or GPcopy).
PROCEDURE SetLineStyle (style: GPLineStyle);
Sets the line style of objects to be drawn with this drawing style. There are
five predefined values of GPLineStyle: PS_SOLID, PS_DASH,
PS_DOT, PS_DASHDOT, and PS_DASHDOTDOT.
FUNCTION GetLineStyle: GPLineStyle;
Returns the current line style.
PROCEDURE SetLineWidth (width: integer);
Sets the line width of objects to be drawn with this drawing style.
FUNCTION GetLineWidth: integer;
Returns the current line width.
Subclasses
- None
Please report any problems with GP or the documentation to
GP Support
.
Loring Holden