FramePoolCollectionMixin:Acquire()

From Warcraft Wiki
Jump to navigation Jump to search
These functions are implemented in :Acquire FrameXML/Pools.lua.

Furnishes frames through a collection of frame pools.

frame = collection:Acquire(template)
collection:Release(frame)
collection:ReleaseAllByTemplate(template)
collection:ReleaseAll()

Arguments / Returns

template
string - XML template.
frame
Frame - Frame inheriting the template, generated from a pool in the collection.

Example

local collection = CreateFramePoolCollection()
collection:CreatePool("Frame", nil, "BackdropTemplate")
local frame = collection:Acquire("BackdropTemplate")

Patch changes

References

 
  1. ^ 2019-03-12, Pools.lua, version 8.1.5.29701, near line 232, archived at Townlong-Yak
  2. ^ 2017-08-28, Pools.lua, version 7.3.0.24920, near line 210, archived at Townlong-Yak