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 /Games/Solitaire/CardStack.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 'Games/Solitaire/CardStack.cpp')
-rw-r--r-- | Games/Solitaire/CardStack.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Games/Solitaire/CardStack.cpp b/Games/Solitaire/CardStack.cpp index a13fec527b..dfac4b9347 100644 --- a/Games/Solitaire/CardStack.cpp +++ b/Games/Solitaire/CardStack.cpp @@ -36,7 +36,7 @@ CardStack::CardStack() { } -CardStack::CardStack(const Gfx::Point& position, Type type, uint8_t shift_x, uint8_t shift_y, uint8_t step) +CardStack::CardStack(const Gfx::IntPoint& position, Type type, uint8_t shift_x, uint8_t shift_y, uint8_t step) : m_position(position) , m_type(type) , m_shift_x(shift_x) @@ -110,7 +110,7 @@ void CardStack::rebound_cards() card.set_position(m_stack_positions.at(card_index++)); } -void CardStack::add_all_grabbed_cards(const Gfx::Point& click_location, NonnullRefPtrVector<Card>& grabbed) +void CardStack::add_all_grabbed_cards(const Gfx::IntPoint& click_location, NonnullRefPtrVector<Card>& grabbed) { ASSERT(grabbed.is_empty()); @@ -218,7 +218,7 @@ NonnullRefPtr<Card> CardStack::pop() void CardStack::calculate_bounding_box() { - m_bounding_box = Gfx::Rect(m_position, { Card::width, Card::height }); + m_bounding_box = Gfx::IntRect(m_position, { Card::width, Card::height }); if (m_stack.is_empty()) return; |