Class InteractiveTuiBinding
Interactive TUI binding information class
Inherited Members
Namespace: Terminaux.Inputs.Interactive
Assembly: Terminaux.dll
Syntax
public class InteractiveTuiBinding : Keybinding
Constructors
| Edit this page View SourceInteractiveTuiBinding(string, ConsoleKey, Action<object?, int>?, bool)
Makes a new instance of an interactive TUI key binding
Declaration
public InteractiveTuiBinding(string bindingName, ConsoleKey bindingKeyName, Action<object?, int>? bindingAction, bool canRunWithoutItems = false)
Parameters
Type | Name | Description |
---|---|---|
string | bindingName | Key binding name |
ConsoleKey | bindingKeyName | Which key is bound to the action? |
Action<object, int> | bindingAction | The action to execute. The object argument denotes the currently selected item, and the integer argument denotes the currently selected data |
bool | canRunWithoutItems | Whether the binding can run without items or not |
InteractiveTuiBinding(string, ConsoleKey, ConsoleModifiers, Action<object?, int>?, bool)
Makes a new instance of an interactive TUI key binding
Declaration
public InteractiveTuiBinding(string bindingName, ConsoleKey bindingKeyName, ConsoleModifiers bindingKeyModifiers, Action<object?, int>? bindingAction, bool canRunWithoutItems = false)
Parameters
Type | Name | Description |
---|---|---|
string | bindingName | Key binding name |
ConsoleKey | bindingKeyName | Which key is bound to the action? |
ConsoleModifiers | bindingKeyModifiers | Which modifiers of the key is bound to the action? |
Action<object, int> | bindingAction | The action to execute. The object argument denotes the currently selected item, and the integer argument denotes the currently selected data |
bool | canRunWithoutItems | Whether the binding can run without items or not |
InteractiveTuiBinding(string, PointerButton, Action<object?, int>?, bool)
Makes a new instance of an interactive TUI mouse pointer binding
Declaration
public InteractiveTuiBinding(string bindingName, PointerButton bindingPointerButton, Action<object?, int>? bindingAction, bool canRunWithoutItems = false)
Parameters
Type | Name | Description |
---|---|---|
string | bindingName | Key binding name |
PointerButton | bindingPointerButton | Which key is bound to the action? |
Action<object, int> | bindingAction | The action to execute. The object argument denotes the currently selected item, and the integer argument denotes the currently selected data |
bool | canRunWithoutItems | Whether the binding can run without items or not |
InteractiveTuiBinding(string, PointerButton, PointerButtonPress, Action<object?, int>?, bool)
Makes a new instance of an interactive TUI mouse pointer binding
Declaration
public InteractiveTuiBinding(string bindingName, PointerButton bindingPointerButton, PointerButtonPress bindingPointerButtonPress, Action<object?, int>? bindingAction, bool canRunWithoutItems = false)
Parameters
Type | Name | Description |
---|---|---|
string | bindingName | Key binding name |
PointerButton | bindingPointerButton | Which button is bound to the action? |
PointerButtonPress | bindingPointerButtonPress | Which press mode of the button is bound to the action? |
Action<object, int> | bindingAction | The action to execute. The object argument denotes the currently selected item, and the integer argument denotes the currently selected data |
bool | canRunWithoutItems | Whether the binding can run without items or not |
InteractiveTuiBinding(string, PointerButton, PointerButtonPress, PointerModifiers, Action<object?, int>?, bool)
Makes a new instance of an interactive TUI mouse pointer binding
Declaration
public InteractiveTuiBinding(string bindingName, PointerButton bindingPointerButton, PointerButtonPress bindingPointerButtonPress, PointerModifiers bindingButtonModifiers, Action<object?, int>? bindingAction, bool canRunWithoutItems = false)
Parameters
Type | Name | Description |
---|---|---|
string | bindingName | Key binding name |
PointerButton | bindingPointerButton | Which button is bound to the action? |
PointerButtonPress | bindingPointerButtonPress | Which press mode of the button is bound to the action? |
PointerModifiers | bindingButtonModifiers | Which modifiers of the button is bound to the action? |
Action<object, int> | bindingAction | The action to execute. The object argument denotes the currently selected item, and the integer argument denotes the currently selected data |
bool | canRunWithoutItems | Whether the binding can run without items or not |
Properties
| Edit this page View SourceBindingAction
The action to execute. The integer argument denotes the currently selected data
Declaration
public Action<object?, int>? BindingAction { get; }
Property Value
Type | Description |
---|---|
Action<object, int> |
BindingCanRunWithoutItems
Whether the binding can run without items or not
Declaration
public bool BindingCanRunWithoutItems { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceEquals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
Equals(InteractiveTuiBinding?)
Declaration
public bool Equals(InteractiveTuiBinding? other)
Parameters
Type | Name | Description |
---|---|---|
InteractiveTuiBinding | other |
Returns
Type | Description |
---|---|
bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
Operators
| Edit this page View Sourceoperator ==(InteractiveTuiBinding?, InteractiveTuiBinding?)
Declaration
public static bool operator ==(InteractiveTuiBinding? left, InteractiveTuiBinding? right)
Parameters
Type | Name | Description |
---|---|---|
InteractiveTuiBinding | left | |
InteractiveTuiBinding | right |
Returns
Type | Description |
---|---|
bool |
operator !=(InteractiveTuiBinding?, InteractiveTuiBinding?)
Declaration
public static bool operator !=(InteractiveTuiBinding? left, InteractiveTuiBinding? right)
Parameters
Type | Name | Description |
---|---|---|
InteractiveTuiBinding | left | |
InteractiveTuiBinding | right |
Returns
Type | Description |
---|---|
bool |