mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 18:35:09 +00:00
LibGfx: Unpublish Gfx::Size from the global namespace
This commit is contained in:
parent
9b87843af1
commit
f8b00aa290
29 changed files with 41 additions and 43 deletions
|
@ -124,7 +124,7 @@ public:
|
|||
void set_size_policy(SizePolicy horizontal_policy, SizePolicy vertical_policy);
|
||||
void set_size_policy(Orientation, SizePolicy);
|
||||
|
||||
Size preferred_size() const { return m_preferred_size; }
|
||||
Gfx::Size preferred_size() const { return m_preferred_size; }
|
||||
void set_preferred_size(const Gfx::Size&);
|
||||
void set_preferred_size(int width, int height) { set_preferred_size({ width, height }); }
|
||||
|
||||
|
@ -156,7 +156,7 @@ public:
|
|||
int length(Orientation orientation) const { return orientation == Orientation::Vertical ? height() : width(); }
|
||||
|
||||
Gfx::Rect rect() const { return { 0, 0, width(), height() }; }
|
||||
Size size() const { return m_relative_rect.size(); }
|
||||
Gfx::Size size() const { return m_relative_rect.size(); }
|
||||
|
||||
void update();
|
||||
void update(const Gfx::Rect&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue