Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
|
This is a wrapper for ImGui Text which serves as unchangeble label. More...
#include <gui_label.h>
Public Member Functions | |
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. More... | |
~gui_label () | |
void | render_element () |
void | set_label (const char *label) |
![]() | |
void | set_refresh_screen (bool *refresh_flag) |
Additional Inherited Members | |
![]() | |
int | index = -1 |
![]() | |
int | width = -1 |
int | x = -1 |
int | y = -1 |
bool * | refresh_screen = nullptr |
This is a wrapper for ImGui Text which serves as unchangeble label.
Definition at line 11 of file gui_label.h.
gui_label::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.
label | is required... since it's.. u'know... a label... |
x | if set to -1, isn't used |
y | if set to -1, isn't used |
width | if set to -1, isn't used |
font_size | Default font size is NORMAL |
Definition at line 15 of file gui_label.cpp.
gui_label::~gui_label | ( | ) |
Definition at line 23 of file gui_label.cpp.
|
virtual |
Override of parent function, that is required, because it does the actual rendering of the element
Reimplemented from gui_element.
Definition at line 26 of file gui_label.cpp.
void gui_label::set_label | ( | const char * | label | ) |
Changes label of the instance of this element
Definition at line 54 of file gui_label.cpp.