API Reference


Brew Release
Brew MP 1.0.2
See Also
- IDrawDecorator Interface
- ICanvas Interface
- DrawHandlerDesc_Call()
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.
  • 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.
   void IDrawDecorator_Draw(IDrawDecorator *p, ICanvas *d, int x, int y);
Side Effect
IDrawDecorator_Draw() effectively draws the child widget wrapped by the draw decorator.
  • Follow