mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 21:12:26 +00:00
LibGUI: Add Action* accessors on GUI::Button
This commit is contained in:
parent
e7263a7e75
commit
4c6f541d5b
Notes:
sideshowbarker
2024-07-18 19:30:05 +09:00
Author: https://github.com/awesomekling
Commit: 4c6f541d5b
1 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,8 @@ public:
|
||||||
virtual void click(unsigned modifiers = 0) override;
|
virtual void click(unsigned modifiers = 0) override;
|
||||||
virtual void context_menu_event(ContextMenuEvent&) override;
|
virtual void context_menu_event(ContextMenuEvent&) override;
|
||||||
|
|
||||||
|
Action* action() { return m_action; }
|
||||||
|
Action const* action() const { return m_action; }
|
||||||
void set_action(Action&);
|
void set_action(Action&);
|
||||||
|
|
||||||
virtual bool is_uncheckable() const override;
|
virtual bool is_uncheckable() const override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue