Adw.ClampLayout
Description: Reference for Adw.ClampLayout

### Class

# AdwClampLayout

#### Description [src]

    final class Adw.ClampLayout : Gtk.LayoutManager {
      /* No available fields */
    }

A layout manager constraining its children to a given size.

`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.

Each child will get the style classes .large when it reached its maximum size, .small when it’s allocated the full size, .medium in-between, or none if it hasn’t been allocated yet.

Available since: | 1.0

#### Hierarchy

#### Ancestors

- GtkLayoutManager
- GObject

#### Implements

- GtkOrientable

#### Constructors

###### adw_clamp_layout_new

Creates a new `AdwClampLayout`.

Available since: 1.0

#### Instance methods

###### adw_clamp_layout_get_maximum_size

Gets the maximum size allocated to the children.

Available since: 1.0

###### adw_clamp_layout_get_tightening_threshold

Gets the size above which the children are clamped.

Available since: 1.0

###### adw_clamp_layout_set_maximum_size

Sets the maximum size allocated to the children.

Available since: 1.0

###### adw_clamp_layout_set_tightening_threshold

Sets the size above which the children are clamped.

Available since: 1.0

##### Methods inherited from GtkLayoutManager (6)

##### Methods inherited from GObject (43)

#### Properties

###### Adw.ClampLayout:maximum-size

The maximum size to allocate to the children.

Available since: 1.0

###### Adw.ClampLayout:tightening-threshold

The size above which the child is clamped.

Available since: 1.0

#### Signals

##### Signals inherited from GObject (1)

#### Class structure

    struct AdwClampLayoutClass {
      GtkLayoutManagerClass parent_class;

    }

###### Class members

`parent_class` |
    GtkLayoutManagerClass
| No description available.