Show / Hide Table of Contents

Class MouseEventArgs

Defines the event data for MouseDevice events.

Inheritance
System.Object
System.EventArgs
MouseEventArgs
MouseButtonEventArgs
MouseMoveEventArgs
MouseWheelEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OpenTK.Input
Assembly: cs.temp.dll.dll
Syntax
public class MouseEventArgs : EventArgs
Remarks

Do not cache instances of this type outside their event handler. If necessary, you can clone an instance using the MouseEventArgs(MouseEventArgs) constructor.

Constructors

MouseEventArgs()

Constructs a new instance.

Declaration
public MouseEventArgs()

MouseEventArgs(MouseEventArgs)

Constructs a new instance.

Declaration
public MouseEventArgs(MouseEventArgs args)
Parameters
Type Name Description
MouseEventArgs args

The MouseEventArgs instance to clone.

MouseEventArgs(Int32, Int32)

Constructs a new instance.

Declaration
public MouseEventArgs(int x, int y)
Parameters
Type Name Description
System.Int32 x

The X position.

System.Int32 y

The Y position.

Properties

Mouse

Gets the current MouseState.

Declaration
public MouseState Mouse { get; }
Property Value
Type Description
MouseState

Position

Gets a representing the location of the mouse for the event.

Declaration
public Point Position { get; set; }
Property Value
Type Description
Point

X

Gets the X position of the mouse for the event.

Declaration
public int X { get; }
Property Value
Type Description
System.Int32

Y

Gets the Y position of the mouse for the event.

Declaration
public int Y { get; }
Property Value
Type Description
System.Int32
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX