mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
Add API's and plumbing for WindowServer clients to make menus.
This commit is contained in:
parent
bb31d961b4
commit
133706d697
Notes:
sideshowbarker
2024-07-19 15:46:57 +09:00
Author: https://github.com/awesomekling
Commit: 133706d697
17 changed files with 322 additions and 24 deletions
|
@ -8,7 +8,7 @@ public:
|
|||
WSMenuBar();
|
||||
~WSMenuBar();
|
||||
|
||||
void add_menu(OwnPtr<WSMenu>&& menu) { m_menus.append(move(menu)); }
|
||||
void add_menu(WSMenu* menu) { m_menus.append(menu); }
|
||||
|
||||
template<typename Callback>
|
||||
void for_each_menu(Callback callback)
|
||||
|
@ -20,5 +20,5 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
Vector<OwnPtr<WSMenu>> m_menus;
|
||||
Vector<WSMenu*> m_menus;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue