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

Method getFromPool

packages/fairygui/src/widgets/GList.ts:203–212  ·  view source on GitHub ↗
(url?: string)

Source from the content-addressed store, hash-verified

201 // Item pool operations
202
203 public getFromPool(url?: string): GObject | null {
204 if (!url) {
205 url = this._defaultItem;
206 }
207 const obj = this._pool.getObject(url);
208 if (obj) {
209 obj.visible = true;
210 }
211 return obj;
212 }
213
214 public returnToPool(obj: GObject): void {
215 this._pool.returnObject(obj);

Callers 3

addItemFromPoolMethod · 0.95
readItemsMethod · 0.95
addItemAtMethod · 0.80

Calls 1

getObjectMethod · 0.80

Tested by

no test coverage detected