Simple SFML GUI  0.2a
DialogInput.hpp
1 #ifndef DIALOGINPUT_HPP
2 #define DIALOGINPUT_HPP
3 
4 #include "Dialog.hpp"
5 #include "TextInput.hpp"
6 #include "EmptySpace.hpp"
7 
8 class DialogInput : public Dialog {
9 public:
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();
14 
15  std::shared_ptr<EmptySpace> getGap();
16  void setSubmitAction(const std::function<bool (DialogInput&)>& value);
17 
18 protected:
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;
24 };
25 
26 #endif // DIALOGINPUT_HPP
Definition: Dialog.hpp:9
Definition: DialogInput.hpp:8