mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
guitest2: Add a simple launcher so I can easily spawn more Terminals.
Also update GButton coding style.
This commit is contained in:
parent
3271c115e2
commit
6c4f1bad09
3 changed files with 45 additions and 12 deletions
|
@ -10,9 +10,9 @@ public:
|
|||
virtual ~GButton() override;
|
||||
|
||||
String caption() const { return m_caption; }
|
||||
void setCaption(String&&);
|
||||
void set_caption(String&&);
|
||||
|
||||
Function<void(GButton&)> onClick;
|
||||
Function<void(GButton&)> on_click;
|
||||
|
||||
private:
|
||||
virtual void paintEvent(GPaintEvent&) override;
|
||||
|
@ -22,6 +22,6 @@ private:
|
|||
virtual const char* class_name() const override { return "GButton"; }
|
||||
|
||||
String m_caption;
|
||||
bool m_beingPressed { false };
|
||||
bool m_being_pressed { false };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue