Widget API: Frame:GetFrameType

From AddOn Studio
Revision as of 16:52, 8 November 2007 by WoWWiki>Pcj
Jump to navigation Jump to search

Widget API ← Frame < GetFrameType

Template:Stub/Accuracy

Synopsis

string frameType = Frame:GetFrameType();

Description

This returns the type of the frame the GetFrameType() method is used on.

It will return a string of the name of the Frame(-derived) object. For a complete list see object types

Return values

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

Examples

local frameType = QuestLogCollapseAllButton:GetFrameType();

The above should return the string "Button" in local variable frameType.