Package org.gnome.adw

Class Clamp

java.lang.Object
All Implemented Interfaces:
Proxy, Accessible, Buildable, ConstraintTarget, Orientable

@Generated("io.github.jwharm.JavaGI") public final class Clamp extends Widget implements Accessible, Buildable, ConstraintTarget, Orientable
A widget constraining its child to a given size.

clamp-wide clamp-narrow

The AdwClamp widget constrains the size of the widget 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 child from its minimum to its maximum size is eased out for a smooth transition.

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

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

CSS nodes
AdwClamp has a single CSS node with name clamp.