Difference between revisions of "Sprite:contains"
From GiderosMobile
|  (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Determines whether the specified sprite is contained in the subtree of<br /> this `Sprite` inst...") | |||
| Line 7: | Line 7: | ||
| <br /> | <br /> | ||
| <source lang="lua"> | <source lang="lua"> | ||
| − | (bool) | + | (bool) = Sprite:contains(child) | 
| </source> | </source> | ||
| − | '''child | + | '''child''': (Sprite) The child object to test. ''''''<br/> | 
| '''Returns''' (bool) `true` if the child object is contained in the subtree of this `Sprite` instance, otherwise `false`.<br/> | '''Returns''' (bool) `true` if the child object is contained in the subtree of this `Sprite` instance, otherwise `false`.<br/> | ||
Revision as of 10:16, 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)
'child: (Sprite) The child object to test. '
Returns (bool) `true` if the child object is contained in the subtree of this `Sprite` instance, otherwise `false`.
