Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API CreateObjectPool

Last wiki revision 2021-11-20

Creates an ObjectPoolMixin, An is a pool of reusable widgets that may be and for reuse. pool = CreateObjectPool(creationFunc [, resetterFunc])

  • creationFunc : - Called with one argument (pool) to construct and return a new widget.
  • resetterFunc : - Called with two arguments (pool, widget) to initialize or restore a widget to its factory state.
  • - Furnishes a new or reused widget
  • - Restores a widget to original condition for reuse
  • - Restores all widgets sourced from the pool to original condition for reuse
  • - Returns an iterator to cycle through widgets sourced from the pool
  • - Returns an iterator to cycle through widgets released back to the pool
  • - Moves to the next active widget within the pool, or returns nil
  • - Moves to the next inactive widget within the pool, or returns nil
  • - Indicates if the widget is presently acquired from the pool
  • - Returns the number of widgets presently acquired from the pool
  • - Prevents Acquire from calling resetterFunc on newly-created widgets.
  • - Constructs standard s.
  • - Constructs standard s.
  • - Constructs standard s.
  • - Constructs standard s.

Source

https://warcraft.wiki.gg/wiki/API_CreateObjectPool · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.