PointerEventData¶
类位于 Infernux.ui
描述¶
指针事件数据。包含点击位置和来源信息。
description
构造函数¶
| 签名 | 描述 |
|---|---|
PointerEventData.__init__() → None |
constructors
属性¶
| 名称 | 类型 | 描述 |
|---|---|---|
| position | Tuple[float, float] |
当前指针屏幕坐标。 |
| delta | Tuple[float, float] |
|
| button | PointerButton |
触发事件的鼠标按钮。 |
| press_position | Tuple[float, float] |
|
| click_count | int |
点击次数。 |
| scroll_delta | Tuple[float, float] |
|
| canvas | Optional[UICanvas] |
|
| target | Optional[InxUIScreenComponent] |
|
| used | bool |
properties
公共方法¶
| 方法 | 描述 |
|---|---|
Use() → None |
Mark event as consumed (stops propagation to parent elements). |
public_methods
示例¶
example
另请参阅¶
see_also