Size

class Size(val width: Int, val height: Int, val depth: Int = UNSPECIFIED_SIZE)

Immutable class that represents width, height, and depth dimensions in pixels.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, depth: Int = UNSPECIFIED_SIZE)

Types

Link copied to clipboard
object Companion

The companion object of Size.

Properties

Link copied to clipboard
val depth: Int

Gets the depth of the Size instance.

Link copied to clipboard
val height: Int

Gets the height of the Size instance.

Link copied to clipboard
val width: Int

Gets the width of the Size instance.

Functions

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

Checks whether this Size instance is equal to another object.

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

Converts this Size to an IntArray.

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