ICorePointerInputSource 接口

定义

定义指针输入 (的行为,以便在工作线程) 进行处理。

public interface class ICorePointerInputSource
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3153181464, 58490, 18667, 136, 7, 248, 248, 211, 234, 69, 81)]
struct ICorePointerInputSource
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(3153181464, 58490, 18667, 136, 7, 248, 248, 211, 234, 69, 81)]
public interface ICorePointerInputSource
Public Interface ICorePointerInputSource
派生
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

属性

HasCapture

如果指针输入源具有捕获功能,则发生。

PointerCursor

获取或设置指针游标类型。

PointerPosition

获取指针的当前位置(以屏幕坐标表示)。

方法

ReleasePointerCapture()

停止捕获指针输入数据。

SetPointerCapture()

如果指针输入设备支持,则启动指针输入数据的捕获。

事件

PointerCaptureLost

当指针输入捕获流失败或丢失时发生。

PointerEntered

当指针进入 UI 元素时发生。

PointerExited

当指针退出 UI 元素时发生。

PointerMoved

在移动指针时发生。

PointerPressed

当收到指针的按下操作 ((如屏幕按下或鼠标单击) )时发生。

PointerReleased

当收到指针的释放操作 ((例如屏幕按下释放或鼠标单击释放) )时发生。

PointerWheelChanged

当指针滚轮 (鼠标或虚拟) 已更改位置时发生。

适用于

另请参阅