Class TAdCanvasObject

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdCanvasObject = class(TObject)

Description

An abstract class, which represents an object which can be present on the TAdCanvas surface.

Hierarchy

Overview

Methods

Public constructor Create(AAppl:TAd2DApplication);
Public destructor Destroy; override;
Public procedure Draw; virtual; abstract;
Public function CompareTo(AItem:TAdCanvasObject):TAdCanvasUpdateState; virtual; abstract;
Public procedure Update(AItem:TAdCanvasObject); virtual; abstract;
Public procedure Generate; virtual; abstract;

Properties

Public property Brush: TAdBrush read FBrush write FBrush;
Public property Pen: TAdPen read FPen write FPen;
Public property Matrix: TAdMatrix read FMatrix write SetMatrix;

Description

Methods

Public constructor Create(AAppl:TAd2DApplication);

Creates an instance of TAdCanvasObject.

Public destructor Destroy; override;

Destroys the instance of TAdCanvasObject

Public procedure Draw; virtual; abstract;

This procedure should be used to draw the canvas object.

Public function CompareTo(AItem:TAdCanvasObject):TAdCanvasUpdateState; virtual; abstract;

This object is called to compare to canvas objects.

See also
TAdCanvasUpdateState
Used internally by TAdCanvas and its canvas objects: Tells TAdCanvas what to do when comparing to canvas objects.
Public procedure Update(AItem:TAdCanvasObject); virtual; abstract;

When the "CompareTo" function returned "usUpdate", Update is called to transform this objects to the other objects state.

Public procedure Generate; virtual; abstract;

Generates the canvas object, so that it can be drawn.

Properties

Public property Brush: TAdBrush read FBrush write FBrush;

Contains the brush which was active in TAdCanvas when creating the object.

Public property Pen: TAdPen read FPen write FPen;

Contains the pen which was active in TAdCanvas when creating the object.

Public property Matrix: TAdMatrix read FMatrix write SetMatrix;

Use the matrix to transform the object in 3D space.

SourceForge.net Logo


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