mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-29 20:59:00 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
Notes:
sideshowbarker
2024-07-17 16:21:09 +09:00
Author: https://github.com/IdanHo
Commit: 086969277e
Pull-request: https://github.com/SerenityOS/serenity/pull/12321
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/bgianfo ✅
1665 changed files with 8479 additions and 8479 deletions
|
@ -88,7 +88,7 @@ private:
|
|||
|
||||
class MouseEvent final : public Event {
|
||||
public:
|
||||
MouseEvent(Type type, const Gfx::IntPoint& position, unsigned buttons, MouseButton button, unsigned modifiers, int wheel_delta_x = 0, int wheel_delta_y = 0, int wheel_raw_delta_x = 0, int wheel_raw_delta_y = 0)
|
||||
MouseEvent(Type type, Gfx::IntPoint const& position, unsigned buttons, MouseButton button, unsigned modifiers, int wheel_delta_x = 0, int wheel_delta_y = 0, int wheel_raw_delta_x = 0, int wheel_raw_delta_y = 0)
|
||||
: Event(type)
|
||||
, m_position(position)
|
||||
, m_buttons(buttons)
|
||||
|
@ -101,7 +101,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
const Gfx::IntPoint& position() const { return m_position; }
|
||||
Gfx::IntPoint const& position() const { return m_position; }
|
||||
int x() const { return m_position.x(); }
|
||||
int y() const { return m_position.y(); }
|
||||
MouseButton button() const { return m_button; }
|
||||
|
@ -121,7 +121,7 @@ public:
|
|||
}
|
||||
|
||||
void set_drag(bool b) { m_drag = b; }
|
||||
void set_mime_data(const Core::MimeData& mime_data) { m_mime_data = mime_data; }
|
||||
void set_mime_data(Core::MimeData const& mime_data) { m_mime_data = mime_data; }
|
||||
|
||||
MouseEvent translated(Gfx::IntPoint const& delta) const
|
||||
{
|
||||
|
@ -145,13 +145,13 @@ private:
|
|||
|
||||
class ResizeEvent final : public Event {
|
||||
public:
|
||||
ResizeEvent(const Gfx::IntRect& rect)
|
||||
ResizeEvent(Gfx::IntRect const& rect)
|
||||
: Event(Event::WindowResized)
|
||||
, m_rect(rect)
|
||||
{
|
||||
}
|
||||
|
||||
const Gfx::IntRect& rect() const { return m_rect; }
|
||||
Gfx::IntRect const& rect() const { return m_rect; }
|
||||
|
||||
private:
|
||||
Gfx::IntRect m_rect;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue