diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/Button.h')
-rw-r--r-- | Userland/Libraries/LibGUI/Button.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/Button.h b/Userland/Libraries/LibGUI/Button.h index 54c79772ec..20472c90b4 100644 --- a/Userland/Libraries/LibGUI/Button.h +++ b/Userland/Libraries/LibGUI/Button.h @@ -48,6 +48,11 @@ public: void set_menu(RefPtr<GUI::Menu>); + bool is_default() const; + void set_default(bool); + + bool another_button_has_focus() const { return m_another_button_has_focus; } + protected: explicit Button(String text = {}); virtual void mousedown_event(MouseEvent&) override; @@ -61,6 +66,7 @@ private: Gfx::TextAlignment m_text_alignment { Gfx::TextAlignment::Center }; WeakPtr<Action> m_action; int m_icon_spacing { 4 }; + bool m_another_button_has_focus { false }; }; } |