Size

open class Size

Class for describing width and height dimensions.

Constructors

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

Functions

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

Properties

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