Size

open class Size : Comparable<T> , Parcelable

Data structure representing a size.

Constructors

Link copied to clipboard
constructor(width: Float, height: Float)
Creates a size representation.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun compareTo(@NonNull another: Size): Int
Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isPortrait(): Boolean
Check if size has portrait orientation.
Link copied to clipboard
Create size in landscape orientation.
Link copied to clipboard
open fun toPortrait(): Size
Create size in portrait orientation.
Link copied to clipboard
open fun toRect(): RectF
open fun toRect(@Nullable reusableeRect: RectF): RectF
Expresses this size as (0, 0, width, height) rect.
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun writeToParcel(dest: Parcel, flags: Int)