StylishLayoutRect

data class StylishLayoutRect(val leftPx: Float, val topPx: Float, val rightPx: Float, val bottomPx: Float)

A renderer-independent rectangle in viewport pixels.

Constructors

Link copied to clipboard
constructor(leftPx: Float, topPx: Float, rightPx: Float, bottomPx: Float)

Properties

Link copied to clipboard
Link copied to clipboard

Height of this rectangle after coordinates have been normalized.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Width of this rectangle after coordinates have been normalized.

Functions

Link copied to clipboard
fun contains(xPx: Float, yPx: Float): Boolean

Whether a point lies inside this rectangle, including its edges.