Size

open class Size

Class for describing width and height dimensions.

Constructors

Size
Link copied to clipboard
open fun Size(@IntRange(from = 0width: Int, @IntRange(from = 0height: Int)
Create a new immutable Size instance.

Functions

equals
Link copied to clipboard
open fun equals(@Nullable obj: Any): Boolean
Check if this size is equal to another size.
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String
Return the size represented as a string with the format

Properties

height
Link copied to clipboard
@IntRange(from = 0)
@get:IntRange(from = 0)
private val height: Int
width
Link copied to clipboard
@IntRange(from = 0)
@get:IntRange(from = 0)
private val width: Int