The Open Toolkit library  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
OpenTK.Input.MouseEventArgs Class Reference

Defines the event data for MouseDevice events. More...

+ Inheritance diagram for OpenTK.Input.MouseEventArgs:

Public Member Functions

 MouseEventArgs ()
 Constructs a new instance. More...
 
 MouseEventArgs (int x, int y)
 Constructs a new instance. More...
 
 MouseEventArgs (MouseEventArgs args)
 Constructs a new instance. More...
 

Properties

int X [get, set]
 Gets the X position of the mouse for the event. More...
 
int Y [get, set]
 Gets the Y position of the mouse for the event. More...
 
Point Position [get]
 Gets a System.Drawing.Points representing the location of the mouse for the event. More...
 

Detailed Description

Defines the event data for MouseDevice events.

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

Constructor & Destructor Documentation

OpenTK.Input.MouseEventArgs.MouseEventArgs ( )

Constructs a new instance.

OpenTK.Input.MouseEventArgs.MouseEventArgs ( int  x,
int  y 
)

Constructs a new instance.

Parameters
xThe X position.
yThe Y position.
OpenTK.Input.MouseEventArgs.MouseEventArgs ( MouseEventArgs  args)

Constructs a new instance.

Parameters
argsThe MouseEventArgs instance to clone.

Property Documentation

Point OpenTK.Input.MouseEventArgs.Position
get

Gets a System.Drawing.Points representing the location of the mouse for the event.

int OpenTK.Input.MouseEventArgs.X
getset

Gets the X position of the mouse for the event.

int OpenTK.Input.MouseEventArgs.Y
getset

Gets the Y position of the mouse for the event.