The Open Toolkit library  1.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Properties | List of all members
OpenTK.Input.MouseButtonEventArgs Class Reference

Defines the event data for MouseDevice.ButtonDown and MouseDevice.ButtonUp events. More...

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

Public Member Functions

 MouseButtonEventArgs ()
 Constructs a new MouseButtonEventArgs instance. More...
 
 MouseButtonEventArgs (int x, int y, MouseButton button, bool pressed)
 Constructs a new MouseButtonEventArgs instance. More...
 
 MouseButtonEventArgs (MouseButtonEventArgs args)
 Constructs a new MouseButtonEventArgs instance. More...
 
- Public Member Functions inherited from OpenTK.Input.MouseEventArgs
 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

MouseButton Button [get, set]
 The mouse button for the event. More...
 
bool IsPressed [get, set]
 Gets a System.Boolean representing the state of the mouse button for the event. More...
 
- Properties inherited from OpenTK.Input.MouseEventArgs
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.ButtonDown and MouseDevice.ButtonUp events.

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

Constructor & Destructor Documentation

OpenTK.Input.MouseButtonEventArgs.MouseButtonEventArgs ( )

Constructs a new MouseButtonEventArgs instance.

OpenTK.Input.MouseButtonEventArgs.MouseButtonEventArgs ( int  x,
int  y,
MouseButton  button,
bool  pressed 
)

Constructs a new MouseButtonEventArgs instance.

Parameters
xThe X position.
yThe Y position.
buttonThe mouse button for the event.
pressedThe current state of the button.
OpenTK.Input.MouseButtonEventArgs.MouseButtonEventArgs ( MouseButtonEventArgs  args)

Constructs a new MouseButtonEventArgs instance.

Parameters
argsThe MouseButtonEventArgs instance to clone.

Property Documentation

MouseButton OpenTK.Input.MouseButtonEventArgs.Button
getset

The mouse button for the event.

bool OpenTK.Input.MouseButtonEventArgs.IsPressed
getset

Gets a System.Boolean representing the state of the mouse button for the event.