Class ViewPanner

Namespace
Forma
Assembly
Forma.dll

Godot-inspired navigation helper for zoomable editor canvases.

public sealed class ViewPanner
Inheritance
ViewPanner
Inherited Members

Constructors

ViewPanner()

public ViewPanner()

Properties

IsPanning

public bool IsPanning { get; }

Property Value

bool

ScrollPans

public bool ScrollPans { get; set; }

Property Value

bool

ScrollSpeed

public int ScrollSpeed { get; set; }

Property Value

int

ScrollZoomFactor

public float ScrollZoomFactor { get; set; }

Property Value

float

Methods

ApplyWheel(int, bool, bool, Vector2)

public void ApplyWheel(int delta, bool control, bool shift, Vector2 position)

Parameters

delta int
control bool
shift bool
position Vector2

BeginPan(Point)

public void BeginPan(Point position)

Parameters

position Point

EndPan()

public void EndPan()

UpdatePan(Point)

public void UpdatePan(Point position)

Parameters

position Point

Events

PanRequested

public event Action<Vector2> PanRequested

Event Type

Action<Vector2>

ZoomRequested

public event Action<float, Vector2> ZoomRequested

Event Type

Action<float, Vector2>