Squeezer


Object Hierarchy:

Object hierarchy for Squeezer

Description:

[ CCode ( type_id = "adw_squeezer_get_type ()" ) ]
[ Version ( deprecated = true , deprecated_since = "1.4" ) ]
public sealed class Squeezer : Widget, Accessible, Buildable, ConstraintTarget, Orientable

Warning: Squeezer is deprecated since 1.4.

A best fit container.

Note:

See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)

<picture> <source srcset="squeezer-wide-dark.png" media="(prefers-color-scheme: dark)"> <img src="squeezer-wide.png" alt="squeezer-wide"> </picture> <picture> <source srcset="squeezer-narrow-dark.png" media="(prefers-color-scheme: dark) "> <img src="squeezer-narrow.png" alt="squeezer-narrow"> </picture>

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 [property@Squeezer:transition-type].

CSS nodes

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


Namespace: Adw
Package: libadwaita-1

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from interface Gtk.Orientable