WoW:API Frame GetFrameType
Jump to navigation
Jump to search
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.