OpenTK.Input.MouseEventArgs Class Reference

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

Inheritance diagram for OpenTK.Input.MouseEventArgs:
OpenTK.Input.MouseButtonEventArgs OpenTK.Input.MouseMoveEventArgs OpenTK.Input.MouseWheelEventArgs

List of all members.

Public Member Functions

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

Properties

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

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.

Definition at line 370 of file MouseDevice.cs.


Constructor & Destructor Documentation

OpenTK.Input.MouseEventArgs.MouseEventArgs (  ) 

Constructs a new instance.

Definition at line 383 of file MouseDevice.cs.

00384         {
00385         }

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

Constructs a new instance.

Parameters:
x The X position.
y The Y position.

Definition at line 392 of file MouseDevice.cs.

00393         {
00394             this.x = x;
00395             this.y = y;
00396         }

OpenTK.Input.MouseEventArgs.MouseEventArgs ( MouseEventArgs  args  ) 

Constructs a new instance.

Parameters:
args The MouseEventArgs instance to clone.

Definition at line 402 of file MouseDevice.cs.

00403             : this(args.x, args.y)
00404         {
00405         }


Property Documentation

Point OpenTK.Input.MouseEventArgs.Position [get]

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

Definition at line 424 of file MouseDevice.cs.

int OpenTK.Input.MouseEventArgs.X [get, set]

Gets the X position of the mouse for the event.

Definition at line 414 of file MouseDevice.cs.

int OpenTK.Input.MouseEventArgs.Y [get, set]

Gets the Y position of the mouse for the event.

Definition at line 419 of file MouseDevice.cs.

 All Classes Functions Variables Enumerations Properties Events

Generated on Tue Mar 9 15:06:31 2010 for The Open Toolkit library by  doxygen 1.6.1