Simple SFML GUI  0.2a
EmptySpace.hpp
1 #ifndef EMPTYSPACE_HPP
2 #define EMPTYSPACE_HPP
3 
4 #include "Element.hpp"
5 
6 class EmptySpace : public Element {
7 public:
9  const sf::FloatRect& area = sf::FloatRect(),
10  const sf::String& name = sf::String()
11  );
12 
13  EmptySpace(
14  const sf::Vector2f& size,
15  const sf::String& name = sf::String()
16  );
17 
18  EmptySpace(
19  const sf::Vector2f& size,
20  MaximizationMode maximizationMode,
21  bool maximized = true
22  );
23 
24  inline static std::shared_ptr<EmptySpace> create(
25  const sf::Vector2f& size,
26  MaximizationMode maximizationMode,
27  bool maximized = true
28  ) {
29  return std::make_shared<EmptySpace>(size,maximizationMode,maximized);
30  }
31 
32  virtual void draw(sf::RenderTarget& target, sf::RenderStates states);
33  virtual bool update(sf::Vector2f mp, bool pressLeft, bool pressRight, bool aboveHover);
34 
35 protected:
36 
37 };
38 
39 typedef std::shared_ptr<EmptySpace> EmptySpacePtr;
40 
41 #endif
Definition: Element.hpp:22
Definition: EmptySpace.hpp:6