Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
|
Allows to create a label, that automatically updates to observed variable value. This class doesn't work well with strings. More...
#include <gui_observer.h>
Public Member Functions | |
gui_observer (observed_type type, void *target, 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 observer object. More... | |
void | render_element () |
![]() | |
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 |
Allows to create a label, that automatically updates to observed variable value. This class doesn't work well with strings.
Definition at line 23 of file gui_observer.h.
gui_observer::gui_observer | ( | observed_type | type, |
void * | target, | ||
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 observer object.
type | Observed type |
target | Observed data |
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 6 of file gui_observer.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 17 of file gui_observer.cpp.