Enable -Wunused-but-set-variable flag by default.
[midnight-commander.git] / lib / widget / gauge.h
blobe1f5d2c5498169150becf720719ae964ba0fbfc8
2 /** \file gauge.h
3 * \brief Header: WGauge widget
4 */
6 #ifndef MC__WIDGET_GAUGE_H
7 #define MC__WIDGET_GAUGE_H
9 /*** typedefs(not structures) and defined constants **********************************************/
11 #define GAUGE(x) ((WGauge *)(x))
13 /*** enums ***************************************************************************************/
15 /*** structures declarations (and typedefs of structures)*****************************************/
17 typedef struct WGauge
19 Widget widget;
20 gboolean shown;
21 int max;
22 int current;
23 gboolean from_left_to_right;
24 } WGauge;
26 /*** global variables defined in .c file *********************************************************/
28 /*** declarations of public functions ************************************************************/
30 WGauge *gauge_new (int y, int x, int cols, gboolean shown, int max, int current);
31 void gauge_set_value (WGauge * g, int max, int current);
32 void gauge_show (WGauge * g, gboolean shown);
34 /*** inline functions ****************************************************************************/
36 #endif /* MC__WIDGET_GAUGE_H */