diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-10 10:57:59 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-10 10:59:04 +0200 |
commit | 116cf92156090bb3f5c15d5be145f1283884d65d (patch) | |
tree | 4496ab3e8c90add1c40da2eceee71324369ec0c6 /Libraries/LibGUI/BoxLayout.cpp | |
parent | 656b01eb0fb659fb2d3ee4e6e4413a82543414e3 (diff) | |
download | serenity-116cf92156090bb3f5c15d5be145f1283884d65d.zip |
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.
Diffstat (limited to 'Libraries/LibGUI/BoxLayout.cpp')
-rw-r--r-- | Libraries/LibGUI/BoxLayout.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Libraries/LibGUI/BoxLayout.cpp b/Libraries/LibGUI/BoxLayout.cpp index 5d48fd2dd5..ce49657a1f 100644 --- a/Libraries/LibGUI/BoxLayout.cpp +++ b/Libraries/LibGUI/BoxLayout.cpp @@ -51,7 +51,7 @@ void BoxLayout::run(Widget& widget) if (m_entries.is_empty()) return; - Gfx::Size available_size = widget.size(); + Gfx::IntSize available_size = widget.size(); int number_of_entries_with_fixed_size = 0; int number_of_visible_entries = 0; @@ -99,8 +99,8 @@ void BoxLayout::run(Widget& widget) if (should_log) dbgprintf("BoxLayout: available_size=%s, fixed=%d, fill=%d\n", available_size.to_string().characters(), number_of_entries_with_fixed_size, number_of_entries_with_automatic_size); - Gfx::Size automatic_size; - Gfx::Size automatic_size_for_last_entry; + Gfx::IntSize automatic_size; + Gfx::IntSize automatic_size_for_last_entry; if (number_of_entries_with_automatic_size) { if (m_orientation == Orientation::Horizontal) { @@ -135,7 +135,7 @@ void BoxLayout::run(Widget& widget) continue; if (!entry.widget->is_visible()) continue; - Gfx::Rect rect(current_x, current_y, 0, 0); + Gfx::IntRect rect(current_x, current_y, 0, 0); if (entry.layout) { // FIXME: Implement recursive layout. ASSERT_NOT_REACHED(); |