summaryrefslogtreecommitdiff
path: root/Applications/KeyboardMapper
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-10 10:57:59 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-10 10:59:04 +0200
commit116cf92156090bb3f5c15d5be145f1283884d65d (patch)
tree4496ab3e8c90add1c40da2eceee71324369ec0c6 /Applications/KeyboardMapper
parent656b01eb0fb659fb2d3ee4e6e4413a82543414e3 (diff)
downloadserenity-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 'Applications/KeyboardMapper')
-rw-r--r--Applications/KeyboardMapper/KeyButton.cpp2
-rw-r--r--Applications/KeyboardMapper/KeyboardMapperWidget.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Applications/KeyboardMapper/KeyButton.cpp b/Applications/KeyboardMapper/KeyButton.cpp
index 78e8195cca..6e1219be81 100644
--- a/Applications/KeyboardMapper/KeyButton.cpp
+++ b/Applications/KeyboardMapper/KeyButton.cpp
@@ -50,7 +50,7 @@ void KeyButton::paint_event(GUI::PaintEvent& event)
painter.fill_rect(content_rect, Color::from_rgb(0x8C7272));
if (!text().is_empty()) {
- Gfx::Rect text_rect { 0, 0, font.width(text()), font.glyph_height() };
+ Gfx::IntRect text_rect { 0, 0, font.width(text()), font.glyph_height() };
text_rect.align_within(content_rect, Gfx::TextAlignment::Center);
auto clipped_rect = rect().intersected(this->rect());
diff --git a/Applications/KeyboardMapper/KeyboardMapperWidget.cpp b/Applications/KeyboardMapper/KeyboardMapperWidget.cpp
index ad3876d2fd..d775c53a4e 100644
--- a/Applications/KeyboardMapper/KeyboardMapperWidget.cpp
+++ b/Applications/KeyboardMapper/KeyboardMapperWidget.cpp
@@ -58,7 +58,7 @@ void KeyboardMapperWidget::create_frame()
m_keys.resize(KEY_COUNT);
for (unsigned i = 0; i < KEY_COUNT; i++) {
- Gfx::Rect rect = { keys[i].x, keys[i].y, keys[i].width, keys[i].height };
+ Gfx::IntRect rect = { keys[i].x, keys[i].y, keys[i].width, keys[i].height };
auto& tmp_button = main_widget.add<KeyButton>();
tmp_button.set_relative_rect(rect);