1 2 /** \file gauge.h 3 * \brief Header: WGauge widget 4 */ 5 6 #ifndef MC__WIDGET_GAUGE_H 7 #define MC__WIDGET_GAUGE_H 8 9 /*** typedefs(not structures) and defined constants **********************************************/ 10 11 #define GAUGE(x) ((WGauge *)(x)) 12 13 /*** enums ***************************************************************************************/ 14 15 /*** structures declarations (and typedefs of structures)*****************************************/ 16 17 typedef struct WGauge 18 { 19 Widget widget; 20 gboolean shown; 21 int max; 22 int current; 23 gboolean from_left_to_right; 24 } WGauge; 25 26 /*** global variables defined in .c file *********************************************************/ 27 28 /*** declarations of public functions ************************************************************/ 29 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); 33 34 /*** inline functions ****************************************************************************/ 35 36 #endif /* MC__WIDGET_GAUGE_H */