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.
 
 
 

37 lines
970 B

// -----------------------------------------------------------------------
// <copyright file="IInputElement.cs" company="Steven Kirk">
// Copyright 2014 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Input
{
using System;
public interface IInputElement
{
event EventHandler<RoutedEventArgs> GotFocus;
event EventHandler<RoutedEventArgs> LostFocus;
event EventHandler<KeyEventArgs> KeyDown;
event EventHandler<PointerEventArgs> PointerEnter;
event EventHandler<PointerEventArgs> PointerLeave;
event EventHandler<PointerEventArgs> PointerPressed;
event EventHandler<PointerEventArgs> PointerReleased;
bool Focusable { get; }
bool IsFocused { get; }
bool IsPointerOver { get; }
void Focus();
void RaiseEvent(RoutedEventArgs e);
}
}