mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
Meta+Userland: Pass Gfx::IntPoint by value
This is just two ints or 8 bytes or the size of the reference on x86_64 or AArch64.
This commit is contained in:
parent
bbc149ebb9
commit
7be0b27dd3
161 changed files with 442 additions and 441 deletions
|
@ -21,21 +21,21 @@ public:
|
|||
void set_scale_bounds(float min_scale, float max_scale);
|
||||
|
||||
void scale_by(float amount);
|
||||
void scale_centered(float new_scale, Gfx::IntPoint const& center);
|
||||
void scale_centered(float new_scale, Gfx::IntPoint center);
|
||||
|
||||
bool is_panning() const { return m_is_panning; }
|
||||
void start_panning(Gfx::IntPoint const& position);
|
||||
void start_panning(Gfx::IntPoint position);
|
||||
void stop_panning();
|
||||
|
||||
void pan_to(Gfx::IntPoint const& position);
|
||||
void pan_to(Gfx::IntPoint position);
|
||||
|
||||
// Should be overridden by derived classes if they want updates.
|
||||
virtual void handle_relayout(Gfx::IntRect const&) { update(); }
|
||||
void relayout();
|
||||
|
||||
Gfx::FloatPoint frame_to_content_position(Gfx::IntPoint const& frame_position) const;
|
||||
Gfx::FloatPoint frame_to_content_position(Gfx::IntPoint frame_position) const;
|
||||
Gfx::FloatRect frame_to_content_rect(Gfx::IntRect const& frame_rect) const;
|
||||
Gfx::FloatPoint content_to_frame_position(Gfx::IntPoint const& content_position) const;
|
||||
Gfx::FloatPoint content_to_frame_position(Gfx::IntPoint content_position) const;
|
||||
Gfx::FloatRect content_to_frame_rect(Gfx::IntRect const& content_rect) const;
|
||||
|
||||
virtual void mousewheel_event(GUI::MouseEvent& event) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue