mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:37:45 +00:00
LibGfx: Implement Rect resizing around a fixed point
This commit is contained in:
parent
6a552f0b93
commit
e8997e1de9
2 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue