Volume Control
Application-specific hotkeys for Windows
|
Represents the definition of a hotkey action, including metadata and the reflection classes for targeting the method. More...
Public Member Functions | |
HotkeyActionDefinition (object objectInstance, MethodInfo methodInfo, string name, string? description, string? groupName, Brush? groupBrush, ActionSettingDefinition[] actionSettingDefinitions) | |
Creates a new HotkeyActionDefinition instance for a non-static action method. More... | |
HotkeyActionDefinition (Type objectType, MethodInfo methodInfo, string name, string? description, string? groupName, Brush? groupBrush, ActionSettingDefinition[] actionSettingDefinitions) | |
Creates a new HotkeyActionDefinition instance for a static action method. More... | |
HotkeyActionInstance | CreateInstance () |
Creates a new HotkeyActionInstance instance from this definition. More... | |
HotkeyActionInstance | CreateInstance (IActionSettingInstance[] actionSettings) |
Creates a new HotkeyActionInstance instance from this definition and the specified actionSettings . More... | |
ActionSettingDefinition? | GetActionSettingDefinition (string name, StringComparison stringComparison=StringComparison.Ordinal) |
Gets the ActionSettingDefinition object with the specified name . More... | |
Properties | |
Type | ActionGroupType [get] |
Gets the class type of the hotkey action group that this action belongs to. More... | |
object? | ActionGroupInstance [get] |
Gets the class instance of the hotkey action group that this action belongs to. More... | |
MethodInfo | ActionMethodInfo [get] |
Gets the method info for the action method that this action represents. More... | |
string | Name [get] |
Gets the name of this action. More... | |
string? | Description [get] |
Gets the description of this action. More... | |
string? | GroupName [get] |
Gets the group name of this action. More... | |
Brush? | GroupBrush [get] |
Gets the brush for the group name of this action. More... | |
ActionSettingDefinition[] | ActionSettingDefinitions [get] |
Gets the action setting definitions of this action. More... | |
string | Identifier [get] |
Gets the identifier string of this action. More... | |
Represents the definition of a hotkey action, including metadata and the reflection classes for targeting the method.
VolumeControl.Core.Input.Actions.HotkeyActionDefinition.HotkeyActionDefinition | ( | object | objectInstance, |
MethodInfo | methodInfo, | ||
string | name, | ||
string? | description, | ||
string? | groupName, | ||
Brush? | groupBrush, | ||
ActionSettingDefinition[] | actionSettingDefinitions | ||
) |
Creates a new HotkeyActionDefinition instance for a non-static action method.
objectInstance | An instance of the action group class. |
methodInfo | The MethodInfo of the action method. |
name | The name of the action. |
description | The description of the action. |
groupName | The group name of the action. |
groupBrush | The group brush of the action. |
actionSettingDefinitions | The action setting definitions for the action. |
References VolumeControl.Core.Input.Actions.HotkeyActionDefinition.ActionGroupInstance, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.ActionGroupType, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.ActionMethodInfo, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.ActionSettingDefinitions, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.Description, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.GroupBrush, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.GroupName, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.Identifier, and VolumeControl.Core.Input.Actions.HotkeyActionDefinition.Name.
VolumeControl.Core.Input.Actions.HotkeyActionDefinition.HotkeyActionDefinition | ( | Type | objectType, |
MethodInfo | methodInfo, | ||
string | name, | ||
string? | description, | ||
string? | groupName, | ||
Brush? | groupBrush, | ||
ActionSettingDefinition[] | actionSettingDefinitions | ||
) |
Creates a new HotkeyActionDefinition instance for a static action method.
objectType | The Type of the action group class. |
methodInfo | The MethodInfo of the action method. |
name | The name of the action. |
description | The description of the action. |
groupName | The group name of the action. |
groupBrush | The group brush of the action. |
actionSettingDefinitions | The action setting definitions for the action. |
References VolumeControl.Core.Input.Actions.HotkeyActionDefinition.ActionGroupInstance, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.ActionGroupType, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.ActionMethodInfo, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.ActionSettingDefinitions, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.Description, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.GroupBrush, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.GroupName, VolumeControl.Core.Input.Actions.HotkeyActionDefinition.Identifier, and VolumeControl.Core.Input.Actions.HotkeyActionDefinition.Name.
HotkeyActionInstance VolumeControl.Core.Input.Actions.HotkeyActionDefinition.CreateInstance | ( | ) |
Creates a new HotkeyActionInstance instance from this definition.
HotkeyActionInstance VolumeControl.Core.Input.Actions.HotkeyActionDefinition.CreateInstance | ( | IActionSettingInstance[] | actionSettings | ) |
Creates a new HotkeyActionInstance instance from this definition and the specified actionSettings .
actionSettings | The action settings to use for the action instance. |
ActionSettingDefinition? VolumeControl.Core.Input.Actions.HotkeyActionDefinition.GetActionSettingDefinition | ( | string | name, |
StringComparison | stringComparison = StringComparison.Ordinal |
||
) |
Gets the ActionSettingDefinition object with the specified name .
name | The name of the action setting definition to get. |
stringComparison | The comparison type to use for string comparisons. |
null
.References VolumeControl.Core.Input.Actions.HotkeyActionDefinition.ActionSettingDefinitions.
|
get |
Gets the class instance of the hotkey action group that this action belongs to.
Referenced by VolumeControl.Core.Input.Actions.HotkeyActionDefinition.HotkeyActionDefinition().
|
get |
Gets the class type of the hotkey action group that this action belongs to.
Referenced by VolumeControl.Core.Input.Actions.HotkeyActionDefinition.HotkeyActionDefinition().
|
get |
Gets the method info for the action method that this action represents.
Do not use this to invoke the method!
Use HotkeyActionInstance.Invoke(IHotkey, HotkeyPressedEventArgs) instead!
Referenced by VolumeControl.Core.Input.Actions.HotkeyActionDefinition.HotkeyActionDefinition().
|
get |
Gets the action setting definitions of this action.
Referenced by VolumeControl.Core.Input.Actions.HotkeyActionDefinition.GetActionSettingDefinition(), and VolumeControl.Core.Input.Actions.HotkeyActionDefinition.HotkeyActionDefinition().
|
get |
Gets the description of this action.
Referenced by VolumeControl.Core.Input.Actions.HotkeyActionDefinition.HotkeyActionDefinition().
|
get |
Gets the brush for the group name of this action.
Referenced by VolumeControl.Core.Input.Actions.HotkeyActionDefinition.HotkeyActionDefinition().
|
get |
Gets the group name of this action.
Referenced by VolumeControl.Core.Input.Actions.HotkeyActionDefinition.HotkeyActionDefinition().
|
get |
Gets the identifier string of this action.
Referenced by VolumeControl.Core.Input.Actions.HotkeyActionDefinition.HotkeyActionDefinition().
|
get |
Gets the name of this action.
Referenced by VolumeControl.Core.Input.Actions.HotkeyActionDefinition.HotkeyActionDefinition().