Size

class Size(width: Int, height: Int)

Immutable class for describing width and height dimensions in pixels.

Constructors

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

Types

Companion
Link copied to clipboard
object Companion

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Check if this size is equal to another size.

hashCode
Link copied to clipboard
open override fun hashCode(): Int

{@inheritDoc}

toString
Link copied to clipboard
open override fun toString(): String

Return the size represented as a string with the format "WxH"

Properties

height
Link copied to clipboard
var height: Int

Get the height of the size (in pixels).

width
Link copied to clipboard
val width: Int

Get the width of the size (in pixels).