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.

Ancestors

  • GtkWidget
  • GInitiallyUnowned
  • GObject

Implements

  • GtkAccessible
  • GtkBuildable
  • GtkConstraintTarget
  • GtkOrientable

Constructors

adw_squeezer_new

Creates a new AdwSqueezer.

Instance methods

adw_squeezer_add

Adds a child to self.

adw_squeezer_get_allow_none

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

adw_squeezer_get_homogeneous

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

adw_squeezer_get_interpolate_size

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

adw_squeezer_get_page

Returns the AdwSqueezerPage object for child.

adw_squeezer_get_pages

Returns a GListModel that contains the pages of self.

adw_squeezer_get_switch_threshold_policy

Gets the switch threshold policy for self.

adw_squeezer_get_transition_duration

Gets the transition animation duration for self.

adw_squeezer_get_transition_running

Gets whether a transition is currently running for self.

adw_squeezer_get_transition_type

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

adw_squeezer_get_visible_child

Gets the currently visible child of self.

adw_squeezer_get_xalign

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

adw_squeezer_get_yalign

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

adw_squeezer_remove

Removes a child widget from self.

adw_squeezer_set_allow_none

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

adw_squeezer_set_homogeneous

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

adw_squeezer_set_interpolate_size

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

adw_squeezer_set_switch_threshold_policy

Sets the switch threshold policy for self.

adw_squeezer_set_transition_duration

Sets the transition animation duration for self.

adw_squeezer_set_transition_type

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

adw_squeezer_set_xalign

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

adw_squeezer_set_yalign

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

Properties

Adw.Squeezer:allow-none

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

Adw.Squeezer:homogeneous

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

Adw.Squeezer:interpolate-size

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

Adw.Squeezer:pages

A selection model with the squeezer’s pages.

Adw.Squeezer:switch-threshold-policy

The switch threshold policy.

Adw.Squeezer:transition-duration

The transition animation duration, in milliseconds.

Adw.Squeezer:transition-running

Whether a transition is currently running.

Adw.Squeezer:transition-type

The type of animation used for transitions between children.

Adw.Squeezer:visible-child

The currently visible child.

Adw.Squeezer:xalign

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

Adw.Squeezer:yalign

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

Class structure

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