Class

AdwSqueezer

deprecated: 1.4 

[]

Description [src]

final class Adw.Squeezer : Gtk.Widget
  implements Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Orientable {
  /* No available fields */
}

A best fit container.

squeezer-wide squeezer-narrow

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.

Deprecated since: 1.4

See the migration guide.

[]

Hierarchy

hierarchy this AdwSqueezer implements_0 GtkAccessible this--implements_0 implements_1 GtkBuildable this--implements_1 implements_2 GtkConstraintTarget this--implements_2 implements_3 GtkOrientable this--implements_3 ancestor_0 GtkWidget ancestor_0--this ancestor_1 GInitiallyUnowned ancestor_1--ancestor_0 ancestor_2 GObject ancestor_2--ancestor_1
[]

Constructors

adw_squeezer_new

Creates a new AdwSqueezer.

deprecated: 1.4 

[]

Instance methods

adw_squeezer_add

Adds a child to self.

deprecated: 1.4 

adw_squeezer_get_allow_none

Gets whether to allow squeezing beyond the last child’s minimum size.

deprecated: 1.4 

adw_squeezer_get_homogeneous

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

deprecated: 1.4 

adw_squeezer_get_interpolate_size

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

deprecated: 1.4 

adw_squeezer_get_page

Returns the AdwSqueezerPage object for child.

deprecated: 1.4 

adw_squeezer_get_pages

Returns a GListModel that contains the pages of self.

deprecated: 1.4 

adw_squeezer_get_switch_threshold_policy

Gets the switch threshold policy for self.

deprecated: 1.4 

adw_squeezer_get_transition_duration

Gets the transition animation duration for self.

deprecated: 1.4 

adw_squeezer_get_transition_running

Gets whether a transition is currently running for self.

deprecated: 1.4 

adw_squeezer_get_transition_type

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

deprecated: 1.4 

adw_squeezer_get_visible_child

Gets the currently visible child of self.

deprecated: 1.4 

adw_squeezer_get_xalign

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

deprecated: 1.4 

adw_squeezer_get_yalign

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

deprecated: 1.4 

adw_squeezer_remove

Removes a child widget from self.

deprecated: 1.4 

adw_squeezer_set_allow_none

Sets whether to allow squeezing beyond the last child’s minimum size.

deprecated: 1.4 

adw_squeezer_set_homogeneous

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

deprecated: 1.4 

adw_squeezer_set_interpolate_size

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

deprecated: 1.4 

adw_squeezer_set_switch_threshold_policy

Sets the switch threshold policy for self.

deprecated: 1.4 

adw_squeezer_set_transition_duration

Sets the transition animation duration for self.

deprecated: 1.4 

adw_squeezer_set_transition_type

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

deprecated: 1.4 

adw_squeezer_set_xalign

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

deprecated: 1.4 

adw_squeezer_set_yalign

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

deprecated: 1.4 

Methods inherited from GtkWidget (164)
Methods inherited from GObject (43)
Methods inherited from GtkAccessible (20)
Methods inherited from GtkBuildable (1)
Methods inherited from GtkOrientable (2)
[]

Properties

Adw.Squeezer:allow-none

Whether to allow squeezing beyond the last child’s minimum size.

deprecated: 1.4 

Adw.Squeezer:homogeneous

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

deprecated: 1.4 

Adw.Squeezer:interpolate-size

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

deprecated: 1.4 

Adw.Squeezer:pages

A selection model with the squeezer’s pages.

deprecated: 1.4 

Adw.Squeezer:switch-threshold-policy

The switch threshold policy.

deprecated: 1.4 

Adw.Squeezer:transition-duration

The transition animation duration, in milliseconds.

deprecated: 1.4 

Adw.Squeezer:transition-running

Whether a transition is currently running.

deprecated: 1.4 

Adw.Squeezer:transition-type

The type of animation used for transitions between children.

deprecated: 1.4 

Adw.Squeezer:visible-child

The currently visible child.

deprecated: 1.4 

Adw.Squeezer:xalign

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

deprecated: 1.4 

Adw.Squeezer:yalign

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

deprecated: 1.4 

Properties inherited from GtkWidget (35)
Properties inherited from GtkAccessible (1)
Properties inherited from GtkOrientable (1)
[]

Signals

Signals inherited from GtkWidget (13)
Signals inherited from GObject (1)

Class structure