MaxSizeScope

Known direct subclasses
LayoutStyleScope

This interface is deprecated. This scope type is being removed.

Known indirect subclasses
StyleScope

This interface is deprecated. This scope type is being removed.


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

See also
StyleScope

Summary

Public functions

Unit
maxHeight(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
Unit
maxWidth(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn

Extension functions

Unit

This function is deprecated. This style property is being removed.

Cmn
Unit

This function is deprecated. This style property is being removed.

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.