Adw.Squeezer
Description: Reference for Adw.Squeezer

### Class

# AdwSqueezer

#### Description [src]

    final class Adw.Squeezer : Gtk.Widget {
      /* No available fields */
    }

A best fit container.

The `AdwSqueezer` widget is a container which only shows the first of its children that fits in the available size. It is convenient to offer different widgets to represent the same data with different levels of detail, making the widget seem to squeeze itself to fit in the available space.

Transitions between children can be animated as fades. This can be controlled with `AdwSqueezer:transition-type`.

## CSS nodes

`AdwSqueezer` has a single CSS node with name `squeezer`.

Available since: | 1.0

#### Hierarchy

#### Ancestors

- GtkWidget
- GInitiallyUnowned
- GObject

#### Implements

- GtkAccessible
- GtkBuildable
- GtkConstraintTarget
- GtkOrientable

#### Constructors

###### adw_squeezer_new

Creates a new `AdwSqueezer`.

Available since: 1.0

#### Instance methods

###### adw_squeezer_add

Adds a child to `self`.

Available since: 1.0

###### adw_squeezer_get_homogeneous

Gets whether all children have the same size for the opposite orientation.

Available since: 1.0

###### adw_squeezer_get_interpolate_size

Gets whether `self` interpolates its size when changing the visible child.

Available since: 1.0

###### adw_squeezer_get_page

Returns the `AdwSqueezerPage` object for `child`.

Available since: 1.0

###### adw_squeezer_get_pages

Returns a `GListModel` that contains the pages of the squeezer,

Available since: 1.0

###### adw_squeezer_get_transition_duration

Gets the transition animation duration for `self`.

Available since: 1.0

###### adw_squeezer_get_transition_running

Gets whether a transition is currently running for `self`.

Available since: 1.0

###### adw_squeezer_get_transition_type

Gets the type of animation used for transitions between children in `self`.

Available since: 1.0

###### adw_squeezer_get_visible_child

Gets the currently visible child of `self`.

Available since: 1.0

###### adw_squeezer_get_xalign

Gets the horizontal alignment, from 0 (start) to 1 (end).

Available since: 1.0

###### adw_squeezer_get_yalign

Gets the vertical alignment, from 0 (top) to 1 (bottom).

Available since: 1.0

###### adw_squeezer_remove

Removes a child widget from `self`.

Available since: 1.0

###### adw_squeezer_set_homogeneous

Sets hether all children have the same size for the opposite orientation.

Available since: 1.0

###### adw_squeezer_set_interpolate_size

Sets whether `self` interpolates its size when changing the visible child.

Available since: 1.0

###### adw_squeezer_set_transition_duration

Sets the transition animation duration for `self`.

Available since: 1.0

###### adw_squeezer_set_transition_type

Sets the type of animation used for transitions between children in `self`.

Available since: 1.0

###### adw_squeezer_set_xalign

Sets the horizontal alignment, from 0 (start) to 1 (end).

Available since: 1.0

###### adw_squeezer_set_yalign

Sets the vertical alignment, from 0 (top) to 1 (bottom).

Available since: 1.0

#### Properties

###### Adw.Squeezer:homogeneous

Whether all children have the same size for the opposite orientation.

Available since: 1.0

###### Adw.Squeezer:interpolate-size

Whether the squeezer interpolates its size when changing the visible child.

Available since: 1.0

###### Adw.Squeezer:pages

A selection model with the squeezer’s pages.

Available since: 1.0

###### Adw.Squeezer:transition-duration

The animation duration, in milliseconds.

Available since: 1.0

###### Adw.Squeezer:transition-running

Whether a transition is currently running.

Available since: 1.0

###### Adw.Squeezer:transition-type

The type of animation used for transitions between children.

Available since: 1.0

###### Adw.Squeezer:visible-child

The currently visible child.

Available since: 1.0

###### Adw.Squeezer:xalign

The horizontal alignment, from 0 (start) to 1 (end).

Available since: 1.0

###### Adw.Squeezer:yalign

The vertical alignment, from 0 (top) to 1 (bottom).

Available since: 1.0

#### Class structure

    struct AdwSqueezerClass {
      GtkWidgetClass parent_class;

    }

###### Class members

`parent_class` |
    GtkWidgetClass
| No description available.