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
8
class
ViewSelection
:
public
View
9
{
10
public
:
11
virtual
void
draw(
void
)
override
;
12
virtual
void
addChoice(std::string name, call_t call);
13
virtual
call_t keypress(
int
& key)
override
;
14
15
16
protected
:
17
size_t
selection = 0;
18
std::vector<std::string> choices;
19
20
constexpr
static
int
choice_offset_x = 2;
21
constexpr
static
int
choice_offset_y = 3;
22
};
23
24
#endif // VIEW_SELECTION_H
View
Definition:
view.h:17
ViewSelection
Definition:
view_selection.h:8
Generated by
1.8.16