27 static std::shared_ptr<UILayered>
Create(std::weak_ptr<Window> parent_window);
28 void Insert(
const std::shared_ptr<UIWidget>& child);
29 virtual void Clear()
override;
40 UILayered(std::weak_ptr<Window> parent_window);
41 std::list<std::shared_ptr<UIWidget>> children;
42 void RecalculateSize();
43 std::shared_ptr<UIWidget> GetTopChild()
const;
48 #endif // UILAYERED_HPP
Definition: DrawContext.hpp:65
Point2D_< int > Point2D
Definition: Utilities.hpp:35
virtual bool CustomMousePress(bool, MouseButton, Point2D) override
void Insert(const std::shared_ptr< UIWidget > &child)
MouseButton
Definition: Utilities.hpp:190
virtual void Clear() override
static std::shared_ptr< UILayered > Create(std::weak_ptr< Window > parent_window)
virtual void CustomMouseEnter(Point2D) override
virtual void CustomMouseLeave(Point2D) override
virtual void CustomDraw(DrawContext &c) override
virtual void CustomMouseMotion(Point2D p1, Point2D p2) override
Definition: UIContainer.hpp:60
virtual void OnChildVisibilityChanged() override
Definition: Alertable.hpp:26
virtual Point2D GetChildPos(std::shared_ptr< UIWidget >) const override
Definition: UILayered.hpp:38
Definition: UILayered.hpp:25
virtual void OnChildRequestedSizeChanged() override
virtual void CustomResize(Size2D) override
Definition: Utilities.hpp:40