mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:28:11 +00:00
WindowServer: Give menu items an identifier field and add a simple callback.
Eventually these identifiers will be sent to the userspace client who created the menu. None of that is hooked up yet though.
This commit is contained in:
parent
78fc7a9ef2
commit
145aa27b8f
5 changed files with 41 additions and 9 deletions
|
@ -57,7 +57,11 @@ public:
|
|||
WSMenuItem* item_at(const Point&);
|
||||
void redraw();
|
||||
|
||||
Function<void(WSMenuItem&)> on_item_activation;
|
||||
|
||||
private:
|
||||
void did_activate(WSMenuItem&);
|
||||
|
||||
String m_name;
|
||||
Rect m_rect_in_menubar;
|
||||
Rect m_text_rect_in_menubar;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue