ScaleFactor
@Immutable inline class ScaleFactor
kotlin.Any | |
↳ | androidx.compose.ui.layout.ScaleFactor |
Holds 2 dimensional scaling factors for horizontal and vertical axes
Summary
Public constructors | |
---|---|
Holds 2 dimensional scaling factors for horizontal and vertical axes |
Public methods | |
---|---|
operator Float | |
operator Float | |
ScaleFactor |
Returns a copy of this ScaleFactor instance optionally overriding the scaleX or scaleY parameters |
operator ScaleFactor |
Division operator. |
operator ScaleFactor |
Multiplication operator. |
String |
toString() |
Extension functions | ||||
---|---|---|---|---|
From androidx.compose.ui.layout
|
Properties | |
---|---|
Float |
Returns the scale factor to apply along the horizontal axis |
Float |
Returns the scale factor to apply along the vertical axis |
Companion properties | |
---|---|
ScaleFactor |
A ScaleFactor whose scaleX and scaleY parameters are unspecified. |
Extension properties | ||||
---|---|---|---|---|
From androidx.compose.ui.layout
|
Public constructors
<init>
ScaleFactor(packedValue: Long)
Holds 2 dimensional scaling factors for horizontal and vertical axes
Public methods
component1
@Stable inline operator fun component1(): Float
component2
@Stable inline operator fun component2(): Float
copy
fun copy(
scaleX: Float = this.scaleX,
scaleY: Float = this.scaleY
): ScaleFactor
Returns a copy of this ScaleFactor instance optionally overriding the scaleX or scaleY parameters
div
@Stable operator fun div(operand: Float): ScaleFactor
Division operator.
Returns a ScaleFactor with scale x and y values divided by the operand
times
@Stable operator fun times(operand: Float): ScaleFactor
Multiplication operator.
Returns a ScaleFactor with scale x and y values multiplied by the operand
toString
fun toString(): String
Properties
Companion properties
Unspecified
@Stable val Unspecified: ScaleFactor
A ScaleFactor whose scaleX and scaleY parameters are unspecified. This is a sentinel value used to initialize a non-null parameter. Access to scaleX or scaleY on an unspecified size is not allowed