class AspectRatio : Comparable<AspectRatio>
Immutable class for describing proportional relationship between width and height.
AspectRatio(parcel: <ERROR CLASS>) |
val x: Int |
|
val y: Int |
fun compareTo(other: AspectRatio): Int |
|
fun describeContents(): Int |
|
fun equals(other: Any?): Boolean |
|
fun hashCode(): Int |
|
fun inverse(): AspectRatio |
|
fun matches(size: Size): Boolean |
|
fun toFloat(): Float |
|
fun toString(): String |
|
fun writeToParcel(parcel: <ERROR CLASS>, flags: Int): Unit |
val CREATOR: <ERROR CLASS><AspectRatio> |
fun of(x: Int, y: Int): AspectRatio
Returns an instance of AspectRatio specified by x and y values.
The values fun of(size: Size): AspectRatio
Returns an instance of AspectRatio specified by Size.width and Size.height of size.
The values |