Links |
---|
Returns references to the Frames or LayeredRegions directly subordinate to this frame.
child1, child2, ... = frame:GetChildren() region1, region2, ... = frame:GetRegions()
Returns
- child1, child2, ...
- Frame - References to each Frame that is a direct subordinate of this one (ie, excluding grandchildren).
- region1, region2, ...
- LayeredRegion - References to each LayeredRegion that is a direct subordinate of this frame (ie, excluding regions inside child frames).
Details
- These methods may return multiple results, or nil if there are none.
Example
Iterates through each child using a table.
local children = { QuestLogFrame:GetChildren() }
for i, child in ipairs(children) do
-- do something to each child here
end
Patch changes
Patch 1.10.0 (2006-03-28): GetRegions() added.[1]
Patch 1.7.0 (2005-09-13): GetChildren() added.[2]
See also
- Frame:GetNumChildren() - Returns the number of Frames directly subordinate to this one.
- Frame:GetNumRegions() - Returns the number of LayeredRegions directly subordinate to this frame.
References
- ^
slouken 2006-01-19. Re: Upcoming 1.10 Changes - Concise List. Archived from the original
- ^
slouken 2005-08-15. Re: Upcoming 1.7 Changes - Concise List. Archived from the original