Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
include
gui_element.h
Go to the documentation of this file.
1
#ifndef GUI_ELEMENT_H
2
#define GUI_ELEMENT_H
3
8
class
gui_element
{
9
protected
:
10
int
width
= -1;
11
int
x
= -1,
y
= -1;
12
13
// if this is init, allows internally refresh next frame elements
14
bool
*
refresh_screen
=
nullptr
;
15
16
public
:
17
// reimplement following as attributes in screen_manager instead
18
// bool highlighted = false;
19
// bool selected = false;
20
int
index
= -1;
21
23
void
set_refresh_screen
(
bool
*refresh_flag);
25
virtual
void
render_element
();
26
};
27
28
#endif
gui_element
Paren class for other gui elements.
Definition:
gui_element.h:8
gui_element::index
int index
Definition:
gui_element.h:20
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::width
int width
Definition:
gui_element.h:10
gui_element::x
int x
Definition:
gui_element.h:11
Generated by
1.9.1