Volume Control
Application-specific hotkeys for Windows
|
Contains the JSON object representation of a Hotkey instance. More...
Public Member Functions | |
JsonHotkey (IHotkey hotkey) | |
Creates a new JsonHotkey instance using the specified hotkey . More... | |
JsonHotkey () | |
Creates a new JsonHotkey instance with default values. More... | |
THotkey | CreateInstance< THotkey > (HotkeyActionManager actionManager, bool deferRegistration=false) |
Creates a new THotkey instance from this JsonHotkey struct, using the specified actionManager to resolve the ActionIdentifier. More... | |
Properties | |
string | Name = string.Empty [get, set] |
EFriendlyKey | Key = EFriendlyKey.None [get, set] |
EModifierKey | Modifiers = EModifierKey.None [get, set] |
bool | IsRegistered = false [get, set] |
string? | ActionIdentifier = null [get, set] |
Gets or sets the Identifier string of this hotkey's action. More... | |
Dictionary< string, JsonActionSettingValue >? | ActionSettings = null [get, set] |
Gets or sets the action settings dictionary containing the action settings for this hotkey's action. More... | |
Contains the JSON object representation of a Hotkey instance.
VolumeControl.Core.Input.Json.JsonHotkey.JsonHotkey | ( | IHotkey | hotkey | ) |
Creates a new JsonHotkey instance using the specified hotkey .
hotkey | An IHotkey instance to copy the values of. |
References VolumeControl.Core.Input.IHotkey.Action, VolumeControl.Core.Input.Json.JsonHotkey.ActionIdentifier, VolumeControl.Core.Input.Actions.HotkeyActionInstance.ActionSettings, VolumeControl.Core.Input.Json.JsonHotkey.ActionSettings, VolumeControl.Core.Input.Actions.HotkeyActionInstance.Identifier, VolumeControl.Core.Input.IHotkey.IsRegistered, VolumeControl.Core.Input.Json.JsonHotkey.IsRegistered, VolumeControl.Core.Input.IHotkey.Key, VolumeControl.Core.Input.Json.JsonHotkey.Key, VolumeControl.Core.Input.IHotkey.Modifiers, VolumeControl.Core.Input.Json.JsonHotkey.Modifiers, VolumeControl.Core.Input.IHotkey.Name, and VolumeControl.Core.Input.Json.JsonHotkey.Name.
VolumeControl.Core.Input.Json.JsonHotkey.JsonHotkey | ( | ) |
Creates a new JsonHotkey instance with default values.
THotkey VolumeControl.Core.Input.Json.JsonHotkey.CreateInstance< THotkey > | ( | HotkeyActionManager | actionManager, |
bool | deferRegistration = false |
||
) |
Creates a new THotkey instance from this JsonHotkey struct, using the specified actionManager to resolve the ActionIdentifier.
THotkey | A hotkey type that derives from Hotkey. |
actionManager | A HotkeyActionManager instance to use to resolve the ActionIdentifier. |
deferRegistration | When true , the created hotkey is not registered even if it should be. |
InvalidOperationException | Creating an instance of type THotkey failed. |
THotkey | : | Hotkey |
References VolumeControl.Core.Input.Hotkey.Action, VolumeControl.Core.Input.Json.JsonHotkey.ActionIdentifier, VolumeControl.Core.Input.Json.JsonHotkey.ActionSettings, VolumeControl.Log.FLog.Error(), VolumeControl.Log.FLog.FilterEventType(), VolumeControl.Core.Input.Actions.HotkeyActionManager.FindActionDefinition(), VolumeControl.Core.Input.Json.JsonHotkey.IsRegistered, VolumeControl.Core.Input.Json.JsonHotkey.Key, VolumeControl.Core.Input.Json.JsonHotkey.Modifiers, and VolumeControl.Core.Input.Json.JsonHotkey.Name.
|
getset |
Gets or sets the Identifier string of this hotkey's action.
Referenced by VolumeControl.Core.Input.Json.JsonHotkey.CreateInstance< THotkey >(), and VolumeControl.Core.Input.Json.JsonHotkey.JsonHotkey().
|
getset |
Gets or sets the action settings dictionary containing the action settings for this hotkey's action.
Referenced by VolumeControl.Core.Input.Json.JsonHotkey.CreateInstance< THotkey >(), and VolumeControl.Core.Input.Json.JsonHotkey.JsonHotkey().