Viewport

class Viewport(var left: Int = 0, var bottom: Int = 0, var width: Int = 0, var height: Int = 0)

Viewport specifies the rectangular region where a View's Scene is rendered.

The viewport defines where the content of the View (the Scene) is rendered in the render target. The render target is automatically clipped to the Viewport. All coordinates are in window/screen space with the origin typically at the bottom-left.

Parameters

left

Left coordinate of the viewport (default: 0)

bottom

Bottom coordinate of the viewport (default: 0)

width

Width of the viewport in pixels (default: 0)

height

Height of the viewport in pixels (default: 0)

Constructors

Link copied to clipboard
constructor(left: Int = 0, bottom: Int = 0, width: Int = 0, height: Int = 0)

Properties

Link copied to clipboard
var bottom: Int
Link copied to clipboard
var height: Int
Link copied to clipboard
var left: Int
Link copied to clipboard
var width: Int