* Get child by name * 通过名称获取子对象
(name: string)
| 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 |
no outgoing calls
no test coverage detected