Size

open class Size : Comparable<Size> , 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
Parcelable creator for deserializing Size objects.
Link copied to clipboard
The height dimension of this size in PDF points.
Link copied to clipboard
The width dimension of this size in PDF points.

Functions

Link copied to clipboard
open fun compareTo(@NonNull another: Size): Int
Compares this size to another size based on their larger dimension.
Link copied to clipboard
open fun describeContents(): Int
Describes the kinds of special objects contained in this Parcelable.
Link copied to clipboard
open fun equals(o: Any): Boolean
Compares this size to another object for equality.
Link copied to clipboard
open fun hashCode(): Int
Returns a hash code value for this size.
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
Returns a string representation of this size.
Link copied to clipboard
open fun writeToParcel(dest: Parcel, flags: Int)
Writes this size to a Parcel for serialization.