Calculate anchor offsets
void PtCalcAnchorOffsets( PtWidget_t *container,
PhRect_t const * anchor_rect );
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.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
PtAnchorWidget(), PtApplyAnchors(), PtGetAnchoredExtent()