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

Developer

API Reference

IDECORATOR_DRAW()

Brew Release
Brew MP 1.0.2
See Also
IDecorator Interface IDisplay Interface
Description
This function draws a decorator at a specific position on the device display. Drawing will occur within the bounds defined by the decorator's current extent, clipped to the clipRect defined in IDisplay. If the decorator does any drawing through interfaces other than IDisplay, it is the decorator's responsibility to ensure that these operations are clipped appropriately (i.e. by calling IDISPLAY_GetClipRect() and drawing only within the bounds of the rectangle returned from IDisplay).
The function specifies the horizontal and vertical position of the upper left hand corner of the bounding rectangle that will enclose the decorator.
Params
p
[]:
Pointer to the IDecorator object to draw.
d
[]:
Pointer to the IDisplay interface that will provide drawing services to the decorator.
x
[]:
Horizontal position of the left side of the decorator, offset from the left side of the IDisplay object.
y
[]:
Vertical position of the top of the decorator, offset from the left side of the IDisplay object
Interface
Prototype
  •    void IDecorator_Draw(IDecorator *p, IDisplay *piDisplay, int x, int y);
                            
Return
  • none
Side Effect
  • None
Comments
IDecorator_Draw () effectively draws the child widget wrapped by the decorator.