Developer

API Reference

IDrawDecorator_Draw()

Brew Release
Brew MP 1.0.2
See Also
- IDrawDecorator Interface
- ICanvas Interface
- DrawHandlerDesc_Call()
Description
This function renders a draw decorator at a specific position within on the device display, drawing onto an ICanvas object within the bounds defined by the draw decorator's current extent. The function specifies the horizontal and vertical position of the upper left hand corner of the bounding rectangle that will enclose the draw decorator.
IDrawDecorator_Draw() starts off a chain of drawing, calling the draw handler at the beginning of the chain. Each draw handler that hooks into the draw decorator is expected (though not required) to call DRAWHANDLERDESC_Call() to continue the chain and insure that all child objects are drawn.
Parameters
  • p
    []:
    Pointer to the IDrawDecorator object to draw.
  • d
    []:
    Pointer to the ICanvas object that will provide drawing services to the draw decorator.
  • x
    []:
    Horizontal position of the left side of the draw decorator, offset from the left side of the ICanvas object.
  • y
    []:
    Vertical position of the top of the draw decorator, offset from the top of the ICanvas object.
Prototype
   void IDrawDecorator_Draw(IDrawDecorator *p, ICanvas *d, int x, int y);
                        
Return
none
Side Effect
None
Comment
IDrawDecorator_Draw() effectively draws the child widget wrapped by the draw decorator.
  • Follow