SpatialAlignment.Vertical

interface SpatialAlignment.Vertical

Known direct subclasses
SpatialBiasAlignment.Vertical

Creates a weighted alignment that specifies a vertical bias.


An interface to calculate the position of a box of a certain height inside an available height.

Summary

Public functions

Int
offset(height: Int, space: Int)

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

Public functions

offset

Added in 1.0.0-alpha04
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