A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

44 lines
1.2 KiB

// -----------------------------------------------------------------------
// <copyright file="RawMouseEventArgs.cs" company="Steven Kirk">
// Copyright 2013 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Input.Raw
{
using System;
public enum RawMouseEventType
{
LeaveWindow,
LeftButtonDown,
LeftButtonUp,
Move,
Wheel,
}
public class RawMouseEventArgs : RawInputEventArgs
{
public RawMouseEventArgs(
IInputDevice device,
uint timestamp,
IInputElement root,
RawMouseEventType type,
Point position)
: base(device, timestamp)
{
Contract.Requires<ArgumentNullException>(device != null);
Contract.Requires<ArgumentNullException>(root != null);
this.Root = root;
this.Position = position;
this.Type = type;
}
public IInputElement Root { get; private set; }
public Point Position { get; private set; }
public RawMouseEventType Type { get; private set; }
}
}