Tramway SDK
Public Member Functions | Static Public Member Functions | List of all members
tram::Ext::Menu::Menu Class Referenceabstract

#include <menu.h>

Inheritance diagram for tram::Ext::Menu::Menu:
tram::Ext::Kitchensink::KitchensinkMenuList tram::Ext::Kitchensink::ListDialog tram::Ext::Kitchensink::ListInventory tram::Ext::Kitchensink::ListTrade tram::Ext::Kitchensink::QuestList tram::Ext::Menu::Console tram::Ext::Menu::DebugMenu tram::Ext::Menu::EntityPicker tram::Ext::Menu::EntityProperties tram::Ext::Menu::EventEmit tram::Ext::Menu::InterceptMenu tram::Ext::Menu::ListSelection tram::Ext::Menu::MessageSend tram::Ext::Menu::Options tram::Ext::Menu::SettingsMenu tram::Ext::Menu::SignalMenu tram::Ext::Menu::StatisticsMenu tram::Ext::Menu::SystemMenu tram::Ext::Menu::WorldCellProperties

Public Member Functions

virtual void Display ()=0
 
virtual uint32_t Layer ()=0
 
virtual ~Menu ()=default
 

Static Public Member Functions

static void Push (Menu *)
 Pushes menu on the menu stack. More...
 
static bool Pop ()
 Pops the topmost menu from the stack. More...
 
static bool Empty ()
 Checks whether the menu stack is empty. More...
 
static void Clear ()
 Clears the menu stack. More...
 
static void Add (Menu *)
 
static void Remove (Menu *)
 

Constructor & Destructor Documentation

◆ ~Menu()

virtual tram::Ext::Menu::Menu::~Menu ( )
virtualdefault

Member Function Documentation

◆ Add()

void tram::Ext::Menu::Menu::Add ( Menu menu)
static

◆ Clear()

void tram::Ext::Menu::Menu::Clear ( )
static

Clears the menu stack.

This will behave as if Menu::Pop() was called until the menu stack was empty.

Note
All of the menus in the stack will be deleteed.

◆ Display()

virtual void tram::Ext::Menu::Menu::Display ( )
pure virtual

◆ Empty()

bool tram::Ext::Menu::Menu::Empty ( )
static

Checks whether the menu stack is empty.

Returns
True if it is empty.

◆ Layer()

virtual uint32_t tram::Ext::Menu::Menu::Layer ( )
pure virtual

◆ Pop()

bool tram::Ext::Menu::Menu::Pop ( )
static

Pops the topmost menu from the stack.

Note
The menu will be deleted after removing it from the stack.
Returns
True if a menu was popped, false if stack was empty.

◆ Push()

void tram::Ext::Menu::Menu::Push ( Menu menu)
static

Pushes menu on the menu stack.

◆ Remove()

void tram::Ext::Menu::Menu::Remove ( Menu menu)
static

The documentation for this class was generated from the following files: