1 #ifndef SSG_PANELSPLITTED_HPP_ 2 #define SSG_PANELSPLITTED_HPP_ 4 #include "HaveEnabled.hpp" 6 #include "PanelScrolled.hpp" 8 #include "ColorAccess.hpp" 16 virtual void draw(sf::RenderTarget& target, sf::RenderStates states = sf::RenderStates())
override;
17 virtual bool update(sf::Vector2f mp,
bool pressLeft,
bool pressRight,
bool aboveHover)
override;
18 virtual void updateArea()
override;
20 void setOrientation(Orientation orientation);
21 void setPositionType(PositionType positionType);
22 bool setSplitPosition(
float splitPosition);
23 void setSplitButtonSize(
float splitButtonSize);
26 const T& getFirst()
const;
28 const T& getSecond()
const;
30 void addToFirst(std::shared_ptr<Element> element);
31 void addToFirst(std::vector<std::shared_ptr<Element>>& elements);
32 void addToFirst(std::vector<std::shared_ptr<Element>>&& elements);
33 void addToSecond(std::shared_ptr<Element> element);
34 void addToSecond(std::vector<std::shared_ptr<Element>>& elements);
35 void addToSecond(std::vector<std::shared_ptr<Element>>&& elements);
36 void setModelFirst(
const std::shared_ptr<PanelModel>& model);
37 void setModelSecond(
const std::shared_ptr<PanelModel>& model);
38 void setSplitPositionLimitFirst(
float value);
39 void setSplitPositionLimitSecond(
float value);
40 void setResizeable(
bool resizeable);
41 void setVisibleSplitButton(
bool visible);
46 float splitButtonSize;
47 float splitPositionLimitFirst;
48 float splitPositionLimitSecond;
49 PositionType positionType;
50 Orientation orientation;
52 sf::FloatRect areaFirst;
53 sf::FloatRect areaSecond;
63 typedef std::shared_ptr<PanelSplitted> PanelSplittedPtr;
64 typedef std::shared_ptr<PanelSplittedScrolled> PanelSplittedScrolledPtr;
Definition: HaveEnabled.hpp:15
Definition: PanelSplitted.hpp:11
Definition: Element.hpp:22