LayoutElementBuilders.Spacer.Builder

Added in 1.0.0
Deprecated in 1.2.0

class LayoutElementBuilders.Spacer.Builder : LayoutElementBuilders.LayoutElement.Builder


Builder for Spacer.

Summary

Public constructors

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.2.0
Builder()

Public functions

build

Added in 1.4.0-alpha01
Deprecated in 1.4.0-alpha01
fun build(): LayoutElementBuilders.Spacer

Builds an instance with values accumulated in this Builder.

setHeight

Added in 1.0.0
Deprecated in 1.2.0
fun setHeight(height: DimensionBuilders.SpacerDimension): LayoutElementBuilders.Spacer.Builder

Sets the height of this spacer. If not defined, defaults to 0.

setWidth

Added in 1.0.0
Deprecated in 1.2.0
fun setWidth(width: DimensionBuilders.SpacerDimension): LayoutElementBuilders.Spacer.Builder

Sets the width of this Spacer. When this is added as the direct child of an Arc, this must be specified as an angular dimension, otherwise a linear dimension must be used. If not defined, defaults to 0.