SpatialBiasAlignment.Horizontal

class SpatialBiasAlignment.Horizontal : SpatialAlignment.Horizontal


Creates a weighted alignment that specifies a horizontal bias.

Summary

Public constructors

Public functions

SpatialBiasAlignment.Horizontal
copy(bias: Float)
open operator Boolean
equals(other: Any?)
open Int
open Int
offset(width: Int, space: Int)

Provides the horizontal offset from the origin of the space to the origin of the content.

open String

Public properties

Float

Must be within the range of -1, 1 with -1 being left and 1 being right.

Public constructors

Horizontal

Added in 1.0.0-alpha04
Horizontal(bias: Float)
Parameters
bias: Float

Must be within the range of -1, 1 with -1 being left and 1 being right.

Public functions

copy

Added in 1.0.0-alpha04
fun copy(bias: Float = this.bias): SpatialBiasAlignment.Horizontal

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

offset

open fun offset(width: Int, space: Int): Int

Provides the horizontal offset from the origin of the space to the origin of the content.

Parameters
width: Int

The content width in pixels.

space: Int

The available space in pixels.

See also
horizontalOffset

toString

open fun toString(): String

Public properties

bias

Added in 1.0.0-alpha04
val biasFloat

Must be within the range of -1, 1 with -1 being left and 1 being right.