PtHit

PtHit — searches a container for a widget.

Syntax

PtHit (container, n, rect)

		

Arguments

container

A PtContainer widget.

n

The widget number to search for.

rect

An area in the form of a PtRect widget.

Returns

A widget on success, else nil.

Description

This function searches the container for the nth widget that intersects the rectangle rect. The rect will be relative to the basic widget canvas of the container. This function ignores unrealized or procreated widgets.

See Also

In Photon documentation: PtHit.