FramePoolCollectionMixin :Acquire()
(Redirected from API FramePoolCollectionMixin ReleaseAll)
Jump to navigation
Jump to search
- These functions are implemented in
.:Acquire FrameXML/Pools.lua
- These functions are implemented in
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
- Patch 8.1.5 (2019-03-12): Moved to
PoolCollectionMixin
.[1] - Patch 7.3.0 (2017-08-29): Added as part of
PoolCollection
.[2]
References
- ^ 2019-03-12, Pools.lua, version 8.1.5.29701, near line 232, archived at Townlong-Yak
- ^ 2017-08-28, Pools.lua, version 7.3.0.24920, near line 210, archived at Townlong-Yak