mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibGUI: Convert custom widgets and subclasses to ObjectPtr
This commit is contained in:
parent
15a66dc8ab
commit
defafd72bc
30 changed files with 57 additions and 47 deletions
|
@ -5,13 +5,14 @@
|
|||
#include <LibGUI/GWidget.h>
|
||||
|
||||
class SnakeGame : public GWidget {
|
||||
C_OBJECT(SnakeGame)
|
||||
public:
|
||||
explicit SnakeGame(GWidget* parent = nullptr);
|
||||
virtual ~SnakeGame() override;
|
||||
|
||||
void reset();
|
||||
|
||||
private:
|
||||
explicit SnakeGame(GWidget* parent = nullptr);
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
virtual void keydown_event(GKeyEvent&) override;
|
||||
virtual void timer_event(CTimerEvent&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue