MetersPanel.h 825 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef HEADER_MetersPanel
  2. #define HEADER_MetersPanel
  3. /*
  4. htop - MetersPanel.h
  5. (C) 2004-2011 Hisham H. Muhammad
  6. Released under the GNU GPLv2+, see the COPYING file
  7. in the source distribution for its full text.
  8. */
  9. #include <stdbool.h>
  10. #include "Panel.h"
  11. #include "ScreenManager.h"
  12. #include "Settings.h"
  13. #include "Vector.h"
  14. struct MetersPanel_;
  15. typedef struct MetersPanel_ MetersPanel;
  16. struct MetersPanel_ {
  17. Panel super;
  18. Settings* settings;
  19. Vector* meters;
  20. ScreenManager* scr;
  21. MetersPanel* leftNeighbor;
  22. MetersPanel* rightNeighbor;
  23. bool moving;
  24. };
  25. void MetersPanel_cleanup(void);
  26. void MetersPanel_setMoving(MetersPanel* this, bool moving);
  27. extern const PanelClass MetersPanel_class;
  28. MetersPanel* MetersPanel_new(Settings* settings, const char* header, Vector* meters, ScreenManager* scr);
  29. #endif