Class

AdwSqueezer

Description [src]

final class Adw.Squeezer : Gtk.Widget {
  /* 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

Ancestors

  • GtkWidget
  • GInitiallyUnowned
  • GObject

Implements

  • GtkAccessible
  • GtkBuildable
  • GtkConstraintTarget
  • GtkOrientable

Constructors

adw_squeezer_new

Creates a new AdwSqueezer.

Deprecated since: 1.4

Instance methods

adw_squeezer_add

Adds a child to self.

Deprecated since: 1.4

adw_squeezer_get_allow_none

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

Deprecated since: 1.4

adw_squeezer_get_homogeneous

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

Deprecated since: 1.4

adw_squeezer_get_interpolate_size

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

Deprecated since: 1.4

adw_squeezer_get_page

Returns the AdwSqueezerPage object for child.

Deprecated since: 1.4

adw_squeezer_get_pages

Returns a GListModel that contains the pages of self.

Deprecated since: 1.4

adw_squeezer_get_switch_threshold_policy

Gets the switch threshold policy for self.

Deprecated since: 1.4

adw_squeezer_get_transition_duration

Gets the transition animation duration for self.

Deprecated since: 1.4

adw_squeezer_get_transition_running

Gets whether a transition is currently running for self.

Deprecated since: 1.4

adw_squeezer_get_transition_type

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

Deprecated since: 1.4

adw_squeezer_get_visible_child

Gets the currently visible child of self.

Deprecated since: 1.4

adw_squeezer_get_xalign

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

Deprecated since: 1.4

adw_squeezer_get_yalign

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

Deprecated since: 1.4

adw_squeezer_remove

Removes a child widget from self.

Deprecated since: 1.4

adw_squeezer_set_allow_none

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

Deprecated since: 1.4

adw_squeezer_set_homogeneous

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

Deprecated since: 1.4

adw_squeezer_set_interpolate_size

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

Deprecated since: 1.4

adw_squeezer_set_switch_threshold_policy

Sets the switch threshold policy for self.

Deprecated since: 1.4

adw_squeezer_set_transition_duration

Sets the transition animation duration for self.

Deprecated since: 1.4

adw_squeezer_set_transition_type

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

Deprecated since: 1.4

adw_squeezer_set_xalign

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

Deprecated since: 1.4

adw_squeezer_set_yalign

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

Deprecated since: 1.4

Properties

Adw.Squeezer:allow-none

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

Deprecated since: 1.4

Adw.Squeezer:homogeneous

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

Deprecated since: 1.4

Adw.Squeezer:interpolate-size

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

Deprecated since: 1.4

Adw.Squeezer:pages

A selection model with the squeezer’s pages.

Deprecated since: 1.4

Adw.Squeezer:switch-threshold-policy

The switch threshold policy.

Deprecated since: 1.4

Adw.Squeezer:transition-duration

The transition animation duration, in milliseconds.

Deprecated since: 1.4

Adw.Squeezer:transition-running

Whether a transition is currently running.

Deprecated since: 1.4

Adw.Squeezer:transition-type

The type of animation used for transitions between children.

Deprecated since: 1.4

Adw.Squeezer:visible-child

The currently visible child.

Deprecated since: 1.4

Adw.Squeezer:xalign

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

Deprecated since: 1.4

Adw.Squeezer:yalign

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

Deprecated since: 1.4

Class structure

struct AdwSqueezerClass {
  GtkWidgetClass parent_class;
  
}
Class members
parent_class
GtkWidgetClass
  No description available.