Class TAdBrush

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdBrush = class(TObject)

Description

Class which defines the look of the brush of the canvas. The brush is used to define the filling of a object.

Hierarchy

Overview

Methods

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

Properties

Public property Color: TAndorraColor read FColor write SetColor;
Public property GradientColor: TAndorraColor read FGradientColor write SetGradientColor;
Public property GradientDirecton: TAdCanvasGradientDirection read FGradientDirection write SetGradientDirection;
Public property Style: TAdBrushStyle read FStyle write SetStyle;
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 BlendMode: TAd2dBlendMode read FBlendMode write FBlendMode;

Description

Methods

Public constructor Create;

Creates an instance of TAdBrush.

Public procedure SaveToStream(AStream:TStream);

Saves the settings of TAdBrush to a stream.

Public procedure LoadFromStream(AStream:TStream);

Loads the settings of TAdBrush from a stream.

Public procedure Assign(ABrush:TAdBrush);

Assigns the settings to another brush using Load/SaveToStream and TMemoryStream.

Public function EqualTo(ABrush:TAdBrush):Boolean;

Test if this brush is equal to another brush.

Properties

Public property Color: TAndorraColor read FColor write SetColor;

Defines the first color of the object. This color is used for the solid and the gradient mode. Changing this color will cause TAdBrush to set the brush style to "abSolid".

See also
TAndorraColor
Andorra 2Ds standard color type.
Public property GradientColor: TAndorraColor read FGradientColor write SetGradientColor;

Defines the second color of the object. This color is used for the gradient fill mode. Changing this color will cause TAdBrush to set the brush style to "abGradient".

See also
TAndorraColor
Andorra 2Ds standard color type.
Public property GradientDirecton: TAdCanvasGradientDirection read FGradientDirection write SetGradientDirection;

Defines the direction of the gradient. Changing this mode will cause TAdBrush in set the brush style to "abGradient".

Public property Style: TAdBrushStyle read FStyle write SetStyle;

Defines the style of the brush.

See also
TAdBrushStyle
Defines the style of the brush.
Public property Texture: TAd2dTexture read FTexture write SetTexture;

Set a texture for filling the brush. You can recive a TAd2dTexture via TAdImage.Texture.Texture. Please notice, that the textures have to have a power of two size.

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 BlendMode: TAd2dBlendMode read FBlendMode write FBlendMode;

Sets the mode the filling of the object is drawn in.

SourceForge.net Logo


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