µGFX  2.9
version 2.9
Renderings

Detailed Description

Built-in rendering functions for the progressbar widget.

These function may be passed to gwinSetCustomDraw() to get different progressbar drawing styles.

Note
In your custom progressbar drawing function you may optionally call these standard functions and then draw your extra details on top.
These custom drawing routines don't have to worry about setting clipping as the framework sets clipping to the object window prior to calling these routines.

Functions

void gwinProgressbarDraw_Std (GWidgetObject *gw, void *param)
 The default rendering function for the progressbar widget. More...
 
void gwinProgressbarDraw_Image (GWidgetObject *gw, void *param)
 Renders a progressbar using an image. More...
 

Function Documentation

◆ gwinProgressbarDraw_Image()

void gwinProgressbarDraw_Image ( GWidgetObject gw,
void *  param 
)

Renders a progressbar using an image.

Parameters
[in]gwThe widget object (must be a progressbar handle)
[in]paramA parameter passed in from the user. Must be an image handle. See note below.
Note
The image must be already opened before calling gwinSetCustomDraw().
The image is tiled to fill the active area of the progressbar. The normal colors apply to the border and inactive area and the dividing line between the active and inactive areas. No checking is done to compare the dimensions of the progressbar to the size of the image. Note text is drawn on top of the image.
Precondition
GDISP_NEED_IMAGE must be set to GFXON
Function Class: Normal API, this function can be invoked by regular system threads.

◆ gwinProgressbarDraw_Std()

void gwinProgressbarDraw_Std ( GWidgetObject gw,
void *  param 
)

The default rendering function for the progressbar widget.

Parameters
[in]gwThe widget object (must be a progressbar object)
[in]paramA parameter passed in from the user. Ignored by this function.
Function Class: Normal API, this function can be invoked by regular system threads.

Definition at line 225 of file gwin_progressbar.c.

References GWidgetObject::g, and GWindowObject::vmt.