PtResizePolicy()

Determine whether a widget has a resize policy

Synopsis:

int PtResizePolicy( PtWidget_t *widget );

Arguments:

widget
A pointer to the widget to check for a resize policy.

Description:

This function determines whether a resize policy is currently in effect for the specified widget.

Returns:

0
No resize policy.
Nonzero
A resize policy is in effect. This returned value is a combination of the resize policy flags in effect.

Examples:

You can test the return of PtResizePlicy() to determine which policies are in effect:

int resizePolicy;
resizePolicy=PtResizePolicy(myButton);

// test if any resize policies are set:
if(resizePolicy & Pt_RESIZE_XY_BITS == 0) {
  // no policies are set: do some stuff
}

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No