FMX.Layers3D.TAbstractLayer3D.ObjectAtPoint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ObjectAtPoint(P: TPointF): IControl; override;

C++

virtual Fmx::Types::_di_IControl __fastcall ObjectAtPoint(const System::Types::TPointF &P);

Properties

Type Visibility Source Unit Parent
function protected
FMX.Layers3D.pas
FMX.Layers3D.hpp
FMX.Layers3D TAbstractLayer3D

Description

Returns the object located at the given coordinates.

FMX.Layers3D.TAbstractLayer3D.ObjectAtPoint inherits from FMX.Controls3D.TControl3D.ObjectAtPoint. All content below this line refers to FMX.Controls3D.TControl3D.ObjectAtPoint.

Returns the object located at the given coordinates.

ObjectAtPoint iterates through all the children of this 3D control and returns the component situated at the coordinates given through the P TPointF parameter.

If the object at the specified coordinates was not found, or is not an IControl, or its state is csDesigning, then ObjectAtPoint returns nil. Otherwise the object is returned as IControl.

See Also