FMX.Controls.TControl.AbsoluteToLocal
Delphi
function AbsoluteToLocal(const APoint: TPointF): TPointF; overload; virtual;
function AbsoluteToLocal(const ARect: TRectF): TRectF; overload;
C++
virtual System::Types::TPointF __fastcall AbsoluteToLocal(const System::Types::TPointF &APoint)/* overload */;
System::Types::TRectF __fastcall AbsoluteToLocal(const System::Types::TRectF &ARect)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Controls.pas FMX.Controls.hpp |
FMX.Controls | TControl |
Description
Translates coordinated of the specified Point
from an global perspective to a local coordinates of this control.
The absolute context for a control is the parent form area, and the local context is the control area.
Point
is the point to be transformed.
AbsoluteToLocal returns the transformed point.
To have the inverse effect over a point, use LocalToAbsolute.