ModifiersBuilders.Background


@RequiresSchemaVersion(major = 1, minor = 0)
class ModifiersBuilders.Background


A modifier to apply a background to an element.

Summary

Nested types

Builder for Background

Public functions

ColorBuilders.ColorProp?

Gets the background color for this element.

ModifiersBuilders.Corner?

Gets the corner properties of this element.

String

Public functions

getColor

Added in 1.0.0
fun getColor(): ColorBuilders.ColorProp?

Gets the background color for this element. If not defined, defaults to being transparent.

While this field is statically accessible from 1.0, it's only bindable since version 1.2 and renderers supporting version 1.2 will use the dynamic value (if set).

getCorner

Added in 1.0.0
fun getCorner(): ModifiersBuilders.Corner?

Gets the corner properties of this element. This only affects the drawing of this element if it has a background color or border. If not defined, defaults to having a square corner.

toString

fun toString(): String