mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
Make buttons pressable.
This commit is contained in:
parent
5412dac05d
commit
0dcdbe3e03
2 changed files with 40 additions and 13 deletions
|
@ -14,9 +14,11 @@ public:
|
|||
private:
|
||||
virtual void onPaint(PaintEvent&) override;
|
||||
virtual void onMouseDown(MouseEvent&) override;
|
||||
virtual void onMouseUp(MouseEvent&) override;
|
||||
|
||||
virtual const char* className() const override { return "Button"; }
|
||||
|
||||
String m_caption;
|
||||
bool m_beingPressed { false };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue