FrameSize

data class FrameSize(val width: Int, val height: Int) : Comparable<FrameSize>

Frame size with operators to support scaling

Constructors

Link copied to clipboard
fun FrameSize(width: Int, height: Int)

Functions

Link copied to clipboard
open operator override fun compareTo(other: FrameSize): Int
Link copied to clipboard
operator fun div(scale: Double): FrameSize
operator fun div(scale: Float): FrameSize
operator fun div(scale: Int): FrameSize
Link copied to clipboard
operator fun times(scale: Double): FrameSize
operator fun times(scale: Float): FrameSize
operator fun times(scale: Int): FrameSize

Properties

Link copied to clipboard
val height: Int
Link copied to clipboard
val size: Int

Overall area of the frame

Link copied to clipboard
val width: Int