OpenTK.Input.MouseWheelEventArgs Class Reference

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

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

List of all members.

Public Member Functions

 MouseWheelEventArgs ()
 Constructs a new MouseWheelEventArgs instance.
 MouseWheelEventArgs (int x, int y, int value, int delta)
 Constructs a new MouseWheelEventArgs instance.
 MouseWheelEventArgs (MouseWheelEventArgs args)
 Constructs a new MouseWheelEventArgs instance.

Properties

int Value [get]
 Gets the value of the wheel in integer units. To support high-precision mice, it is recommended to use ValuePrecise instead.
int Delta [get]
 Gets the change in value of the wheel for this event in integer units. To support high-precision mice, it is recommended to use DeltaPrecise instead.
float ValuePrecise [get, set]
 Gets the precise value of the wheel in floating-point units.
float DeltaPrecise [get, set]
 Gets the precise change in value of the wheel for this event in floating-point units.

Detailed Description

Defines the event data for MouseDevice.WheelChanged events.

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

Definition at line 570 of file MouseDevice.cs.


Constructor & Destructor Documentation

OpenTK.Input.MouseWheelEventArgs.MouseWheelEventArgs (  ) 

Constructs a new MouseWheelEventArgs instance.

Definition at line 584 of file MouseDevice.cs.

00584 { }

OpenTK.Input.MouseWheelEventArgs.MouseWheelEventArgs ( int  x,
int  y,
int  value,
int  delta 
)

Constructs a new MouseWheelEventArgs instance.

Parameters:
x The X position.
y The Y position.
value The value of the wheel.
delta The change in value of the wheel for this event.

Definition at line 593 of file MouseDevice.cs.

00594             : base(x, y)
00595         {
00596             this.value = value;
00597             this.delta = delta;
00598         }

OpenTK.Input.MouseWheelEventArgs.MouseWheelEventArgs ( MouseWheelEventArgs  args  ) 

Constructs a new MouseWheelEventArgs instance.

Parameters:
args The MouseWheelEventArgs instance to clone.

Definition at line 604 of file MouseDevice.cs.

00605             : this(args.X, args.Y, args.Value, args.Delta)
00606         {
00607         }


Property Documentation

int OpenTK.Input.MouseWheelEventArgs.Delta [get]

Gets the change in value of the wheel for this event in integer units. To support high-precision mice, it is recommended to use DeltaPrecise instead.

Definition at line 623 of file MouseDevice.cs.

float OpenTK.Input.MouseWheelEventArgs.DeltaPrecise [get, set]

Gets the precise change in value of the wheel for this event in floating-point units.

Definition at line 633 of file MouseDevice.cs.

int OpenTK.Input.MouseWheelEventArgs.Value [get]

Gets the value of the wheel in integer units. To support high-precision mice, it is recommended to use ValuePrecise instead.

Definition at line 617 of file MouseDevice.cs.

float OpenTK.Input.MouseWheelEventArgs.ValuePrecise [get, set]

Gets the precise value of the wheel in floating-point units.

Definition at line 628 of file MouseDevice.cs.

 All Classes Functions Variables Enumerations Properties Events

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