mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:38:13 +00:00
LibGfx+WindowServer: Remove set_size_around() from Rect and Window
Superceded by to_floating_cursor_position() as a more accurate way to reposition windows on untile. Effectively made set_size_around() dead code, so the remnants can be removed.
This commit is contained in:
parent
a1dceb5b97
commit
68570e897d
4 changed files with 7 additions and 32 deletions
|
@ -309,16 +309,6 @@ void Rect<T>::align_within(Rect<T> const& other, TextAlignment alignment)
|
|||
}
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void Rect<T>::set_size_around(Size<T> const& new_size, Point<T> const& fixed_point)
|
||||
{
|
||||
const T new_x = fixed_point.x() - (T)(new_size.width() * ((float)(fixed_point.x() - x()) / width()));
|
||||
const T new_y = fixed_point.y() - (T)(new_size.height() * ((float)(fixed_point.y() - y()) / height()));
|
||||
|
||||
set_location({ new_x, new_y });
|
||||
set_size(new_size);
|
||||
}
|
||||
|
||||
template<>
|
||||
String IntRect::to_string() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue