SpatialBiasAlignment.Vertical

class SpatialBiasAlignment.Vertical : SpatialAlignment.Vertical


Creates a weighted alignment that specifies a vertical bias.

Summary

Public constructors

Vertical(verticalBias: @FloatRange(from = -1.0, to = 1.0) Float)

Public functions

open Int
align(size: Int, space: Int)

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

SpatialBiasAlignment.Vertical
copy(bias: Float)
open operator Boolean
equals(other: Any?)
open Int
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-alpha16
Vertical(verticalBias: @FloatRange(from = -1.0, to = 1.0) Float)
Parameters
verticalBias: @FloatRange(from = -1.0, to = 1.0) Float

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

Public functions

align

open fun align(size: Int, space: Int): Int

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

Parameters
size: Int

The content size in pixels.

space: Int

The available space in pixels.

copy

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

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

verticalBias

Added in 1.0.0-alpha16
val verticalBiasFloat

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