mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 14:45:08 +00:00
LibGfx: Unpublish FloatSize from the global namespace
This commit is contained in:
parent
8505d8d15d
commit
5c2028db24
3 changed files with 2 additions and 4 deletions
|
@ -115,5 +115,3 @@ inline const LogStream& operator<<(const LogStream& stream, const FloatSize& val
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
using Gfx::FloatSize;
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ public:
|
||||||
float y() const { return rect().y(); }
|
float y() const { return rect().y(); }
|
||||||
float width() const { return rect().width(); }
|
float width() const { return rect().width(); }
|
||||||
float height() const { return rect().height(); }
|
float height() const { return rect().height(); }
|
||||||
FloatSize size() const { return rect().size(); }
|
Gfx::FloatSize size() const { return rect().size(); }
|
||||||
FloatPoint position() const { return rect().location(); }
|
FloatPoint position() const { return rect().location(); }
|
||||||
|
|
||||||
virtual HitTestResult hit_test(const Gfx::Point& position) const override;
|
virtual HitTestResult hit_test(const Gfx::Point& position) const override;
|
||||||
|
|
|
@ -43,7 +43,7 @@ LayoutWidget::~LayoutWidget()
|
||||||
|
|
||||||
void LayoutWidget::layout()
|
void LayoutWidget::layout()
|
||||||
{
|
{
|
||||||
rect().set_size(FloatSize(widget().width(), widget().height()));
|
rect().set_size(widget().width(), widget().height());
|
||||||
LayoutReplaced::layout();
|
LayoutReplaced::layout();
|
||||||
widget().move_to(rect().x(), rect().y());
|
widget().move_to(rect().x(), rect().y());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue