summaryrefslogtreecommitdiff
path: root/Games/Snake/SnakeGame.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-02 15:07:41 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-02 15:15:33 +0100
commitc5bd9d4ed1d80ac91d46146565127b0c185f1b43 (patch)
treeb4ee9ba5999778450f8eb4006df89110617b4a10 /Games/Snake/SnakeGame.h
parent2d39da5405a4527e91e853ddb1e56a539c96c6c1 (diff)
downloadserenity-c5bd9d4ed1d80ac91d46146565127b0c185f1b43.zip
LibGUI: Put all classes in the GUI namespace and remove the leading G
This took me a moment. Welcome to the new world of GUI::Widget! :^)
Diffstat (limited to 'Games/Snake/SnakeGame.h')
-rw-r--r--Games/Snake/SnakeGame.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Games/Snake/SnakeGame.h b/Games/Snake/SnakeGame.h
index 8dbf8f1d84..69df7d5c0e 100644
--- a/Games/Snake/SnakeGame.h
+++ b/Games/Snake/SnakeGame.h
@@ -30,7 +30,7 @@
#include <AK/NonnullRefPtrVector.h>
#include <LibGUI/GWidget.h>
-class SnakeGame : public GWidget {
+class SnakeGame : public GUI::Widget {
C_OBJECT(SnakeGame)
public:
virtual ~SnakeGame() override;
@@ -38,9 +38,9 @@ public:
void reset();
private:
- explicit SnakeGame(GWidget* parent = nullptr);
- virtual void paint_event(GPaintEvent&) override;
- virtual void keydown_event(GKeyEvent&) override;
+ explicit SnakeGame(GUI::Widget* parent = nullptr);
+ virtual void paint_event(GUI::PaintEvent&) override;
+ virtual void keydown_event(GUI::KeyEvent&) override;
virtual void timer_event(Core::TimerEvent&) override;
struct Coordinate {