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

Method getChild

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

* Get child by name * 通过名称获取子对象

(name: string)

Source from the content-addressed store, hash-verified

182 * 通过名称获取子对象
183 */
184 public getChild(name: string): GObject | null {
185 for (const child of this._children) {
186 if (child.name === name) {
187 return child;
188 }
189 }
190 return null;
191 }
192
193 /**
194 * Get visible child by name

Callers 13

getChildByPathMethod · 0.45
constructorMethod · 0.45
setItemTextMethod · 0.45
setItemVisibleMethod · 0.45
setItemGrayedMethod · 0.45
setItemCheckableMethod · 0.45
setItemCheckedMethod · 0.45
isItemCheckedMethod · 0.45
removeItemMethod · 0.45
constructExtensionMethod · 0.45
constructExtensionMethod · 0.45
contentPaneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected