WoW:API Region IsVisible

From AddOn Studio
Revision as of 20:02, 23 September 2005 by WoWWiki>Futrtrubl
Jump to navigation Jump to search
IsVisible -Documentation by Kisk-

Gets the visible state of an object.

obj:IsVisible();

Arguments
nil

Returns
Boolean

Example
if (MyFrame:IsVisible()) then
    -- Frame is visible
elseif (not MyFrame:IsVisible()) then
    -- Frame is not visible
end
Result
The if function fires the corresponding statements based on the boolean value returned by MyFrame:IsVisible()

Description
Gets the visible state of an object.
If a parent of a frame calls Hide(), then all of it's children are hidden. In this case, it's children are "visible", but not "shown".
The default UI uses this in a couple of places to tell whether or not the entire UI has been hidden for screenshot purposes (visible is true, but shown isn't)

Template:WoW API