TOnPaintEvent = procedure(Sender: TObject; Canvas: TCanvas; const ARect: TRectF) of object;
typedef void __fastcall (__closure *TOnPaintEvent)(System::TObject* Sender, Fmx::Graphics::TCanvas* Canvas, const System::Types::TRectF &ARect);
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.