mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
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