Developer

API Reference

IWidget_Draw()

Brew Release
Brew MP 1.0.2
Description
This function draws a widget at a specific position on the device display. The widget will draw itself within the bounds defined by its current extent, clipped to the clipRect defined in ICanvas. If the widget does any drawing through interfaces other than ICanvas, it is the widget's responsibility to ensure that these operations are clipped appropriately (i.e. by calling ICanvas_GetClipRect() and drawing only within the bounds of the rectangle returned from ICanvas).
The function specifies the horizontal and vertical position of the upper left hand corner of the bounding rectangle that will contain the widget.
Parameters
  • pif
    []:
    [in] Pointer to the IWidget object.
  • piCanvas
    []:
    [in] Pointer to the ICanvas interface that will provide drawing services to the widget.
  • x
    []:
    [in] Horizontal position of the left side of the widget.
  • y
    []:
    [in] vertical position of the top of the widget.
Interface
Prototype
   void IWidget_Draw(IWidget *pif, ICanvas *piCanvas, int x, int y);
                        
Return
None
Side Effect
None
Comment
None
  • Follow