Known direct subclasses
LayoutStyleScope

An interface that introduces the layout properties to a Style receiver scope.

Known indirect subclasses
StyleScope

A StyleScope is the receiver scope of a Style lambda.


An interface that introduces maxWidth and maxHeight properties to a Style receiver scope.

See also
StyleScope

Summary

Public functions

Unit
maxHeight(value: Dp)

Constrains the maximum height of the component.

Cmn
Unit
maxWidth(value: Dp)

Constrains the maximum width of the component.

Cmn

Extension functions

Unit

Constrains the maximum size (width and height) of the component.

Cmn
Unit

Constrains the maximum width and height of the component.

Cmn

Public functions

maxHeight

fun maxHeight(value: Dp): Unit

Constrains the maximum height of the component. The component's height, including padding, will be at most this value.

This property is not inherited

Parameters
value: Dp

The maximum height.

maxWidth

fun maxWidth(value: Dp): Unit

Constrains the maximum width of the component. The component's width, including padding, will be at most this value.

This property is not inherited

Parameters
value: Dp

The maximum width.

Extension functions

MaxSizeScope.maxSize

@ExperimentalFoundationStyleApi
fun MaxSizeScope.maxSize(size: DpSize): Unit

Constrains the maximum size (width and height) of the component. The component's dimensions, including padding, will be at most these values.

This property is not inherited

Parameters
size: DpSize

The maximum size (DpSize).

MaxSizeScope.maxSize

@ExperimentalFoundationStyleApi
fun MaxSizeScope.maxSize(width: Dp, height: Dp): Unit

Constrains the maximum width and height of the component. The component's dimensions, including padding, will be at most these values.

This property is not inherited

Parameters
width: Dp

The maximum width.

height: Dp

The maximum height.