Links |
---|
Returns the widget's parent object.
parent = ParentedObject:GetParent()
Returns
- parent
- UIObject? - The parent of the given widget object, otherwise returns
nil
Details
- Some properties are inherited from the parent, e.g. scale and visibility.
Example
/dump WorldMapFrame:GetParent():GetName() -- "UIParent"
Patch changes
Patch 1.11.0 (2006-06-19): Added
Region:GetParent()
[1]Patch 1.10.0 (2006-03-28): Added
Texture:GetParent()
andFontString:GetParent()
[2]
See also
- Region:SetParent() - Assigns a new parent.
- Frame:GetChildren() - Returns a list of Frames that are children of another.
- Frame:GetRegions() - Returns a list of LayoutFrames that are part of a Frame.
- AnimationGroup:GetAnimations() - Returns a list of Animations that are part of an AnimationGroup.
References
- ^
slouken 2006-05-12. Re: Upcoming 1.11 Changes - Concise List. Archived from the original on 2006-05-12.
- ^
slouken 2006-01-19. Re: Upcoming 1.10 Changes - Concise List. Archived from the original on 2006-01-19.