52658b4118ef05c14158a2532036faca9d1d0ba7
[midnight-commander.git] / lib / widget / gauge.h
blob52658b4118ef05c14158a2532036faca9d1d0ba7
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 /*** enums ***************************************************************************************/
13 /*** structures declarations (and typedefs of structures)*****************************************/
15 typedef struct WGauge
17 Widget widget;
18 gboolean shown;
19 int max;
20 int current;
21 gboolean from_left_to_right;
22 } WGauge;
24 /*** global variables defined in .c file *********************************************************/
26 /*** declarations of public functions ************************************************************/
28 WGauge *gauge_new (int y, int x, gboolean shown, int max, int current);
29 void gauge_set_value (WGauge * g, int max, int current);
30 void gauge_show (WGauge * g, gboolean shown);
32 /*** inline functions ****************************************************************************/
34 #endif /* MC__WIDGET_GAUGE_H */