class AspectRatio : Comparable<AspectRatio>
Platform and version requirements: JVM
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: Any |
fun of(x: Int, y: Int): AspectRatio
Returns an instance of AspectRatio specified by |
|
fun parse(s: String): AspectRatio
Parse an AspectRatio from a String formatted like "4:3". |