[Previous] [Contents] [Index] [Next]

PtCalcAnchorOffsets()

Calculate anchor offsets

Synopsis:

void PtCalcAnchorOffsets( PtWidget_t *container, 
                          PhRect_t const * anchor_rect );

Description:

This function calculates the anchor offsets for the given container widget based on its current anchor flags, its parent's canvas rectangle, and the provided anchor_rect.

The container's anchor offsets are calculated such that a subsequent call to PtGetAnchoredExtent() yields a corrected new_anchor_rect with respect to the canvas rectangle of the parent and the anchor flags in effect.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtAnchorWidget(), PtApplyAnchors(), PtGetAnchoredExtent()


[Previous] [Contents] [Index] [Next]