Skip to content

DragStepBuilder

Namespace: Hex1b.Input

Assembly: Hex1b.dll

Fluent builder for constructing a drag binding.

csharp
public sealed class DragStepBuilder

Inheritance

ObjectDragStepBuilder

Methods

Action(Func<int, int, DragHandler>, string?)

Binds the drag factory. The factory receives (startX, startY) local coordinates and returns a DragHandler that will receive move and end events.

Parameters:

Returns: InputBindingsBuilder

csharp
public InputBindingsBuilder Action(Func<int, int, DragHandler> factory, string? description = null)

Ctrl()

Requires Ctrl modifier. Cannot be combined with Shift modifier.

Returns: DragStepBuilder

csharp
public DragStepBuilder Ctrl()

Shift()

Requires Shift modifier. Cannot be combined with Ctrl modifier.

Returns: DragStepBuilder

csharp
public DragStepBuilder Shift()

Released under the MIT License.