mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +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
Notes:
sideshowbarker
2024-07-19 15:47:37 +09:00
Author: https://github.com/awesomekling
Commit: 145aa27b8f
5 changed files with 41 additions and 9 deletions
|
@ -1,7 +1,8 @@
|
|||
#include "WSMenuItem.h"
|
||||
|
||||
WSMenuItem::WSMenuItem(const String& text)
|
||||
WSMenuItem::WSMenuItem(unsigned identifier, const String& text)
|
||||
: m_type(Text)
|
||||
, m_identifier(identifier)
|
||||
, m_text(text)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue