BrowserViewport

data class BrowserViewport(val x: Int, val y: Int, val width: Int, val height: Int, val fullScreen: Boolean = false)

Represents a browser viewport with position, dimensions and rendering quality utilities

Constructors

Link copied to clipboard
constructor(x: Int, y: Int, width: Int, height: Int, fullScreen: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
val width: Int
Link copied to clipboard
val x: Int
Link copied to clipboard
val y: Int

Functions

Link copied to clipboard

Get the scaled dimensions for rendering based on quality setting

Link copied to clipboard
fun getZoomLevel(quality: Float): Double

Calculate zoom level based on quality factor

Link copied to clipboard
fun transform(globalX: Double, globalY: Double): Pair<Double, Double>

Transform global coordinates to viewport-relative coordinates

Link copied to clipboard
fun transformMouse(mouseX: Double, mouseY: Double, quality: Float): Pair<Int, Int>

Transform mouse coordinates according to quality scaling