1 #ifndef UIMARGINBOX_HPP
2 #define UIMARGINBOX_HPP
27 static std::shared_ptr<UIMarginBox>
Create(std::weak_ptr<Window> parent_window,
int top,
int right,
int bottom,
int left);
32 virtual void Insert(std::shared_ptr<UIWidget>)
override;
40 UIMarginBox(std::weak_ptr<Window> parent_window,
int top,
int right,
int bottom,
int left);
42 inline bool IsInside(
Point2D)
const;
43 int top, right, bottom, left;
48 #endif // UIMARGINBOX_HPP
UIMarginBox(std::weak_ptr< Window > parent_window, int top, int right, int bottom, int left)
virtual void OnChildRequestedSizeChanged() override
virtual Point2D GetChildPos() const override
Definition: UIMarginBox.hpp:37
virtual void CustomMouseLeave(Point2D) override
Definition: UIContainer.hpp:27
Definition: DrawContext.hpp:65
static std::shared_ptr< UIMarginBox > Create(std::weak_ptr< Window > parent_window, int top, int right, int bottom, int left)
Point2D_< int > Point2D
Definition: Utilities.hpp:35
MouseButton
Definition: Utilities.hpp:190
virtual void RemoveChild() override
virtual void OnChildVisibilityChanged() override
virtual void CustomResize(Size2D s) override
Definition: Alertable.hpp:26
virtual void Insert(std::shared_ptr< UIWidget >) override
virtual void CustomMouseMotion(Point2D, Point2D) override
Definition: UIMarginBox.hpp:25
virtual void CustomMouseEnter(Point2D) override
virtual bool CustomMousePress(bool down, MouseButton b, Point2D) override
virtual void CustomDraw(DrawContext &c) override
Definition: Utilities.hpp:40