Difference between revisions of "Sprite:getParent"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Returns the `Sprite` object that contains this `Sprite` object.<br /> <br /> <source lang="lua"...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(13 intermediate revisions by 2 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 ===
<br />
+
Returns the parent '''Sprite''' object that contains this Sprite object.
Returns the `Sprite` object that contains this `Sprite` object.<br />
+
<syntaxhighlight lang="lua">
<br />
+
(Sprite) = Sprite:getParent()
<source lang="lua">
+
</syntaxhighlight>
(Sprite), = Sprite:getParent()
+
 
</source>
+
=== Return values ===
'''Returns''' (Sprite) The parent sprite.<br/>
+
'''Returns''' (Sprite) the parent sprite<br/>
 +
 
 +
{{Sprite}}

Latest revision as of 15:33, 13 July 2023

Available since: Gideros 2011.6
Class: Sprite

Description

Returns the parent Sprite object that contains this Sprite object.

(Sprite) = Sprite:getParent()

Return values

Returns (Sprite) the parent sprite