Difference between revisions of "Sprite:isVisible"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/>
+
'''Class:''' [[Sprite]]<br/>
=== <translate>Description</translate> ===
+
 
<translate><br />
+
=== Description ===
Returns whether or not the sprite is visible. Child sprites that are not visible are also taken<br />
+
Returns whether or not the sprite is visible. Child sprites that are not visible are also taken into consideration while calculating bounds.
into consideration while calculating bounds.<br />
+
<syntaxhighlight lang="lua">
<br /></translate>
+
(bool) = Sprite:isVisible([checkParent])
<source lang="lua">
+
</syntaxhighlight>
(bool) = Sprite:isVisible()
+
 
</source>
+
=== Parameters ===
=== <translate>Return values</translate> ===
+
'''checkParent''': (bool) flag to check parent visibility '''(optional: default = false)'''<br/>
'''<translate>Returns</translate>''' (bool) <translate>A value of ''true'' if sprite is visible; ''false'' otherwise.</translate><br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (bool) a value of ''true'' if sprite is visible, ''false'' otherwise<br/>
 +
 
 +
{{Sprite}}

Latest revision as of 14:33, 13 July 2023

Available since: Gideros 2011.6
Class: Sprite

Description

Returns whether or not the sprite is visible. Child sprites that are not visible are also taken into consideration while calculating bounds.

(bool) = Sprite:isVisible([checkParent])

Parameters

checkParent: (bool) flag to check parent visibility (optional: default = false)

Return values

Returns (bool) a value of true if sprite is visible, false otherwise