Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
gui_element.h
Go to the documentation of this file.
1 #ifndef GUI_ELEMENT_H
2 #define GUI_ELEMENT_H
3 
8 class gui_element {
9  protected:
10  int width = -1;
11  int x = -1, y = -1;
12 
13  // if this is init, allows internally refresh next frame elements
14  bool *refresh_screen = nullptr;
15 
16  public:
17  // reimplement following as attributes in screen_manager instead
18  // bool highlighted = false;
19  // bool selected = false;
20  int index = -1;
21 
23  void set_refresh_screen(bool *refresh_flag);
25  virtual void render_element();
26 };
27 
28 #endif
Paren class for other gui elements.
Definition: gui_element.h:8
bool * refresh_screen
Definition: gui_element.h:14
virtual void render_element()
Definition: gui_element.cpp:9
void set_refresh_screen(bool *refresh_flag)
Definition: gui_element.cpp:5