Skip to main content

addPointerEventRoot 添加指针事件根元素

addPointerEventRoot

类型: MethodDeclaration

定义位置: ui.ts

描述

添加指针事件根元素

参数 element: 根元素

参数

参数名类型描述默认值
elementUIElement--

返回值

类型: void

源代码

位置: 第 273 行

public addPointerEventRoot(element: UIElement) {
if (element instanceof UIElement) {
this.pointerEventRoots.append(element)
}
}

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