mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 23:56:06 +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
Notes:
sideshowbarker
2024-07-19 05:43:51 +09:00
Author: https://github.com/awesomekling
Commit: 116cf92156
212 changed files with 1144 additions and 1144 deletions
|
@ -65,7 +65,7 @@ TaskbarWindow::TaskbarWindow()
|
|||
|
||||
on_screen_rect_change(GUI::Desktop::the().rect());
|
||||
|
||||
GUI::Desktop::the().on_rect_change = [this](const Gfx::Rect& rect) { on_screen_rect_change(rect); };
|
||||
GUI::Desktop::the().on_rect_change = [this](const Gfx::IntRect& rect) { on_screen_rect_change(rect); };
|
||||
|
||||
auto& widget = set_main_widget<TaskbarWidget>();
|
||||
widget.set_layout<GUI::HorizontalBoxLayout>();
|
||||
|
@ -140,9 +140,9 @@ void TaskbarWindow::create_quick_launch_bar()
|
|||
quick_launch_bar.set_preferred_size(total_width, 22);
|
||||
}
|
||||
|
||||
void TaskbarWindow::on_screen_rect_change(const Gfx::Rect& rect)
|
||||
void TaskbarWindow::on_screen_rect_change(const Gfx::IntRect& rect)
|
||||
{
|
||||
Gfx::Rect new_rect { rect.x(), rect.bottom() - taskbar_height() + 1, rect.width(), taskbar_height() };
|
||||
Gfx::IntRect new_rect { rect.x(), rect.bottom() - taskbar_height() + 1, rect.width(), taskbar_height() };
|
||||
set_rect(new_rect);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue