cp.ui.ElementCache(parent[, createFn])
ElementCache
, with the specified parent and function whichElement
subclasses based on cached axuielement
values.ElementCache
.cp.ui.ElementCache:cachedElement(cache, ui) -> cp.ui.Element or nil
axuielement
it is linked to. If not provided, it will be fetched by calling Element:UI()
.cp.ui.Element
or nil
cp.ui.ElementCache:clean()
cp.ui.ElementCache:fetchElement(ui) -> cp.ui.Element or nil
axuielement
being fetched for.cp.ui.Element
or nil
cp.ui.ElementCache:fetchElements(uis) -> table of cp.ui.Elements or nil
table
of axuielement
values.axuielement
values are either not from the parent, or no longer valid, a nil
value will be stored in the matching index. Note that in that case, this will break useage of ipairs
due to leaving holes in the list.cp.ui.ElementCache:reset() -> none