times
Source set: Common
inline operator fun Float.times(other: TextUnit): TextUnit
Multiply a TextUnit by a scalar.
This operation works only if the right operand is not equal to TextUnit.Unspecified. The result of this operation is the same unit type of the given one.
times
Source set: Common
inline operator fun Double.times(other: TextUnit): TextUnit
Multiply a TextUnit by a scalar.
This operation works only if the right operand is not equal to TextUnit.Unspecified. The result of this operation is the same unit type of the given one.
times
Source set: Common
inline operator fun Int.times(other: TextUnit): TextUnit
Multiply a TextUnit by a scalar.
This operation works only if the right operand is not equal to TextUnit.Unspecified. The result of this operation is the same unit type of the given one.
times
Source set: Common
inline operator fun Float.times(other: Dp) = Dp(this * other.value)
times
Source set: Common
inline operator fun Double.times(other: Dp) = Dp(this.toFloat() * other.value)
times
Source set: Common
inline operator fun Int.times(other: Dp) = Dp(this * other.value)
times
Source set: Common
inline operator fun Int.times(size: DpSize) = size * this
times
Source set: Common
inline operator fun Float.times(size: DpSize) = size * this
times
Source set: Common
inline operator fun Int.times(size: IntSize) = size * this
Returns an IntSize with size's IntSize.width and IntSize.height multiplied by this.