struct PhysicalSize
source · line 23public
public struct PhysicalSize(val width: Int, val height: Int)
A drawable allocation size in pixels.
constructor constructor
source · line 23public
constructor(val width: Int, val height: Int)
parameter width
source · line 23public
val width: Int
parameter height
source · line 23public
val height: Int
field height
source · line 23public
val height: Int
function toLogical
source · line 27public
public fun toLogical(scaleFactor: Double): LogicalSize
Converts pixels using the scale belonging to the same window snapshot.
parameter scaleFactor
source · line 27public
scaleFactor: Double
field width
source · line 23public
val width: Int
property isDrawable
source · line 25public
public val isDrawable: Boolean
get: public read-only
Whether both dimensions allow a render target.
getter get
source · line 25public
get(): Boolean
function equals
source · line 23publiccompiler-derived
operator fun equals(other: PhysicalSize): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: Int.