FMX.Graphics.TCanvas.PtInPath
Delphi
function PtInPath(const APoint: TPointF; const APath: TPathData): Boolean; virtual; abstract;
C++
virtual bool __fastcall PtInPath(const System::Types::TPointF &APoint, TPathData* const APath) = 0 ;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TCanvas |
Description
Checks whether a certain point belongs to a TPathData.
PtInPath is implemented by TCanvas descendants to check whether a certain point belongs to a specified TPathData.
The APoint parameter specifies the point to be verified.
The APath parameter specifies the TPathData where the APoint is searched.
PtInPath returns True if APoint belongs to APath, and False otherwise.
If APath is empty, PtInPath does nothing. It does not raise any errors.