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

發生于滑鼠滾輪 (滑鼠或虛擬) 已變更位置時。

適用於

另請參閱