Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
gui_element.cpp
Go to the documentation of this file.
1 #include "gui_element.h"
2 
3 #include "imgui.h"
4 
5 void gui_element::set_refresh_screen(bool *refresh_flag) {
6  this->refresh_screen = refresh_flag;
7 }
8 
10  // if positions is set
11  if (x > -1)
12  ImGui::SetCursorPosX((float) x);
13  if (y > -1)
14  ImGui::SetCursorPosY((float) y);
15 
16  // if width is set
17  // if (width > -1)
18  // ImGui::PushItemWidth((float) width);
19 }
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