1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 19:05:08 +00:00

Minesweeper: Start working on a simple minesweeper game. :^)

This commit is contained in:
Andreas Kling 2019-04-13 03:08:16 +02:00
parent c06a3bdeb4
commit a90e218c71
17 changed files with 288 additions and 1 deletions

View file

@ -41,7 +41,7 @@ public:
virtual const char* class_name() const override { return "GButton"; }
private:
protected:
virtual void paint_event(GPaintEvent&) override;
virtual void mousedown_event(GMouseEvent&) override;
virtual void mouseup_event(GMouseEvent&) override;
@ -49,6 +49,7 @@ private:
virtual void enter_event(CEvent&) override;
virtual void leave_event(CEvent&) override;
private:
String m_caption;
RetainPtr<GraphicsBitmap> m_icon;
ButtonStyle m_button_style { ButtonStyle::Normal };