Widget API: Frame:IsFrameType

From AddOn Studio
Revision as of 11:58, 10 June 2006 by WoWWiki>Mikk ({{widgetmethod}})
Jump to navigation Jump to search

Widget API ← Frame < IsFrameType

Synopsis

boolean isType = Frame:IsFrameType("typeName");

Description

Frame:IsFrameType() returns true if the frame is of type typeName, or a subtype of typeName, false if not.

Examples

local isButton = getglobal("QuestLogCollapseAllButton"):IsFrameType("button");

The above should return true.