B15F
Board 15 Famulus Edition
|
12 #include "../drv/b15f.h" 14 extern std::string ERR_MSG;
15 typedef std::function<void(
int)> call_t;
50 static std::vector<std::string>
str_split(
const std::string& str,
const std::string delim);
69 virtual void draw(
void) = 0;
75 virtual call_t
keypress(
int& key) = 0;
int height
height of view in terminal characters
int width
width of view in terminal characters
std::string title
title of the view
static WINDOW * getWinContext(void)
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
static void setWinContext(WINDOW *win)
static std::vector< std::string > str_split(const std::string &str, const std::string delim)
virtual void repaint(void)
virtual call_t keypress(int &key)=0
int start_x
x offset (characters) in the terminal, used to center the window on repaint()
virtual void setTitle(std::string title)
int start_y
y offset (characters) in the terminal, used to center the window on repaint()
virtual void draw(void)=0
constexpr static int KEY_ENT
Key value for the Enter key.