Difference between revisions of "Sprite:isVisible"

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