Simple SFML GUI  0.2a
Dialog.hpp
1 #ifndef DIALOG_HPP
2 #define DIALOG_HPP
3 
4 #include "PanelModelLine.hpp"
5 #include "PanelSplitted.hpp"
6 #include "HaveMargin.hpp"
7 #include "L.hpp"
8 
9 class Dialog : public PanelScrolled, public HaveMargin {
10 public:
11  Dialog(const sf::String& info="", const sf::String& name="");
12  virtual bool update(sf::Vector2f mp, bool pressLeft, bool pressRight, bool aboveHover) override;
13  virtual void updateArea() override;
14 
15  TextLabelPtr& getLabel();
16  void addButton(std::shared_ptr<Button> button);
17  void close();
18  void unimplementedButton(const Button&);
19 
20  void setButtonShift(float value);
21  void setButtonShiftType(PositionType value);
22 
23  PanelSplittedScrolledPtr getPanel() const;
24 
25  void setDynamicButtonSize(bool value);
26 
27 protected:
28 
29  PanelSplittedScrolledPtr ss;
30  TextLabelPtr label;
31 
32  PanelModelLinePtr centerLine1;
33  PanelModelLinePtr centerLine2;
34 
35  float buttonShift;
36  float lastButtonHeight;
37  bool dynamicButtonSize;
38  PositionType buttonShiftType;
39 };
40 
41 #endif // DIALOG_HPP
Definition: Dialog.hpp:9
Pressable button with some configuration options.
Definition: Button.hpp:41
Definition: HaveMargin.hpp:14
Definition: PanelScrolled.hpp:7