ClampLayout

class ClampLayout(pointer: <Error class: unknown class><<Error class: unknown class>>)

A layout manager constraining its children to a given size.

clamp-wide clamp-narrow

AdwClampLayout constraints the size of the widgets it contains to a given maximum size. It will constrain the width if it is horizontal, or the height if it is vertical. The expansion of the children from their minimum to their maximum size is eased out for a smooth transition.

If a child requires more than the requested maximum size, it will be allocated the minimum size it can fit in instead.

AdwClampLayout can scale with the text scale factor, use the property@ClampLayout:unit property to enable that behavior.

See also: class@Clamp, class@ClampScrollable.

Constructors

Link copied to clipboard
constructor()

Creates a new AdwClampLayout.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adwClampLayoutPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkOrientablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

The maximum size to allocate to the children.

Link copied to clipboard

The size above which the children are clamped.

Link copied to clipboard

The length unit for maximum size and tightening threshold.

Functions

Link copied to clipboard

Gets the maximum size allocated to the children.

Link copied to clipboard

Gets the size above which the children are clamped.

Link copied to clipboard

Gets the length unit for maximum size and tightening threshold.

Link copied to clipboard
fun setMaximumSize(maximumSize: Int)

Sets the maximum size allocated to the children.

Link copied to clipboard
fun setTighteningThreshold(tighteningThreshold: Int)

Sets the size above which the children are clamped.

Link copied to clipboard
fun setUnit(unit: LengthUnit)

Sets the length unit for maximum size and tightening threshold.