Header.h 684 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. enum e_event_code { NONE, EVENT_PRESSED, EVENT_LONG_PRESSED, LV_EVENT_RELEASED, REDRAW };
  3. class cEvents {
  4. public:
  5. void* user_data = nullptr;
  6. void* param = nullptr;
  7. cEvents* prev = nullptr;
  8. enum e_event_code code;
  9. uint16_t x;
  10. uint16_t y;
  11. cEvents* event_get_code(cEvents* e) {
  12. std::cout << e->code << std::endl;
  13. return this;
  14. }
  15. bool event_send_code(cEvents* e) {
  16. return true;
  17. }
  18. };
  19. class cBaseClass {
  20. uint8_t uBuf;
  21. enum { IN, OUT, BIDIR } IO;
  22. virtual void init() {};
  23. virtual void run() {};
  24. virtual void update() {};
  25. };
  26. struct myModel {
  27. const char* pClassName = "myModel";
  28. };