Difference between revisions of "Sprite:contains"
From GiderosMobile
| Line 1: | Line 1: | ||
| __NOTOC__ | __NOTOC__ | ||
| '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
| + | '''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/> | ||
| === <translate>Description</translate> === | === <translate>Description</translate> === | ||
| <translate><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  | + | this `Sprite` instance.<br /> | 
| <br /></translate> | <br /></translate> | ||
| <source lang="lua"> | <source lang="lua"> | ||
| Line 12: | Line 13: | ||
| '''child''': (Sprite) <translate>The child object to test.</translate> <br/> | '''child''': (Sprite) <translate>The child object to test.</translate> <br/> | ||
| === <translate>Return values</translate> === | === <translate>Return values</translate> === | ||
| − | '''<translate>Returns</translate>''' (bool) <translate> | + | '''<translate>Returns</translate>''' (bool) <translate>`true` if the child object is contained in the subtree of this `Sprite` instance, otherwise `false`.</translate><br/> | 
Revision as of 09:27, 24 August 2018
Available since: Gideros 2011.6
Class: Sprite
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`.
