Developer

API Reference

IDrawDecorator_GetExtent()

Brew Release
Brew MP 1.0.2
See Also
- WidgetExtent
- IDrawDecorator Interface
- IDrawDecorator_GetPreferredExtent()
- IDrawDecorator_SetExtent()
- IWidget_SetPreferredExtent()
Description
Returns the horizontal and vertical extent of the draw decorator. The extent is better thought of as the relative size of an object's bounding rectangle, independent of where that widget may be placed on the display. The extent is returned in a WidgetExtent data structure defining the width and height of the decorator. Note that this is the _actual_ extent of the draw decorator as it will appear on the display, as opposed to the preferred extent, which is the size the object would choose to be under ideal circumstances.
Parameters
  • p
    []:
    Pointer to the IDrawDecorator object.
  • x
    []:
    Pointer to the WidgetExtent struct that, on output, will contain the current extent of the draw decorator.
Prototype
   void IDrawDecorator_GetExtent(IDrawDecorator *p, WidgetExtent *x);
   
Return
The actual extent for the draw decorator is returned in 'x'.
Side Effect
None
Comment
None
  • Follow