Developer

API Reference

IWidget_EnableLayout()

Brew Release
Brew MP 1.0.2
See Also
- Widget Events
- IWidget
- IWidget_ForceLayout
Description
This function is used to set a container to not do automatic layout and invalidation when its extent changes or its children invalidate themselves. This can be used when many children need to be added, removed, or modified in a container and performance degradation is noticed. After manipulating the children, layout should be turned on and invalidated (with a IWidget_ForceLayout) to cause the container to re-layout and invalidate correctly.
Parameters
  • pif
    []:
    Pointer to the IWidget interface object.
  • bEnable
    []:
    Whether to turn on layout and invalidation or not.
Interface
Prototype
   int IWidget_EnableLayout(IWidget *pif, boolean bEnable); 
Return
   AEE_SUCCESS - If the widget is able to turn off layout and invalidation.
   AEE_EFAILED - If the widget is not able to turn off layout and invalidation.

Side Effect
None
Comment
None
  • Follow