SpatialBiasAlignment.Vertical

class SpatialBiasAlignment.Vertical : SpatialAlignment.Vertical


Creates a weighted alignment that specifies a vertical bias.

Summary

Public constructors

Vertical(bias: Float)

Public functions

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

Provides the vertical 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 bottom and 1 being top.

Public constructors

Vertical

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

Must be within the range of -1, 1 with -1 being bottom and 1 being top.

Public functions

copy

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

equals

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

hashCode

open fun hashCode(): Int

offset

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

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

Parameters
height: Int

The content height in pixels.

space: Int

The available space in pixels.

See also
verticalOffset

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 bottom and 1 being top.