WoW API < EnumerateFrames

Returns frame which follows current frame, or first frame if argument is nil. The order of iteration follows the order that the frames were created in.

nextFrame = EnumerateFrames({currentFrame})

Parameters Edit

Arguments Edit

Table - current frame or nil to get first frame

Returns Edit

Table - the frame following currentFrame or nil if no more frames

Example Edit

local frame = EnumerateFrames()
while frame do
    if frame:IsVisible() and MouseIsOver(frame) then
    frame = EnumerateFrames(frame)

Result Edit

Prints the names of all visible frames under the mouse cursor to the default chat frame.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.