Class TAdPen

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdPen = class(TObject)

Description

A class which defines the settings of the outer line of a canvas object.

Hierarchy

Overview

Methods

Public constructor Create;
Public procedure SaveToStream(AStream:TStream);
Public procedure LoadFromStream(AStream:TStream);
Public procedure Assign(APen:TAdPen);
Public function EqualTo(APen:TAdPen):Boolean;

Properties

Public property Color: TAndorraColor read FColor write SetColor;
Public property Width: single read FWidth write SetWidth;
Public property Texture: TAd2dTexture read FTexture write SetTexture;
Public property TextureMode: TAdCanvasTextureMode read FTextureMode write FTextureMode;
Public property TexturePosition: TAdCanvasTexturePosition read FTexturePosition write FTexturePosition;
Public property PenPosition: TAdPenPosition read FPenPosition write FPenPosition;
Public property Style: TAdPenStyle read FStyle write SetStyle;
Public property BlendMode: TAd2dBlendMode read FBlendMode write FBlendMode;

Description

Methods

Public constructor Create;

Creates an instance of TAdPen.

Public procedure SaveToStream(AStream:TStream);

Saves the pen data to a stream.

Public procedure LoadFromStream(AStream:TStream);

Loads the pen data from a stream.

Public procedure Assign(APen:TAdPen);

Assigns the pen data to another pen using LoadFromStream/SaveToStream and a temporary TMemoryStream.

Public function EqualTo(APen:TAdPen):Boolean;

Tests if the pen is equal to another pen.

Properties

Public property Color: TAndorraColor read FColor write SetColor;

Defines the color of the line.

Public property Width: single read FWidth write SetWidth;

Sets the width of the line. Accepts a equal or greater one.

Public property Texture: TAd2dTexture read FTexture write SetTexture;

Defines a texture the line is filled with. The texture is only used when width is greater one. Please notice, that the textures have to have a power of two size our you'll receive gaps between the texture boundaries.

Public property TextureMode: TAdCanvasTextureMode read FTextureMode write FTextureMode;

Sets the texture mode.

See also
TAdCanvasTextureMode
Defines how the texture is drawn.
Public property TexturePosition: TAdCanvasTexturePosition read FTexturePosition write FTexturePosition;

Sets the position of the texture.

See also
TAdCanvasTexturePosition
Defines the relative position of the texture.
Public property PenPosition: TAdPenPosition read FPenPosition write FPenPosition;

Sets the position of the pen.

See also
TAdPenPosition
Defines the position of the pen.
Public property Style: TAdPenStyle read FStyle write SetStyle;

Sets the style of the pen.

See also
TAdPenStyle
Defines the style of the pen.
Public property BlendMode: TAd2dBlendMode read FBlendMode write FBlendMode;

Sets the mode the line is blended in.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:58