FMX.Controls.TControl.AbsoluteToLocal

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function AbsoluteToLocal(const Point: TPointF): TPointF; virtual;

C++

virtual System::Types::TPointF __fastcall AbsoluteToLocal(const System::Types::TPointF &Point);

Properties

Type Visibility Source Unit Parent
function public
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TControl

Description

Transforms and returns a specified point from an absolute perspective to a local perspective.

Use AbsoluteToLocal to get the transposed coordinates of a point from the absolute context to the local context of the current control. The absolute context for a control is the parent form area, and the local context is the control area.

P is the point to be transformed.

AbsoluteToLocal returns the transformed point.

To have the inverse effect over a point, use LocalToAbsolute.

See Also