Unit AdCanvas

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

This unit contains classes and types which are used for a hardware accelerated canvas environment

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TAdBrush Class which defines the look of the brush of the canvas.
Class TAdPen A class which defines the settings of the outer line of a canvas object.
Class TAdCanvasObject An abstract class, which represents an object which can be present on the TAdCanvas surface.
Class TAdCanvasDisplayList Contains multiple TAdCanvasObject objects.
record TAdCanvasQuad Represents the four positions of a quad.
record TAdCanvasColorQuad Represents the four positions of a quad with the correspondenting colors.
Class TAdCanvas TAdCanvas is a hardware accelerated canvas object, that may perform the most comon graphic operations in high speed.

Types

TAdColors = array[0..3] of TAndorraColor;
TAdBrushStyle = (...);
TAdPenStyle = (...);
TAdPenPosition = (...);
TAdCanvasTextureMode = (...);
TAdCanvasTexturePosition = (...);
TAdCanvasGradientDirection = (...);
TAdCanvasUpdateState = (...);
PAdCanvasObjectList = ˆTAdCanvasDisplayList;
PAdCanvasQuad = ˆTAdCanvasQuad;

Description

Types

TAdColors = array[0..3] of TAndorraColor;

A set of three colors used to define the colors of a quad-object.

TAdBrushStyle = (...);

Defines the style of the brush.

Values
  • abClear: The filling isn't drawn
  • abSolid: The filling is filled with one solid color
  • abGradient: The filling is drawn using a gradient defined by "GradientDirection".
    See also
    TAdCanvasGradientDirection
    Defines the direction of the gradient.
TAdPenStyle = (...);

Defines the style of the pen.

Values
  • apNone: The outer line of the object won't be drawn.
  • apSolid: The outer line is drawn and filled with a solid color.
TAdPenPosition = (...);

Defines the position of the pen.

Values
  • ppOuter: The pen is possitionated on the outer bound of the object
  • ppMiddle: The pen is centered on the outer bound of the object
  • ppInner: The pen is possitionated on the inner bound of the object
TAdCanvasTextureMode = (...);

Defines how the texture is drawn.

Values
  • tmTile: The texture is tiled in the object.
  • tmStretch: The texture is stretched to the size of the object.
  • tmStretchAlign: The texture is streched to the size of the object and aligned to the outer bounds.
TAdCanvasTexturePosition = (...);

Defines the relative position of the texture.

Values
  • tpStatic: The position of the texture is relative to the position of the object
  • tpDynamic:  
TAdCanvasGradientDirection = (...);

Defines the direction of the gradient.

See also
TAdBrushStyle
Defines the style of the brush.
Values
  • gdVertical: The gradient is drawn from left to right
  • gdHorizontal: The gradient is drawn from top to bottom
TAdCanvasUpdateState = (...);

Used internally by TAdCanvas and its canvas objects: Tells TAdCanvas what to do when comparing to canvas objects.

Values
  • usEqual: The two objects are equal - nothing has to be done.
  • usUpdate: The two objects are nearly equal and the object already existsing can be updated.
  • usDelete: The two objects are totaly different. The object already existsing has to be deleted.
PAdCanvasObjectList = ˆTAdCanvasDisplayList;

A pointer to TAdCanvasDisplayList.

See also
TAdCanvasDisplayList
Contains multiple TAdCanvasObject objects.
PAdCanvasQuad = ˆTAdCanvasQuad;

Pointer type of TAdCanvasQuad

SourceForge.net Logo


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