MCPcopy Create free account
hub / github.com/esengine/esengine / getChildAt

Method getChildAt

packages/fairygui/src/core/GComponent.ts:173–178  ·  view source on GitHub ↗

* Get child at index * 获取指定位置的子对象

(index: number)

Source from the content-addressed store, hash-verified

171 * 获取指定位置的子对象
172 */
173 public getChildAt(index: number): GObject {
174 if (index < 0 || index >= this._children.length) {
175 throw new Error('Invalid child index: ' + index);
176 }
177 return this._children[index];
178 }
179
180 /**
181 * Get child by name

Callers 15

setupMethod · 0.80
setup_afterAddMethod · 0.80
getTopWindowMethod · 0.80
hitTestInChildrenMethod · 0.80
setupMethod · 0.80
getItemNameMethod · 0.80
setStateMethod · 0.80
selectedIndexMethod · 0.80
getSelectionMethod · 0.80
addSelectionMethod · 0.80
removeSelectionMethod · 0.80
clearSelectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected