Sprite:contains: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 2: Line 2:
'''Available since:''' Gideros 2011.6<br/>
'''Available since:''' Gideros 2011.6<br/>
=== Description ===
=== Description ===
<br />
<translate><br />
Determines whether the specified sprite is contained in the subtree of<br />
Determines whether the specified sprite is contained in the subtree of<br />
this `Sprite` instance.<br />
this [[[Sprite]]] instance.<br />
<br />
<br /></translate>
<source lang="lua">
<source lang="lua">
(bool) = Sprite:contains(child)
(bool) = Sprite:contains(child)
</source>
</source>
=== Parameters ===
=== Parameters ===
'''child''': (Sprite) The child object to test. <br/>
'''child''': (Sprite) <translate>The child object to test.</translate> <br/>
=== Return values ===
=== Return values ===
'''Returns''' (bool) `true` if the child object is contained in the subtree of this `Sprite` instance, otherwise `false`.<br/>
'''Returns''' (bool) <translate>[[[true` if the child object is contained in the subtree of this `Sprite` instance, otherwise `false]]].</translate><br/>

Revision as of 12:38, 23 August 2018

Available since: Gideros 2011.6

Description


Determines whether the specified sprite is contained in the subtree of
this [[[Sprite]]] instance.

(bool) = Sprite:contains(child)

Parameters

child: (Sprite) The child object to test.

Return values

Returns (bool) [[[true` if the child object is contained in the subtree of this `Sprite` instance, otherwise `false]]].