Calculate a new anchor rectangle
int PtGetAnchoredExtent( PtWidget_t *container, PhRect_t const *old_anchor_rect, PhRect_t *new_anchor_rect );
This function calculates a new anchor rectangle new_anchor_rect using the canvas rectangle derived from the PtBasic-class level and the anchor flags and offsets associated with container.
The anchor flags and anchor offsets are calculated by PtCalcAnchorOffsets(). All parameters must be provided. The new_anchor_rect argument is used only if PtGetAnchoredExtent() returns a value of 1.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |