mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 14:47:35 +00:00
GStackWidget: Add a notification hook for when the active widget changes.
This commit is contained in:
parent
8b0953a795
commit
d47432487d
2 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,8 @@ public:
|
|||
GWidget* active_widget() const { return m_active_widget; }
|
||||
void set_active_widget(GWidget*);
|
||||
|
||||
Function<void(GWidget*)> on_active_widget_change;
|
||||
|
||||
virtual const char* class_name() const override { return "GStackWidget"; }
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue