Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
src
gui
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
9
void
gui_element::render_element
() {
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
}
gui_element::refresh_screen
bool * refresh_screen
Definition:
gui_element.h:14
gui_element::render_element
virtual void render_element()
Definition:
gui_element.cpp:9
gui_element::set_refresh_screen
void set_refresh_screen(bool *refresh_flag)
Definition:
gui_element.cpp:5
gui_element::y
int y
Definition:
gui_element.h:11
gui_element::x
int x
Definition:
gui_element.h:11
gui_element.h
Generated by
1.9.1