B15F
Board 15 Famulus Edition
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ViewSelection Class Reference

#include <view_selection.h>

+ Inheritance diagram for ViewSelection:

Public Member Functions

virtual void draw (void) override
 
virtual void addChoice (std::string name, call_t call)
 
virtual call_t keypress (int &key) override
 
- Public Member Functions inherited from View
virtual void setTitle (std::string title)
 
virtual void repaint (void)
 

Protected Attributes

size_t selection = 0
 
std::vector< std::string > choices
 
- Protected Attributes inherited from View
int width
 
int height
 
int start_x = 0
 
int start_y = 0
 
std::string title
 
std::vector< call_t > calls
 

Static Protected Attributes

constexpr static int choice_offset_x = 2
 
constexpr static int choice_offset_y = 3
 
- Static Protected Attributes inherited from View
static WINDOW * win = nullptr
 
constexpr static int KEY_ENT = 10
 

Additional Inherited Members

- Static Public Member Functions inherited from View
static void setWinContext (WINDOW *win)
 
static WINDOW * getWinContext (void)
 
static std::vector< std::string > str_split (const std::string &str, const std::string delim)
 

Detailed Description

View for user selection input.

Definition at line 10 of file view_selection.h.


The documentation for this class was generated from the following files: