PtWidgetVisibleExtent()

Calculate the visible portion of a widget

Synopsis:

int PtWidgetVisibleExtent ( PtWidget_t *widget,
                            PhRect_t *rect );

Library:

ph

Description:

This function determines the portion of a rectangle, defined in the PhRect_t pointed to by rect, that isn't clipped by any parent of widget.

Returns:

0
No portion of rect is visible
1
Success — rect contains the portion of the original rectangle that isn't clipped by any of widget's parents

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhRect_t