FMX.Controls.TOnPaintEvent
Delphi
TOnPaintEvent = procedure(Sender: TObject; Canvas: TCanvas; const ARect: TRectF) of object;
C++
typedef void __fastcall (__closure *TOnPaintEvent)(System::TObject* Sender, Fmx::Graphics::TCanvas* Canvas, const System::Types::TRectF &ARect);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type typedef |
public | FMX.Controls.pas FMX.Controls.hpp |
FMX.Controls | FMX.Controls |
Description
Procedural type that is used for all OnPaint and OnPainting event types.
A TOnPaintEvent event handler must be called with the following parameters:
Sender
--a pointer to the object that called this function.Canvas
--the drawing surface.ARect
--the local rectangle for painting the control.