mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
LibGUI: Add GMenu* and GApplication classes.
This commit is contained in:
parent
8d0bfa62fd
commit
9483b39227
9 changed files with 131 additions and 0 deletions
22
LibGUI/GMenuItem.h
Normal file
22
LibGUI/GMenuItem.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/AKString.h>
|
||||
|
||||
class GMenuItem {
|
||||
public:
|
||||
enum Type { Invalid, Text, Separator };
|
||||
|
||||
explicit GMenuItem(Type);
|
||||
GMenuItem(unsigned identifier, const String& text);
|
||||
~GMenuItem();
|
||||
|
||||
Type type() const { return m_type; }
|
||||
String text() const { return m_text; }
|
||||
unsigned identifier() const { return m_identifier; }
|
||||
|
||||
private:
|
||||
Type m_type { Invalid };
|
||||
unsigned m_identifier { 0 };
|
||||
String m_text;
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue