123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef MC__WIDGET_GAUGE_H
- #define MC__WIDGET_GAUGE_H
- #define GAUGE(x) ((WGauge *)(x))
- typedef struct WGauge
- {
- Widget widget;
- gboolean shown;
- int max;
- int current;
- gboolean from_left_to_right;
- } WGauge;
- WGauge *gauge_new (int y, int x, int cols, gboolean shown, int max, int current);
- void gauge_set_value (WGauge * g, int max, int current);
- void gauge_show (WGauge * g, gboolean shown);
- #endif
|