nw::lyt::FindHitPane Function

Syntax

Pane * FindHitPane(
     Pane * pPane,
     const math::VEC2 & pos
);

Arguments

Name Description
pPane Pointer to the pane.
pos Location of the point to be checked.

Return Values

Returns a pointer to the bounding pane that includes the specified point; otherwise, returns NULL if no such pane can be found.

Description

Searches for panes that include a given point.

Searches for bounding panes that include the point given by pos. The search is performed in the reverse order that panes are rendered. Hidden panes and their children are not searched.

Searches for panes by taking the pane given by pPane as the root.

Revision History

2009/09/18
Initial version.

CONFIDENTIAL