mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +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
|
@ -69,21 +69,21 @@ private:
|
|||
|
||||
struct Gadget {
|
||||
size_t layer_index { 0 };
|
||||
Gfx::Rect rect;
|
||||
Gfx::Rect temporary_rect_during_move;
|
||||
Gfx::IntRect rect;
|
||||
Gfx::IntRect temporary_rect_during_move;
|
||||
bool is_moving { false };
|
||||
Gfx::Point movement_delta;
|
||||
Gfx::IntPoint movement_delta;
|
||||
};
|
||||
|
||||
bool is_moving_gadget() const { return m_moving_gadget_index.has_value(); }
|
||||
|
||||
Optional<size_t> gadget_at(const Gfx::Point&);
|
||||
Optional<size_t> gadget_at(const Gfx::IntPoint&);
|
||||
|
||||
Vector<Gadget> m_gadgets;
|
||||
RefPtr<Image> m_image;
|
||||
|
||||
Optional<size_t> m_moving_gadget_index;
|
||||
Gfx::Point m_moving_event_origin;
|
||||
Gfx::IntPoint m_moving_event_origin;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue