nw::lyt::FindHitPane Function

Syntax

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

Arguments

Name Description
pLayout Pointer to the layout.
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.

Takes all panes in the layout as search targets.

Since the matrix values calculated by Pane::CalculateMtx are used, Pane::CalculateMtx must be called before calling this function.

This function assumes that the values of the x and y for pane rotation are zero. Correct determination is impossible for values other than zero.

Revision History

2009/09/18
Initial version.

CONFIDENTIAL