1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:57:45 +00:00

LibGfx: Implement Rect resizing around a fixed point

This commit is contained in:
Ben Wiederhake 2021-01-23 01:16:06 +01:00 committed by Andreas Kling
parent 6a552f0b93
commit e8997e1de9
2 changed files with 12 additions and 0 deletions

View file

@ -114,6 +114,8 @@ public:
m_size = size;
}
void set_size_around(const Size<T>&, const Point<T>& fixed_point);
void set_size(T width, T height)
{
m_size.set_width(width);