mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
Meta+Userland: Pass Gfx::FloatSize by value
Just two floats like Gfx::FloatPoint.
This commit is contained in:
parent
27fae78335
commit
1574f2c3f6
8 changed files with 21 additions and 21 deletions
|
@ -38,8 +38,8 @@ public:
|
|||
void set_offset(Gfx::FloatPoint);
|
||||
void set_offset(float x, float y) { set_offset({ x, y }); }
|
||||
|
||||
Gfx::FloatSize const& content_size() const { return m_content_size; }
|
||||
void set_content_size(Gfx::FloatSize const&);
|
||||
Gfx::FloatSize content_size() const { return m_content_size; }
|
||||
void set_content_size(Gfx::FloatSize);
|
||||
void set_content_size(float width, float height) { set_content_size({ width, height }); }
|
||||
|
||||
void set_content_width(float width) { set_content_size(width, content_height()); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue