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