WoW:API Frame GetFrameType

From AddOn Studio
Revision as of 22:53, 31 January 2006 by WoWWiki>Darjks
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
GetFrameType -Documentation by Darjk-

This returns the type of frame that 'this' object is.

local frameType = this:GetFrameType();

Parameters

Arguments

nil

Returns

frameType
String - The name of the type, ie. "Frame"

Example

local frameType = getglobal("QuestLogCollapseAllButton"):GetFrameType();

Result

frameType = "Button"

Details

'this' is any Frame or Frame Derivative widget (also known as objects, or elements). The purpose of this function is so you can find out what the frame type is. It can return, "Frame", "Button", "EditBox", "ScrollingFrame", etc. Basically any widget that is derived from the original Frame widget.

"FontString", "Texture", etc are NOT derived from the type Frame, but are derived from the LayoutFrame, so this function does not work with those objects.


Last updated: Patch 1.9.2

Template:WoW API