Search Results for

    Show / Hide Table of Contents

    Class WPFMouseDispatcher

    Dispatches mouse events associated with a Surface or a Window.

    Inheritance
    object
    PointerDispatcher
    MouseDispatcher
    WPFMouseDispatcher
    Inherited Members
    MouseDispatcher.IsMouseOver
    MouseDispatcher.Position
    MouseDispatcher.PositionDelta
    MouseDispatcher.ScrollDelta
    MouseDispatcher.State
    MouseDispatcher.MouseEnter
    MouseDispatcher.MouseLeave
    MouseDispatcher.MouseButtonDown
    MouseDispatcher.MouseButtonUp
    MouseDispatcher.MouseMove
    MouseDispatcher.MouseScroll
    MouseDispatcher.ReadButtonState(MouseButtons)
    MouseDispatcher.IsButtonDown(MouseButtons)
    MouseDispatcher.TrySetCursorPosition(Point)
    MouseDispatcher.DispatchEvents()
    MouseDispatcher.HandleMouseEnter(Point)
    MouseDispatcher.HandleMouseLeave(Point)
    MouseDispatcher.HandleMouseMove(Point)
    MouseDispatcher.HandleMouseButtonDown(MouseButtons)
    MouseDispatcher.HandleMouseButtonUp(MouseButtons)
    MouseDispatcher.HandleMouseScroll(MouseScrollDirections)
    MouseDispatcher.ResetPointersStatus()
    PointerDispatcher.Points
    PointerDispatcher.PointerDown
    PointerDispatcher.PointerUp
    PointerDispatcher.PointerMove
    PointerDispatcher.HandlePointerDown(long, Point)
    PointerDispatcher.HandlePointerUp(long, Point)
    PointerDispatcher.HandlePointerMove(long, Point)
    Namespace: Evergine.WPF
    Assembly: Evergine.WPF.dll
    Syntax
    public class WPFMouseDispatcher : MouseDispatcher

    Constructors

    WPFMouseDispatcher(FrameworkElement, float)

    Initializes a new instance of the WPFMouseDispatcher class.

    Declaration
    public WPFMouseDispatcher(FrameworkElement frameworkElement, float dpiDensity = 1)
    Parameters
    Type Name Description
    FrameworkElement frameworkElement

    The FrameworkElement associated with this dispatcher.

    float dpiDensity

    The dpi densit of the element.

    Properties

    CursorType

    Gets the active cursor type. It can be changed by calling the method TrySetCursorType(CursorTypes).

    Declaration
    public override CursorTypes CursorType { get; }
    Property Value
    Type Description
    CursorTypes
    Overrides
    MouseDispatcher.CursorType

    Methods

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()

    NativeSetCursorPosition(Point)

    Sets the cursor position natively.

    Declaration
    protected override bool NativeSetCursorPosition(Point position)
    Parameters
    Type Name Description
    Point position

    The new position.

    Returns
    Type Description
    bool

    True if the operation was successful; false otherwise.

    Overrides
    MouseDispatcher.NativeSetCursorPosition(Point)

    TrySetCursorType(CursorTypes)

    Tries to change the mouse cursor type.

    Declaration
    public override bool TrySetCursorType(CursorTypes cursorType)
    Parameters
    Type Name Description
    CursorTypes cursorType

    The new cursor type.

    Returns
    Type Description
    bool

    true if successful; otherwise, false.

    Overrides
    MouseDispatcher.TrySetCursorType(CursorTypes)

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX