1 #ifndef DIALOGINPUT_HPP 2 #define DIALOGINPUT_HPP 5 #include "TextInput.hpp" 6 #include "EmptySpace.hpp" 10 DialogInput(
const sf::String& info=
"",
const sf::String& name=
"");
11 std::shared_ptr<Button> getButtonCancel();
12 std::shared_ptr<Button> getButtonOk();
13 std::shared_ptr<TextInput> getInput();
15 std::shared_ptr<EmptySpace> getGap();
16 void setSubmitAction(
const std::function<
bool (
DialogInput&)>& value);
19 std::shared_ptr<Button> buttonOk;
20 std::shared_ptr<Button> buttonCancel;
21 std::shared_ptr<TextInput> input;
22 std::shared_ptr<EmptySpace> gap;
23 std::function<bool(DialogInput&)> submitAction;
26 #endif // DIALOGINPUT_HPP