MinSizeScope

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 min size properties to a Style receiver scope interface.

See also
StyleScope

Summary

Public functions

Unit
minHeight(value: Dp)

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

Cmn
Unit
minWidth(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

minHeight

fun minHeight(value: Dp): Unit

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

This property is not inherited

Parameters
value: Dp

The minimum height.

minWidth

fun minWidth(value: Dp): Unit

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

This property is not inherited

Parameters
value: Dp

The minimum width.

Extension functions

MinSizeScope.minSize

@ExperimentalFoundationStyleApi
fun MinSizeScope.minSize(size: DpSize): Unit

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

This property is not inherited

Parameters
size: DpSize

The minimum size (DpSize).

MinSizeScope.minSize

@ExperimentalFoundationStyleApi
fun MinSizeScope.minSize(width: Dp, height: Dp): Unit

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

This property is not inherited

Parameters
width: Dp

The minimum width.

height: Dp

The minimum height.