ModifiersBuilders.Corner.Builder


class ModifiersBuilders.Corner.Builder


Builder for Corner

Summary

Public constructors

Creates an instance of Builder.

Public functions

ModifiersBuilders.Corner

Builds an instance from accumulated values.

ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setBottomLeftRadius(bottomLeftRadius: ModifiersBuilders.CornerRadius)

Sets the radius for the bottom-left corner of either circular or elliptical shapes.

ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setBottomLeftRadius(
    xRadius: DimensionBuilders.DpProp,
    yRadius: DimensionBuilders.DpProp
)

Sets the radius for the bottom-left corner of either circular or elliptical shapes.

ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setBottomRightRadius(bottomRightRadius: ModifiersBuilders.CornerRadius)

Sets the radius for the bottom-right corner of either circular or elliptical shapes.

ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setBottomRightRadius(
    xRadius: DimensionBuilders.DpProp,
    yRadius: DimensionBuilders.DpProp
)

Sets the radius for the bottom-right corner of either circular or elliptical shapes.

ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setRadius(radius: DimensionBuilders.DpProp)

Sets the radius of the corner in DP.

ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setTopLeftRadius(topLeftRadius: ModifiersBuilders.CornerRadius)

Sets the radius for the top-left corner of either circular or elliptical shapes.

ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setTopLeftRadius(
    xRadius: DimensionBuilders.DpProp,
    yRadius: DimensionBuilders.DpProp
)

Sets the radius for the top-left corner of either circular or elliptical shapes.

ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setTopRightRadius(topRightRadius: ModifiersBuilders.CornerRadius)

Sets the radius for the top-right corner of either circular or elliptical shapes.

ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setTopRightRadius(
    xRadius: DimensionBuilders.DpProp,
    yRadius: DimensionBuilders.DpProp
)

Sets the radius for the top-right corner of either circular or elliptical shapes.

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): ModifiersBuilders.Corner

Builds an instance from accumulated values.

setBottomLeftRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
fun setBottomLeftRadius(bottomLeftRadius: ModifiersBuilders.CornerRadius): ModifiersBuilders.Corner.Builder

Sets the radius for the bottom-left corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setBottomLeftRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
fun setBottomLeftRadius(
    xRadius: DimensionBuilders.DpProp,
    yRadius: DimensionBuilders.DpProp
): ModifiersBuilders.Corner.Builder

Sets the radius for the bottom-left corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setBottomRightRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
fun setBottomRightRadius(bottomRightRadius: ModifiersBuilders.CornerRadius): ModifiersBuilders.Corner.Builder

Sets the radius for the bottom-right corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setBottomRightRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
fun setBottomRightRadius(
    xRadius: DimensionBuilders.DpProp,
    yRadius: DimensionBuilders.DpProp
): ModifiersBuilders.Corner.Builder

Sets the radius for the bottom-right corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setRadius

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setRadius(radius: DimensionBuilders.DpProp): ModifiersBuilders.Corner.Builder

Sets the radius of the corner in DP.

The shape for a specific corner can be overridden by setting that corner separately.

Note that this field only supports static values.

setTopLeftRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
fun setTopLeftRadius(topLeftRadius: ModifiersBuilders.CornerRadius): ModifiersBuilders.Corner.Builder

Sets the radius for the top-left corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setTopLeftRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
fun setTopLeftRadius(
    xRadius: DimensionBuilders.DpProp,
    yRadius: DimensionBuilders.DpProp
): ModifiersBuilders.Corner.Builder

Sets the radius for the top-left corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setTopRightRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
fun setTopRightRadius(topRightRadius: ModifiersBuilders.CornerRadius): ModifiersBuilders.Corner.Builder

Sets the radius for the top-right corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setTopRightRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
fun setTopRightRadius(
    xRadius: DimensionBuilders.DpProp,
    yRadius: DimensionBuilders.DpProp
): ModifiersBuilders.Corner.Builder

Sets the radius for the top-right corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.