gauge.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /** \file gauge.h
  2. * \brief Header: WGauge widget
  3. */
  4. #ifndef MC__WIDGET_GAUGE_H
  5. #define MC__WIDGET_GAUGE_H
  6. /*** typedefs(not structures) and defined constants **********************************************/
  7. /*** enums ***************************************************************************************/
  8. /*** structures declarations (and typedefs of structures)*****************************************/
  9. typedef struct WGauge
  10. {
  11. Widget widget;
  12. gboolean shown;
  13. int max;
  14. int current;
  15. gboolean from_left_to_right;
  16. } WGauge;
  17. /*** global variables defined in .c file *********************************************************/
  18. /*** declarations of public functions ************************************************************/
  19. WGauge *gauge_new (int y, int x, gboolean shown, int max, int current);
  20. void gauge_set_value (WGauge * g, int max, int current);
  21. void gauge_show (WGauge * g, gboolean shown);
  22. /*** inline functions ****************************************************************************/
  23. #endif /* MC__WIDGET_GAUGE_H */