IntrinsicMeasurable
interface IntrinsicMeasurable
androidx.compose.ui.layout.IntrinsicMeasurable |
A part of the composition that can be measured. This represents a layout. The instance should never be stored.
Summary
Public methods | |
---|---|
abstract Int |
maxIntrinsicHeight(width: Int) Calculates the smallest height beyond which increasing the height never decreases the width. |
abstract Int |
maxIntrinsicWidth(height: Int) Calculates the smallest width beyond which increasing the width never decreases the height. |
abstract Int |
minIntrinsicHeight(width: Int) Calculates the minimum height that the layout can be such that the content of the layout will be painted correctly. |
abstract Int |
minIntrinsicWidth(height: Int) Calculates the minimum width that the layout can be such that the content of the layout will be painted correctly. |
Properties | |
---|---|
abstract Any? |
Data provided by the |
Public methods
maxIntrinsicHeight
abstract fun maxIntrinsicHeight(width: Int): Int
Calculates the smallest height beyond which increasing the height never decreases the width.
maxIntrinsicWidth
abstract fun maxIntrinsicWidth(height: Int): Int
Calculates the smallest width beyond which increasing the width never decreases the height.
minIntrinsicHeight
abstract fun minIntrinsicHeight(width: Int): Int
Calculates the minimum height that the layout can be such that the content of the layout will be painted correctly.
minIntrinsicWidth
abstract fun minIntrinsicWidth(height: Int): Int
Calculates the minimum width that the layout can be such that the content of the layout will be painted correctly.