mc/lib/widget/gauge.h
Andrew Borodin 71364f88c3 Split lib/widget/widget.[ch] and lib/widget/wtools.[ch] files
...into small: one widget in one file.
Renamed most if WInput functions.
Minor optimization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:30 +03:00

35 lines
1.0 KiB
C

/** \file gauge.h
* \brief Header: WGauge widget
*/
#ifndef MC__WIDGET_GAUGE_H
#define MC__WIDGET_GAUGE_H
/*** typedefs(not structures) and defined constants **********************************************/
/*** enums ***************************************************************************************/
/*** structures declarations (and typedefs of structures)*****************************************/
typedef struct WGauge
{
Widget widget;
gboolean shown;
int max;
int current;
gboolean from_left_to_right;
} WGauge;
/*** global variables defined in .c file *********************************************************/
/*** declarations of public functions ************************************************************/
WGauge *gauge_new (int y, int x, gboolean shown, int max, int current);
void gauge_set_value (WGauge * g, int max, int current);
void gauge_show (WGauge * g, gboolean shown);
/*** inline functions ****************************************************************************/
#endif /* MC__WIDGET_GAUGE_H */