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

Copyright (c) Theophilus Eriata. All Rights Reserved. More...

#include <ActionMapManager.h>

Static Public Member Functions

static void RegisterActionMap (xiiStringView sMapping, xiiStringView sParentMapping={})
static void UnregisterActionMap (xiiStringView sMapping)
 Deletes the action map with the given name. Asserts, if no such map exists.
static xiiActionMap * GetActionMap (xiiStringView sMapping)
 Returns the action map with the given name, or nullptr, if it doesn't exist.

Detailed Description

Copyright (c) Theophilus Eriata. All Rights Reserved.

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:
  • /home/runner/work/XII/XII/Source/Tools/Libs/GuiFoundation/Action/ActionMapManager.h
  • /home/runner/work/XII/XII/Source/Editor/EditorFramework/EditorApp/Implementation/Startup.cpp
  • /home/runner/work/XII/XII/Source/Tools/Libs/GuiFoundation/Action/Implementation/ActionMapManager.cpp