MutableHorizontalDimensions

data class MutableHorizontalDimensions(var xSpacing: Float = 0.0f, var scalableStartPadding: Float = 0.0f, var scalableEndPadding: Float = 0.0f, var unscalableStartPadding: Float = 0.0f, var unscalableEndPadding: Float = 0.0f) : HorizontalDimensions

An implementation of HorizontalDimensions whose every property is mutable.

Constructors

Link copied to clipboard
constructor(xSpacing: Float = 0.0f, scalableStartPadding: Float = 0.0f, scalableEndPadding: Float = 0.0f, unscalableStartPadding: Float = 0.0f, unscalableEndPadding: Float = 0.0f)

Properties

Link copied to clipboard
open override var scalableEndPadding: Float

The scalable part of the distance between the end of the content area and the last entry (in pixels).

Link copied to clipboard
open override var scalableStartPadding: Float

The scalable part of the distance between the start of the content area and the first entry (in pixels).

Link copied to clipboard
open override var unscalableEndPadding: Float

The unscalable part of the distance between the end of the content area and the last entry (in pixels).

Link copied to clipboard
open override var unscalableStartPadding: Float

The unscalable part of the distance between the start of the content area and the first entry (in pixels).

Link copied to clipboard
open override var xSpacing: Float

The distance between neighboring major entries (in pixels). This can be scaled.

Functions

Link copied to clipboard
fun clear()

Clears the stored values.

Link copied to clipboard
fun ensureValuesAtLeast(xSpacing: Float = 0.0f, scalableStartPadding: Float = 0.0f, scalableEndPadding: Float = 0.0f, unscalableStartPadding: Float = 0.0f, unscalableEndPadding: Float = 0.0f): MutableHorizontalDimensions

Ensures that the stored values are no smaller than the provided ones.

Link copied to clipboard
fun set(xSpacing: Float, startPadding: Float, endPadding: Float): MutableHorizontalDimensions
fun set(xSpacing: Float, scalableStartPadding: Float, scalableEndPadding: Float, unscalableStartPadding: Float, unscalableEndPadding: Float): MutableHorizontalDimensions

Updates the stored values.