XII Release 0.1.0
Loading...
Searching...
No Matches
xiiActionMapManager Class Reference

A central place for creating and retrieving action maps. More...

#include <ActionMapManager.h>

Static Public Member Functions

static void RegisterActionMap (xiiStringView sMapping, xiiStringView sParentMapping={})
 Adds a new action map with the given name and an optional inherited parent mapping. Asserts if the name was already used before.
 
static void UnregisterActionMap (xiiStringView sMapping)
 Deletes the action map with the given name. Asserts, if no such map exists.
 
static xiiActionMapGetActionMap (xiiStringView sMapping)
 Returns the action map with the given name, or nullptr, if it doesn't exist.
 

Detailed Description

A central place for creating and retrieving action maps.

Member Function Documentation

◆ RegisterActionMap()

void xiiActionMapManager::RegisterActionMap ( xiiStringView sMapping,
xiiStringView sParentMapping = {} )
static
Initial value:
{
const char* szMenuBar = "AssetMenuBar"

Adds a new action map with the given name and an optional inherited parent mapping. Asserts if the name was already used before.

Parameters
sMappingName of the new mapping. This string has to be used when adding actions to the map.
sParentMappingIf set, the new mapping will inherit all actions of this mapping. The name must exist and resolve to a valid mapping once xiiActionMap::BuildActionTree is called to generate the action tree.

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