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

Developer

API Reference

WIDGETEXTENT

Brew Release
Brew MP 1.0.2
See Also
Description
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.
Members
  • width:   The width of the widget's bounding rectangle.
  • height:  The height of the widget's bounding rectangle.
Definition
  •    typedef struct WidgetExtent {
          int   width;
          int   height;
       } WidgetExtent;
    
Comments
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.