WoW:API Region Hide: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API Region Hide to API Region Hide without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  <center>'''Hide''' ''-Documentation by [[user:The_Nerd_Wonder|The Nerd Wonder]]-''</center>
{{widgetmethod}} __NOTOC__


This function makes a frame invisible.  
This function makes an object, and all its children, invisible.  


  object:Hide()
  MyObject:Hide()


----
== Parameters ==
;''Arguments''
=== Arguments ===
:''none''


:''none''
=== Returns ===
:''nil''


----
== Notes ==
;''Returns''


:''none''
: Makes an object invisible. If it is a [[UIOBJECT Frame|Frame]] derivate, and has children, they will be hidden as well.


----
: The [[UIHANDLER OnHide|OnHide]] event handler will be called for the object and all its children.
;''Description''


: Makes a frame invisible. Note that if this frame has children, they will be hidden as well.


----
* Future calls to [[API Region IsShown|:IsShown]]() as well as [[API Region IsVisible|:IsVisible]]() will return ''false'' for the object.
{{Template:WoW API}}
* Child objects will return false from [[API Region IsVisible|:IsVisible]](), but will return ''true'' from [[API Region IsShown|:IsShown]] unless :Hide() is called on them explicitly.

Latest revision as of 04:47, 15 August 2023

Widget API ← Region < Hide

This function makes an object, and all its children, invisible.

MyObject:Hide()

Parameters[edit]

Arguments[edit]

none

Returns[edit]

nil

Notes[edit]

Makes an object invisible. If it is a Frame derivate, and has children, they will be hidden as well.
The OnHide event handler will be called for the object and all its children.


  • Future calls to :IsShown() as well as :IsVisible() will return false for the object.
  • Child objects will return false from :IsVisible(), but will return true from :IsShown unless :Hide() is called on them explicitly.