B15F
Board 15 Famulus Edition
|
5 calls.push_back(
nullptr);
32 wattron(
win, A_REVERSE);
34 wattroff(
win, A_REVERSE);
46 if(getmouse(&event) == OK && event.bstate & (BUTTON1_CLICKED | BUTTON1_DOUBLE_CLICKED))
50 size_t mouse_x =
event.x, mouse_y =
event.y;
51 if(mouse_y == row && mouse_x >= column && mouse_x < column +
label_close.length())
int height
height of view in terminal characters
constexpr static int text_offset_x
Relativer Abstand des Textes zum linken Rahmen.
int width
width of view in terminal characters
virtual void setText(std::string text)
std::vector< call_t > calls
calls (function pointers) for different button actions in the view (if any)
static WINDOW * win
static window contexts for all views
int close_offset_x
Relative X Koordinate des Buttons zum Schließen im Window.
static std::vector< std::string > str_split(const std::string &str, const std::string delim)
std::string label_close
Beschriftung für Button zum Schließen.
constexpr static int text_offset_y
Relativer Abstand des Textes zum oberen Rahmen.
virtual call_t keypress(int &key) override
int close_offset_y
Relative Y Koordinate des Buttons zum Schließen im Window.
virtual void setLabelClose(std::string label)
int start_x
x offset (characters) in the terminal, used to center the window on repaint()
std::string text
Benachrichtigungstext dieser View.
virtual void setCall(call_t call)
int start_y
y offset (characters) in the terminal, used to center the window on repaint()
virtual void draw(void) override
constexpr static int KEY_ENT
Key value for the Enter key.