FMX.Objects.TPie.PointInObject

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function PointInObject(X, Y: Single): Boolean; override;

C++

virtual bool __fastcall PointInObject(float X, float Y);

Properties

Type Visibility Source Unit Parent
function public
FMX.Objects.pas
FMX.Objects.hpp
FMX.Objects TPie

Description

Checks whether the point, specified by the absolute coordinates, belongs to the control area.

FMX.Objects.TPie.PointInObject inherits from FMX.Controls.TControl.PointInObject. All content below this line refers to FMX.Controls.TControl.PointInObject.

Checks whether the point, specified by the absolute coordinates, belongs to the control area.

PointInObject returns True if the specified point belongs to the control area, and False otherwise.

The X and Y are the absolute coordinates (relative to the main form) of the point to be checked (compare with PointInObjectLocal):

  • X is the X coordinate.
  • Y is the Y coordinate.

The points of the control boundary specified by BoundsRect belong to the control and PointInObject returns True for them.

Note: PointInObject simply converts absolute coordinates of the point to local coordinates and calls PointInObjectLocal.

See Also