summaryrefslogtreecommitdiff
path: root/LibGUI/GWidget.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-10 16:56:55 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-10 16:56:55 +0200
commitb8062f69d86e0dee9990cbffe627091faf7cc0ba (patch)
tree558d8ebbc5a2fdb6b6eea955b272c24b675cad06 /LibGUI/GWidget.h
parent696ada2810948ff6df7ef286ba5346c1d82c1d8c (diff)
downloadserenity-b8062f69d86e0dee9990cbffe627091faf7cc0ba.zip
LibCore: Add CEvent and make LibGUI/GEvent inherit from it.
Diffstat (limited to 'LibGUI/GWidget.h')
-rw-r--r--LibGUI/GWidget.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/LibGUI/GWidget.h b/LibGUI/GWidget.h
index 8b441b005c..2b6c652f25 100644
--- a/LibGUI/GWidget.h
+++ b/LibGUI/GWidget.h
@@ -38,7 +38,7 @@ public:
String tooltip() const { return m_tooltip; }
void set_tooltip(const String& tooltip) { m_tooltip = tooltip; }
- virtual void event(GEvent&) override;
+ virtual void event(CEvent&) override;
virtual void paint_event(GPaintEvent&);
virtual void resize_event(GResizeEvent&);
virtual void show_event(GShowEvent&);
@@ -50,11 +50,11 @@ public:
virtual void mouseup_event(GMouseEvent&);
virtual void click_event(GMouseEvent&);
virtual void doubleclick_event(GMouseEvent&);
- virtual void focusin_event(GEvent&);
- virtual void focusout_event(GEvent&);
- virtual void enter_event(GEvent&);
- virtual void leave_event(GEvent&);
- virtual void child_event(GChildEvent&) override;
+ virtual void focusin_event(CEvent&);
+ virtual void focusout_event(CEvent&);
+ virtual void enter_event(CEvent&);
+ virtual void leave_event(CEvent&);
+ virtual void child_event(CChildEvent&) override;
Rect relative_rect() const { return m_relative_rect; }
Point relative_position() const { return m_relative_rect.location(); }
@@ -154,8 +154,8 @@ private:
void handle_resize_event(GResizeEvent&);
void handle_mousedown_event(GMouseEvent&);
void handle_mouseup_event(GMouseEvent&);
- void handle_enter_event(GEvent&);
- void handle_leave_event(GEvent&);
+ void handle_enter_event(CEvent&);
+ void handle_leave_event(CEvent&);
void do_layout();
GWindow* m_window { nullptr };