Class HotkeyManagerHelper
Inheritance
HotkeyManagerHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class HotkeyManagerHelper
Methods
AddShortcut(ComWrapper<ICamApiHotkeyManager>, ComWrapper<ICamApiHotkey>)
Declaration
public static void AddShortcut(this ComWrapper<ICamApiHotkeyManager> managerCom, ComWrapper<ICamApiHotkey> hotkeyCom)
Parameters
Count(ComWrapper<ICamApiHotkeyManager>)
Number of registered hotkeys (plugin plus reserved native).
Declaration
public static int Count(this ComWrapper<ICamApiHotkeyManager> managerCom)
Parameters
Returns
CreateHotkey(ComWrapper<ICamApiHotkeyManager>, string)
Declaration
public static ComWrapper<ICamApiHotkey> CreateHotkey(this ComWrapper<ICamApiHotkeyManager> managerCom, string shortcut)
Parameters
Returns
EnumerateShortcuts(ComWrapper<ICamApiHotkeyManager>)
Enumerate the (normalized) shortcut text of every registered hotkey.
Declaration
public static IEnumerable<string> EnumerateShortcuts(this ComWrapper<ICamApiHotkeyManager> managerCom)
Parameters
Returns
FindByShortcut(ComWrapper<ICamApiHotkeyManager>, string)
Hotkey occupying the given shortcut (plugin or reserved native). The returned wrapper
is IsNull when the shortcut is free.
Declaration
public static ComWrapper<ICamApiHotkey> FindByShortcut(this ComWrapper<ICamApiHotkeyManager> managerCom, string shortcut)
Parameters
Returns
GetHotkey(ComWrapper<ICamApiHotkeyManager>, int)
Registered hotkey at the given index (0..Count-1).
Declaration
public static ComWrapper<ICamApiHotkey> GetHotkey(this ComWrapper<ICamApiHotkeyManager> managerCom, int index)
Parameters
Returns
RemoveShortcut(ComWrapper<ICamApiHotkeyManager>, string)
Remove a previously added plugin hotkey by its shortcut. Throws for a reserved shortcut.
Declaration
public static void RemoveShortcut(this ComWrapper<ICamApiHotkeyManager> managerCom, string shortcut)
Parameters