Frame:GetParent()

From Riftui Wiki

Jump to: navigation, search

Returns a reference to the parent of the calling frame.

Contents

Signature

parent = frame:GetParent()

Parameters

None

Return Value

parent (frame) - A reference to a frame, context, or layout.

Example

local context = UI.CreateContext("SampleContext")
local frame = UI.CreateFrame("Frame", "SampleFrame", context)
-- Get the parent of frame --
local parent = frame:GetParent()
-- Should Print "SampleContext" --
print(parent:GetName())
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox