Back to index

unity  6.0.0
Enumerations | Functions
unity::impl Namespace Reference

Enumerations

enum  ActionModifiers { NONE = 0, USE_NUMPAD, USE_SHIFT }

Functions

std::string CreateActionString (std::string const &modifiers, char shortcut, ActionModifiers flag)

Enumeration Type Documentation

Enumerator:
NONE 
USE_NUMPAD 
USE_SHIFT 

Definition at line 30 of file UnityshellPrivate.h.


Function Documentation

std::string unity::impl::CreateActionString ( std::string const &  modifiers,
char  shortcut,
ActionModifiers  flag 
)

Definition at line 27 of file UnityshellPrivate.cpp.

{
  std::string ret(modifiers);

  if (flag == ActionModifiers::USE_SHIFT)
    ret += "<Shift>";
  else if (flag == ActionModifiers::USE_NUMPAD)
    ret += "KP_";

  ret += shortcut;

  return ret;
}

Here is the caller graph for this function: