ladybird/WindowServer/WSMenuItem.cpp
Andreas Kling 145aa27b8f 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.
2019-02-11 10:55:02 +01:00

17 lines
251 B
C++

#include "WSMenuItem.h"
WSMenuItem::WSMenuItem(unsigned identifier, const String& text)
: m_type(Text)
, m_identifier(identifier)
, m_text(text)
{
}
WSMenuItem::WSMenuItem(Type type)
: m_type(type)
{
}
WSMenuItem::~WSMenuItem()
{
}