Squeezer

class Squeezer(pointer: <Error class: unknown class><<Error class: unknown class>>)

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

CSS nodes

AdwSqueezer has a single CSS node with name squeezer.

Constructors

Link copied to clipboard
constructor()

Creates a new AdwSqueezer.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adwSqueezerPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

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

Link copied to clipboard
open val gtkAccessiblePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkBuildablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkConstraintTargetPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkOrientablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
val pages: <Error class: unknown class>

A selection model with the squeezer's pages.

Link copied to clipboard

The switch threshold policy.

Link copied to clipboard
var transitionDuration: <Error class: unknown class>

The transition animation duration, in milliseconds.

Link copied to clipboard

Whether a transition is currently running.

Link copied to clipboard

The type of animation used for transitions between children.

Link copied to clipboard
val visibleChild: <Error class: unknown class>?

The currently visible child.

Link copied to clipboard

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

Link copied to clipboard

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

Functions

Link copied to clipboard
fun add(child: <Error class: unknown class>): SqueezerPage

Adds a child to @self.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
fun getPage(child: <Error class: unknown class>): SqueezerPage

Returns the class@SqueezerPage object for @child.

Link copied to clipboard
fun getPages(): <Error class: unknown class>

Returns a iface@Gio.ListModel that contains the pages of @self.

Link copied to clipboard

Gets the switch threshold policy for @self.

Link copied to clipboard
fun getTransitionDuration(): <Error class: unknown class>

Gets the transition animation duration for @self.

Link copied to clipboard

Gets whether a transition is currently running for @self.

Link copied to clipboard

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

Link copied to clipboard
fun getVisibleChild(): <Error class: unknown class>?

Gets the currently visible child of @self.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
fun remove(child: <Error class: unknown class>)

Removes a child widget from @self.

Link copied to clipboard
fun setAllowNone(allowNone: Boolean)

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

Link copied to clipboard
fun setHomogeneous(homogeneous: Boolean)

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

Link copied to clipboard
fun setInterpolateSize(interpolateSize: Boolean)

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

Link copied to clipboard

Sets the switch threshold policy for @self.

Link copied to clipboard
fun setTransitionDuration(duration: <Error class: unknown class>)

Sets the transition animation duration for @self.

Link copied to clipboard

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

Link copied to clipboard
fun setXalign(xalign: Float)

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

Link copied to clipboard
fun setYalign(yalign: Float)

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