GigaPasjans
Loading...
Searching...
No Matches
Game::MenuEntry Struct Reference

Represents a text-action object. More...

#include <Screen.h>

Collaboration diagram for Game::MenuEntry:

Public Member Functions

 MenuEntry (const WideString &display, const String &id, const std::function< void()> &action)
 
void Register (Andromenda::Surface &surface)
 Registers associated component.
 

Public Attributes

WideString Display
 Display text of an entry.
 
String Id
 Identifier used to register component.
 
Andromenda::SelectionTextComponentComponent
 Component associated with this entry.
 
std::function< void()> Action
 Callback that will be called when user select this entry.
 

Detailed Description

Represents a text-action object.

Member Function Documentation

◆ Register()

void Game::MenuEntry::Register ( Andromenda::Surface & surface)
inline

Registers associated component.

Parameters
surface

The documentation for this struct was generated from the following file: