11 virtual void draw(
void)
override;
12 virtual void setMessage(std::string message);
13 virtual void setConfirm(std::string name, call_t call);
14 virtual void setCancel(std::string name,
bool cancelable);
15 virtual std::string getInput(
void);
16 virtual call_t keypress(
int& key)
override;
21 std::string message =
"Input";
22 std::string label_confirm =
"[ OK ]";
23 std::string sep =
" ";
24 std::string label_cancel =
"[ Cancel ]";
25 call_t call_confirm =
nullptr;
26 bool cancelable =
true;
27 int button_offset_x = 0, button_offset_y = 0;
28 constexpr
static int text_offset_x = 2;
29 constexpr
static int text_offset_y = 2;
32 #endif // VIEW_PROMT_H