Determine whether a widget has a resize policy
int PtResizePolicy( PtWidget_t *widget );
This function determines whether a resize policy is currently in effect for the specified widget.
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 }
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |