Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
|
Wrapper for ImGui::Button. More...
#include <gui_button.h>
Public Member Functions | |
gui_button (const char *label, void(*callback)(), int x=-1, int y=-1, int width=-1, int height=-1, app_workspace_ns::font_size font_size=app_workspace_ns::font_size::NORMAL_FONT) | |
Construct a new gui button 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 |
Wrapper for ImGui::Button.
Definition at line 11 of file gui_button.h.
gui_button::gui_button | ( | const char * | label, |
void(*)() | callback, | ||
int | x = -1 , |
||
int | y = -1 , |
||
int | width = -1 , |
||
int | height = -1 , |
||
app_workspace_ns::font_size | font_size = app_workspace_ns::font_size::NORMAL_FONT |
||
) |
Construct a new gui button object.
label | is required parameter |
callback | is required parameter |
x | if set to -1, isn't used |
y | if set to -1, isn't used |
width | if set to -1, isn't used |
height | if set to -1, isn't used |
font_size | Default font size is NORMAL |
Definition at line 5 of file gui_button.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_button.cpp.