curseOutput.hh 699 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. class JSonElement;
  3. class CurseOutput
  4. {
  5. public:
  6. CurseOutput(JSonElement *rootData);
  7. virtual ~CurseOutput();
  8. void run();
  9. protected:
  10. void init();
  11. void shutdown();
  12. void redraw();
  13. void redraw(std::pair<int, int> &, const std::pair<int, int>&, const JSonElement *);
  14. bool readInput();
  15. void getScreenSize(std::pair<int, int> &);
  16. void write(const int &x, const int &y, JSonElement *item);
  17. void write(const int &x, const int &y, const std::string &item);
  18. unsigned int offset_x;
  19. unsigned int offset_y;
  20. const JSonElement *data;
  21. const unsigned int indentLevel;
  22. };