Added gwinProgressbarStop()
This commit is contained in:
parent
d15d3ee19b
commit
8169a0453b
3 changed files with 21 additions and 0 deletions
|
@ -21,6 +21,7 @@ DEPRECTATE: Old image opening functions deprecated.
|
|||
FEATURE: Restructure and simplify the include path for GFX
|
||||
FEATURE: Added LGDP4532 driver by user shilow
|
||||
FEATURE: Support for ChibiOS/RT 3.x
|
||||
FEATURE: Added gwinProgressbarStop()
|
||||
|
||||
|
||||
*** changes after 1.9 ***
|
||||
|
|
|
@ -200,6 +200,17 @@ void gwinProgressbarStart(GHandle gh, delaytime_t delay) {
|
|||
#undef gsw
|
||||
}
|
||||
|
||||
void gwinProgressbarStop(GHandle gh) {
|
||||
#define gsw ((GProgressbarObject *)gh)
|
||||
|
||||
if (gh->vmt != (gwinVMT *)&progressbarVMT)
|
||||
return;
|
||||
|
||||
gtimerStop(&(gsw->gt));
|
||||
|
||||
#undef gsw
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------
|
||||
* Custom Draw Routines
|
||||
*----------------------------------------------------------*/
|
||||
|
|
|
@ -155,6 +155,15 @@ void gwinProgressbarDecrement(GHandle gh);
|
|||
*/
|
||||
void gwinProgressbarStart(GHandle gh, delaytime_t delay);
|
||||
|
||||
/**
|
||||
* @brief Stop the timer which is started by @p gwinProgressbarStart()
|
||||
*
|
||||
* @param[in] gh The window handle (must be a progressbar window)
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
void gwinProgressbarStop(GHandle gh);
|
||||
|
||||
/**
|
||||
* @brief Some custom progressbar drawing routines
|
||||
* @details These function may be passed to @p gwinSetCustomDraw() to get different progressbar drawing styles
|
||||
|
|
Loading…
Add table
Reference in a new issue