API Reference | developer.brewmp.com API Reference | developer.brewmp.com


API Reference


Brew Release
Brew MP 1.0.2
See Also
This data type specifies the geometric structure of a widget, in terms of height and width, without defining the bounds or placement of the widget. The WidgetExtent data structure, in a sense, defines the size of a widget.
  • width:   The width of the widget's bounding rectangle.
  • height:  The height of the widget's bounding rectangle.
  •    typedef struct WidgetExtent {
          int   width;
          int   height;
       } WidgetExtent;
The WidgetExtent of a widget can be derived from a widget's bounding rectangle with the 'width' being equal to the right coordinate of the bounding rectangle minus the left, and the 'height' being the bottom coordinate minus the top.