LayoutElementBuilders.StrokeCapProp.Builder


class LayoutElementBuilders.StrokeCapProp.Builder


Builder for StrokeCapProp

Summary

Public constructors

@RequiresSchemaVersion(major = 1, minor = 200)
Builder()

Creates an instance of Builder.

Public functions

LayoutElementBuilders.StrokeCapProp

Builds an instance from accumulated values.

LayoutElementBuilders.StrokeCapProp.Builder
@RequiresSchemaVersion(major = 1, minor = 300)
setShadow(shadow: ModifiersBuilders.Shadow)

Sets the stroke cap's shadow.

LayoutElementBuilders.StrokeCapProp.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setValue(value: Int)

Sets the value.

Public constructors

Builder

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): LayoutElementBuilders.StrokeCapProp

Builds an instance from accumulated values.

setShadow

Added in 1.1.0
@RequiresSchemaVersion(major = 1, minor = 300)
fun setShadow(shadow: ModifiersBuilders.Shadow): LayoutElementBuilders.StrokeCapProp.Builder

Sets the stroke cap's shadow. When set, the stroke cap will be drawn with a shadow, which allows it to be visible on top of other similarly colored elements.

Only opaque colors are supported in ArcLine if a shadow is set. Any transparent colors will have their alpha component set to 0xFF (opaque).

setValue

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setValue(value: Int): LayoutElementBuilders.StrokeCapProp.Builder

Sets the value.