Vcl.Graphics.TCanvas.RequiredState
Delphi
procedure RequiredState(ReqState: TCanvasState); override;
C++
virtual void __fastcall RequiredState(TCanvasState ReqState);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | TCanvas |
Description
Changes the current state of the canvas to meet the given requirements.
RequiredState ensures that a canvas meets a set of given requirements. If the requirements are not met, the canvas initializes its internal structures so that the requirements are met after the call to RequiredState is completed.
RequiredState verifies that the Pen, Brush and Font objects are created and initialized. RequiredState also makes sure that the canvas has a handle allocated.