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
ScrollPans
public bool ScrollPans { get; set; }
Property Value
ScrollSpeed
public int ScrollSpeed { get; set; }
Property Value
ScrollZoomFactor
public float ScrollZoomFactor { get; set; }
Property Value
Methods
ApplyWheel(int, bool, bool, Vector2)
public void ApplyWheel(int delta, bool control, bool shift, Vector2 position)
Parameters
BeginPan(Point)
public void BeginPan(Point position)
Parameters
positionPoint
EndPan()
public void EndPan()
UpdatePan(Point)
public void UpdatePan(Point position)
Parameters
positionPoint
Events
PanRequested
public event Action<Vector2> PanRequested
Event Type
- Action<Vector2>
ZoomRequested
public event Action<float, Vector2> ZoomRequested