Difference between revisions of "Viewport:setClip"

From GiderosMobile
(Created page with "'''<translate>Available since</translate>:''' Gideros 2016.04<br/> '''<translate>Class</translate>:''' Viewport<br/> === Description === Sets...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''<translate>Available since</translate>:''' Gideros 2016.04<br/>
+
'''Available since:''' Gideros 2016.04<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Viewport|Viewport]]<br/>
+
'''Class:''' [[Viewport]]<br/>
  
 
=== Description ===
 
=== Description ===
 
Sets the viewport size.
 
Sets the viewport size.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Viewport:setClip(x,y,width,height)
 
Viewport:setClip(x,y,width,height)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 16:10, 20 February 2024

Available since: Gideros 2016.04
Class: Viewport

Description

Sets the viewport size.

Viewport:setClip(x,y,width,height)

Parameters

x: (number) x coordinate
y: (number) y coordinate
width: (number) viewport width
height: (number) viewport height