[Overview][Types][Classes][Index] Reference for unit 'LazCanvas' (#lcl)

TLazCanvasState

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Contains properties reflecting the state for a Lazarus canvas.

Declaration

Source position: lazcanvas.pas line 68

type TLazCanvasState = class

public

  Brush: TFPCustomBrush;

  

Brush for the canvas.

  Pen: TFPCustomPen;

  

Pen for the canvas.

  Font: TFPCustomFont;

  

Font for the canvas.

  BaseWindowOrg: TPoint;

  

Base window origin for the canvas.

  WindowOrg: TPoint;

  

Window origin for the canvas.

  Clipping: Boolean;

  

Indicates if Clipping is enabled for the canvas.

  ClipRegion: TFPCustomRegion;

  

Defines the clipping region for the canvas.

  destructor Destroy; override;

  

Destructor for the class instance.

end;

Inheritance

TLazCanvasState

  

Contains properties reflecting the state for a Lazarus canvas.

|

TObject

Description

TLazCanvasState is a class with public members that reflect the state for a TLazCanvas instance. A destructor is provided to ensure that resources allocated to members variables are freed before the class instance is destroyed.

Instances of TLazCanvasState are created, stored, and retrieved using an internal list in TLazCanvas in its SaveState and RestoreState methods.

See also

TLazCanvas.SaveState

  

Saves the current canvas state in the GraphicStateList member.

TLazCanvas.RestoreState

  

Restores the canvas to the state stored at the specified position.

TLazCanvas.AssignedBrush

  

Brush assigned to the canvas.

TLazCanvas.AssignedFont

  

Font assigned to the canvas.

TLazCanvas.AssignedPen

  

Pen assigned to the canvas.

TLazCanvas.BaseWindowOrg

  

Base window origin for the canvas.

TLazCanvas.WindowOrg

  

Window origin for the canvas.


Version 3.2 Generated 2024-02-25 Home