Squeezer


Object Hierarchy:

Adw.Squeezer Adw.Squeezer Adw.Squeezer Gtk.Widget Gtk.Widget Gtk.Widget->Adw.Squeezer GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Adw.Squeezer Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Adw.Squeezer Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Adw.Squeezer Gtk.ConstraintTarget->Gtk.Widget Gtk.Orientable Gtk.Orientable Gtk.Orientable->Adw.Squeezer

Description:

[ CCode ( type_id = "adw_squeezer_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public sealed class Squeezer : Widget, Accessible, Buildable, ConstraintTarget, Orientable

A best fit container.

<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 class GLib.Object
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.Buildable
All known members inherited from interface Gtk.Orientable



2022 vala-language.org