Browse Source

Added gwinProgressbarReset()

remotes/origin_old/ugfx_release_2.6
Joel Bodenmann 8 years ago
parent
commit
5c3779cf79
  1. 2
      releases.txt
  2. 9
      src/gwin/progressbar.h

2
releases.txt

@ -21,7 +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()
FEATURE: Added gwinProgressbarStop() and gwinProgressbarReset()
*** changes after 1.9 ***

9
src/gwin/progressbar.h

@ -138,6 +138,15 @@ void gwinProgressbarDecrement(GHandle gh);
*/
#define gwinProgressbarGetPosition(gh) (((GProgressbarObject *)(gh))->pos)
/**
* @brief Reset the progressbar to the minimum position
*
* @param[in] gh The window handle (must be a progressbar window)
*
* @api
*/
#define gwinProgressbarReset(gh) gwinProgressbarSetPosition(gh, ((GProgressbarObject *)(gh))->min)
/**
* @brief Automatically increments the progress bar
*

Loading…
Cancel
Save