跳到主要内容

getPointerEventRoot 获取指针事件根元素

getPointerEventRoot

类型: MethodDeclaration

定义位置: ui.ts

描述

获取指针事件根元素

返回值:当前的界面根元素

返回值

类型: UIElement

当前的界面根元素

源代码

位置: 第 264 行

public getPointerEventRoot(): UIElement {
const roots = this.pointerEventRoots
return roots[roots.length - 1] ?? this.root
}

文档生成时间:2025/7/7 12:07:07