mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize
This fits nicer with FloatRect,FloatPoint,FloatSize and gives a much better visual clue about what type of metric is being used.
This commit is contained in:
parent
656b01eb0f
commit
116cf92156
212 changed files with 1144 additions and 1144 deletions
|
@ -41,7 +41,7 @@ public:
|
|||
, m_height(h)
|
||||
{
|
||||
}
|
||||
explicit FloatSize(const Size& other)
|
||||
explicit FloatSize(const IntSize& other)
|
||||
: m_width(other.width())
|
||||
, m_height(other.height())
|
||||
{
|
||||
|
@ -110,7 +110,7 @@ public:
|
|||
|
||||
String to_string() const { return String::format("[%gx%g]", m_width, m_height); }
|
||||
|
||||
Size to_int_size() const { return Size(width(), height()); }
|
||||
IntSize to_int_size() const { return IntSize(width(), height()); }
|
||||
|
||||
private:
|
||||
float m_width { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue