mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
LibGfx: Add FloatSize::to_int_size()
This commit is contained in:
parent
28dcef4757
commit
43951f18e7
1 changed files with 3 additions and 1 deletions
|
@ -110,6 +110,8 @@ public:
|
||||||
|
|
||||||
String to_string() const { return String::format("[%gx%g]", m_width, m_height); }
|
String to_string() const { return String::format("[%gx%g]", m_width, m_height); }
|
||||||
|
|
||||||
|
Size to_int_size() const { return Size(width(), height()); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
float m_width { 0 };
|
float m_width { 0 };
|
||||||
float m_height { 0 };
|
float m_height { 0 };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue