9b149a763e023eca5dfe7ce0f5af1bd622ef5726
[midnight-commander.git] / lib / widget / gauge.h
blob9b149a763e023eca5dfe7ce0f5af1bd622ef5726
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, 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 */