B15F
Board 15 Famulus Edition
ui
view_selection.h
1
#ifndef VIEW_SELECTION_H
2
#define VIEW_SELECTION_H
3
4
#include <vector>
5
#include <string>
6
#include "view.h"
7
10
class
ViewSelection
:
public
View
11
{
12
public
:
13
virtual
void
draw(
void
)
override
;
14
virtual
void
addChoice(std::string name, call_t call);
15
virtual
call_t keypress(
int
& key)
override
;
16
17
18
protected
:
19
size_t
selection = 0;
20
std::vector<std::string> choices;
21
22
constexpr
static
int
choice_offset_x = 2;
23
constexpr
static
int
choice_offset_y = 3;
24
};
25
26
#endif // VIEW_SELECTION_H
View
Definition:
view.h:19
ViewSelection
Definition:
view_selection.h:10
Generated on Fri Jun 7 2019 14:50:45 for B15F by
1.8.16