Album


Object Hierarchy:

Object hierarchy for Album

Description:

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

An adaptive container acting like a box or a stack.

<picture> <source srcset="album-wide-dark.png" media="(prefers-color-scheme: dark)"> <img src="album-wide.png" alt="album-wide"> </picture> <picture> <source srcset="album-narrow-dark.png" media="(prefers-color-scheme: dark)"> <img src="album-narrow.png" alt="album-narrow"> </picture>

The `BisAlbum` widget can display its children like a [class@Gtk.Box] does or like a [class@Gtk.Stack] does, adapting to size changes by switching between the two modes.

When there is enough space the children are displayed side by side, otherwise only one is displayed and the album is said to be “folded”. The threshold is dictated by the preferred minimum sizes of the children. When a album is folded, the children can be navigated using swipe gestures.

The “over” and “under” transition types stack the children one on top of the other, while the “slide” transition puts the children side by side. While navigating to a child on the side or below can be performed by swiping the current child away, navigating to an upper child requires dragging it from the edge where it resides. This doesn't affect non-dragging swipes.

CSS nodes

`BisAlbum` has a single CSS node with name `album`. The node will get the style classes `.folded` when it is folded, `.unfolded` when it's not, or none if it hasn't computed its fold yet.


Namespace: Bis
Package: libbismuth-1

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from interface Bis.Swipeable
All known members inherited from interface Gtk.Orientable