Class

ScaleFactor

Holds 2 dimensional scaling factors for horizontal and vertical axes

Source set: Common
public class ScaleFactor(public val packedValue: Long)

Holds 2 dimensional scaling factors for horizontal and vertical axes

Properties

scaleX

Source set: Common
public inline val scaleX: Float

Returns the scale factor to apply along the horizontal axis

scaleY

Source set: Common
public inline val scaleY: Float

Returns the scale factor to apply along the vertical axis

Functions

component1

Source set: Common
@Stable public inline operator fun component1(): Float

component2

Source set: Common
@Stable public inline operator fun component2(): Float

copy

Source set: Common
public 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

times

Source set: Common
public operator fun times(operand: Float): ScaleFactor

Multiplication operator.

Returns a ScaleFactor with scale x and y values multiplied by the operand

div

Source set: Common
public operator fun div(operand: Float): ScaleFactor

Division operator.

Returns a ScaleFactor with scale x and y values divided by the operand

Members

Companion

Source set: Common
public companion object

Properties

Unspecified

Source set: Common
public 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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: