adw.clamp_layout

Module for [ClampLayout] class

Types 3

A layout manager constraining its children to a given size.

clamp-wide clamp-narrow

adw.clamp_layout.ClampLayout 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.

adw.clamp_layout.ClampLayout can scale with the text scale factor, use the adw.clamp_layout.ClampLayout.unit property to enable that behavior.

See also: adw.clamp.Clamp, adw.clamp_scrollable.ClampScrollable.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
ClampLayout self() nothrowReturns `this`, for use in `with` statements.
ClampLayoutGidBuilder builder() static nothrowGet builder for [adw.clamp_layout.ClampLayout] Returns: New builder object
int maximumSize() @property nothrowGet `maximumSize` property. Returns: The maximum size to allocate to the children.
void maximumSize(int propval) @property nothrowSet `maximumSize` property. Params: propval = The maximum size to allocate to the children.
int tighteningThreshold() @property nothrowGet `tighteningThreshold` property. Returns: The size above which the children are clamped.
void tighteningThreshold(int propval) @property nothrowSet `tighteningThreshold` property. Params: propval = The size above which the children are clamped.
adw.types.LengthUnit unit() @property nothrowGet `unit` property. Returns: The length unit for maximum size and tightening threshold.
void unit(adw.types.LengthUnit propval) @property nothrowSet `unit` property. Params: propval = The length unit for maximum size and tightening threshold.
int getMaximumSize() nothrowGets the maximum size allocated to the children. Returns: the maximum size to allocate to the children
int getTighteningThreshold() nothrowGets the size above which the children are clamped. Returns: the size above which the children are clamped
adw.types.LengthUnit getUnit() nothrowGets the length unit for maximum size and tightening threshold. Returns: the length unit
void setMaximumSize(int maximumSize) nothrowSets the maximum size allocated to the children.
void setTighteningThreshold(int tighteningThreshold) nothrowSets the size above which the children are clamped.
void setUnit(adw.types.LengthUnit unit) nothrowSets the length unit for maximum size and tightening threshold.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [adw.clamp_layout.ClampLayout]. Returns: the newly created [adw.clamp_layout.ClampLayout]

Fluent builder implementation template for adw.clamp_layout.ClampLayout

Methods
T maximumSize(int propval) nothrowSet `maximumSize` property. Params: propval = The maximum size to allocate to the children.
T tighteningThreshold(int propval) nothrowSet `tighteningThreshold` property. Params: propval = The size above which the children are clamped.
T unit(adw.types.LengthUnit propval) nothrowSet `unit` property. Params: propval = The length unit for maximum size and tightening threshold.

Fluent builder for adw.clamp_layout.ClampLayout

Methods
ClampLayout build() nothrowCreate object from builder. Returns: New object