mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +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
212 changed files with 1144 additions and 1144 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue