1 #ifndef UICONTAINER_HPP
2 #define UICONTAINER_HPP
29 virtual void Insert(std::shared_ptr<UIWidget>) {};
34 child->OnFocusChanged(
true);
54 std::shared_ptr<UIWidget>
child;
66 virtual void Clear() = 0;
75 if(old_focused_child && old_focused_child != w) old_focused_child->OnFocusChanged(
false);
106 #endif // UICONTAINER_HPP
std::shared_ptr< UIWidget > focused_child
Definition: UIContainer.hpp:101
Definition: UIContainer.hpp:27
virtual Point2D GetChildPos() const =0
bool child_is_focused
Definition: UIContainer.hpp:55
virtual void OnChildFocusRequested(std::shared_ptr< UIWidget > w) override
Definition: UIContainer.hpp:68
virtual void OnFocusChanged(bool has_focus) override
Definition: UIContainer.hpp:92
virtual void OnFocusChanged(bool has_focus) override
Definition: UIContainer.hpp:49
std::shared_ptr< UIWidget > child
Definition: UIContainer.hpp:54
virtual std::shared_ptr< UIWidget > CustomFindChild(ID id) const override
Definition: UIContainer.hpp:32
virtual bool OnChildFocusTested(std::shared_ptr< const UIWidget >) override
Definition: UIContainer.hpp:43
Definition: Utilities.hpp:34
virtual void Insert(std::shared_ptr< UIWidget >)
Definition: UIContainer.hpp:29
virtual void RequestFocus() override
Definition: UIContainer.hpp:81
UIContainerMultiple(std::weak_ptr< Window > parent_window)
Definition: UIContainer.hpp:96
Definition: UIContainer.hpp:60
virtual void OnKeyboard(KeyData k) override
Definition: UIContainer.hpp:46
Definition: Alertable.hpp:26
virtual void OnChildFocusRequested(std::shared_ptr< UIWidget >) override
Definition: UIContainer.hpp:33
virtual void OnKeyboard(KeyData k) override
Definition: UIContainer.hpp:89
virtual bool OnChildFocusTested(std::shared_ptr< const UIWidget > w) override
Definition: UIContainer.hpp:86
virtual Point2D GetChildPos(std::shared_ptr< UIWidget >) const =0
virtual void RequestFocus() override
Definition: UIContainer.hpp:38
virtual void RemoveChild()
Definition: UIContainer.hpp:31
UIContainerSingle(std::weak_ptr< Window > parent_window)
Definition: UIContainer.hpp:53
Definition: Utilities.hpp:157