MouseMoveData<T>

public class MouseMoveData<T>
Utility class for keeping track of mouse move information.
T where Enum

Constructors

MouseMoveData

#
public MouseMoveData(MouseEventArgs e, T mode)
e (MouseEventArgs)
mode (T)

MouseMoveData

#
public MouseMoveData(MouseState state, T mode)
state (MouseState)
mode (T)

Properties

ContentSpaceDistance

#
public float ContentSpaceDistance { get; }

ContentSpaceHorizontal

#
public float ContentSpaceHorizontal { get; }

ContentSpaceVertical

#
public float ContentSpaceVertical { get; }

ControlSpaceDistance

#
public float ControlSpaceDistance { get; }

ControlSpaceHorizontal

#
public float ControlSpaceHorizontal { get; }

ControlSpaceVertical

#
public float ControlSpaceVertical { get; }

CurrentMode

#
public T CurrentMode { get; }

CurrentState

#
public MouseState CurrentState { get; }

InitialMode

#
public T InitialMode { get; }

InitialState

#
public MouseState InitialState { get; }

Tag

#
public object Tag { get; set; }
Tag field for the user.

Methods

UpdateState

#
public void UpdateState(MouseEventArgs e, T newMode)
e (MouseEventArgs)
newMode (T)

UpdateState

#
public void UpdateState(MouseEventArgs e)
e (MouseEventArgs)

UpdateState

#
public void UpdateState(MouseState newState, T newMode)
newState (MouseState)
newMode (T)

UpdateState

#
public void UpdateState(MouseState newState)
newState (MouseState)