Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
gui_label.h
Go to the documentation of this file.
1 #ifndef GUI_LABEL_H
2 #define GUI_LABEL_H
3 
4 #include "gui_element.h"
5 #include "app_workspace.h"
6 
11 class gui_label : public gui_element {
12  private:
13  const char *label = nullptr;
15 
16  public:
26  gui_label(const char *label, int x = -1, int y = -1, int width = -1,
28  ~gui_label();
29 
31  void render_element();
33  void set_label(const char* label);
34 };
35 
36 #endif
Paren class for other gui elements.
Definition: gui_element.h:8
This is a wrapper for ImGui Text which serves as unchangeble label.
Definition: gui_label.h:11
void render_element()
Definition: gui_label.cpp:26
gui_label(const char *label, int x=-1, int y=-1, int width=-1, app_workspace_ns::font_size font_size=app_workspace_ns::font_size::NORMAL_FONT)
Construct a new gui label object.
Definition: gui_label.cpp:15
void set_label(const char *label)
Definition: gui_label.cpp:54
font_size
This enum defines sizes of corresponding fonts. E.g.: SMALL_FONT is 12px.