B15F
Board 15 Famulus Edition
|
#include <view_monitor.h>
Public Member Functions | |
ViewMonitor (void) | |
virtual call_t | keypress (int &key) override |
![]() | |
ViewInfo (void) | |
virtual void | setText (std::string text) |
virtual void | setLabelClose (std::string label) |
virtual void | setCall (call_t call) |
virtual void | draw (void) override |
![]() | |
View (void) | |
virtual | ~View (void) |
virtual void | setTitle (std::string title) |
virtual void | repaint (void) |
Protected Member Functions | |
virtual void | worker (void) |
Funktion, die vom Worker-Thread ausgeführt, um die Anzeige zu aktualisieren. | |
Protected Attributes | |
volatile bool | run_worker = true |
Legt fest, ob die Schleife im worker() weiterhin fortgeführt werden soll. Bei false bricht die Schleife ab. | |
std::thread | t_worker |
Worker-Thread. | |
![]() | |
std::string | text |
Benachrichtigungstext dieser View. | |
std::string | label_close |
Beschriftung für Button zum Schließen. | |
int | close_offset_x = 0 |
Relative X Koordinate des Buttons zum Schließen im Window. | |
int | close_offset_y = 0 |
Relative Y Koordinate des Buttons zum Schließen im Window. | |
![]() | |
int | width |
width of view in terminal characters | |
int | height |
height of view in terminal characters | |
int | start_x = 0 |
x offset (characters) in the terminal, used to center the window on repaint() | |
int | start_y = 0 |
y offset (characters) in the terminal, used to center the window on repaint() | |
std::string | title |
title of the view | |
std::vector< call_t > | calls |
calls (function pointers) for different button actions in the view (if any) | |
Additional Inherited Members | |
![]() | |
static void | setWinContext (WINDOW *win) |
static WINDOW * | getWinContext (void) |
static std::vector< std::string > | str_split (const std::string &str, const std::string delim) |
![]() | |
constexpr static int | text_offset_x = 2 |
Relativer Abstand des Textes zum linken Rahmen. | |
constexpr static int | text_offset_y = 3 |
Relativer Abstand des Textes zum oberen Rahmen. | |
![]() | |
static WINDOW * | win = nullptr |
static window contexts for all views | |
constexpr static int | KEY_ENT = 10 |
Key value for the Enter key. | |
Klasse für die Anzeige aller analogen & digitalen Eingänge des B15.
Definition at line 15 of file view_monitor.h.
ViewMonitor::ViewMonitor | ( | void | ) |
Standard-Konstruktor ohne Argumente
Definition at line 3 of file view_monitor.cpp.
|
overridevirtual |
Verarbeitet einen Tastendruck, z.B. Enter = Button angewählt.
key | gedrückte Taste |
Reimplemented from ViewInfo.
Definition at line 7 of file view_monitor.cpp.