Class TCustomCanvasParent

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCustomCanvasParent = class abstract(TObject)

Description

Abstract class definition that can hold a child reference to canvas. Basically, this is an object that can own canvas internally and have functions that are executed along with canvas's BeginScene and EndScene calls.

Hierarchy

  • TObject
  • TCustomCanvasParent

Overview

Methods

Protected function CanvasBeginScene: Boolean; virtual;
Protected function CanvasInternalBeginScene(const Canvas: TCustomCanvas): Boolean;
Protected procedure CanvasEndScene; virtual;
Protected procedure CanvasInternalEndScene(const Canvas: TCustomCanvas);
Protected procedure SetCanvasParent(const Canvas: TCustomCanvas; const Parent: TCustomCanvasParent);

Description

Methods

Protected function CanvasBeginScene: Boolean; virtual;

This function is invoked when TCanvas.BeginScene is called for owned canvas to notify this object that the rendering should start.

Protected function CanvasInternalBeginScene(const Canvas: TCustomCanvas): Boolean;

This function calls TCanvas.InternalBeginScene and returns its result.

Protected procedure CanvasEndScene; virtual;

This function is invoked when TCanvas.EndScene is called for owned canvas to notify this object that the rendering should be finished.

Protected procedure CanvasInternalEndScene(const Canvas: TCustomCanvas);

This function calls TCanvas.InternalEndScene.

Protected procedure SetCanvasParent(const Canvas: TCustomCanvas; const Parent: TCustomCanvasParent);

Sets Parent property of specified canvas to the given value. This method is the only way to change TCanvas.Parent attribute.


Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.