Namespace

Bis – 1

Based on libadwaita responsive widgets, without all the baggage.

Version1.0.0
AuthorsFyra Labs & Purism SPC
LicenseLGPL-2.1-or-later
Websitehttps://docs.developers.tauos.co/libbismuth/
Sourcehttps://github.com/tau-OS/libbismuth/

Build

C headersbismuth.h
pkg-config fileslibbismuth-1

Dependencies

GObject—2.0 The base type system library
Browse documentation
Gtk—4.0 The GTK toolkit
Browse documentation

Additional documentation

Classes

Album

An adaptive container acting like a box or a stack.

AlbumPage

An auxiliary class used by BisAlbum.

Animation

A base class for animations.

AnimationTarget

Represents a value BisAnimation can animate.

Bin

A widget with one child.

CallbackAnimationTarget

An BisAnimationTarget that calls a given callback during the animation.

Carousel

A paginated scrolling widget.

CarouselIndicatorDots

A dots indicator for BisCarousel.

CarouselIndicatorLines

A lines indicator for BisCarousel.

EnumListItem

BisEnumListItem is the type of items in a BisEnumListModel.

EnumListModel

A GListModel representing values of a given enum.

Hugger

A best fit container.

HuggerPage

An auxiliary class used by BisHugger.

Lapel

An adaptive container acting like a box or an overlay.

Latch

A widget constraining its child to a given size.

LatchLayout

A layout manager constraining its children to a given size.

LatchScrollable

A scrollable BisLatch.

PropertyAnimationTarget

An BisAnimationTarget changing the value of a property of a GObject instance.

SpringAnimation

A spring-based BisAnimation.

SwipeTracker

A swipe tracker used in BisCarousel, BisLapel and BisAlbum.

TimedAnimation

A time-based BisAnimation.

Interfaces

Swipeable

An interface for swipeable widgets.

Structs

SpringParams

Physical parameters of a spring for BisSpringAnimation.

Enumerations

AlbumTransitionType

Describes the possible transitions in a BisAlbum widget.

AnimationState

Describes the possible states of an BisAnimation.

Easing

Describes the available easing functions for use with BisTimedAnimation.

FoldThresholdPolicy

Determines when BisLapel and BisAlbum will fold.

HuggerTransitionType

Describes the possible transitions in a BisHugger widget.

LapelFoldPolicy

Describes the possible folding behavior of a BisLapel widget.

LapelTransitionType

Describes transitions types of a BisLapel widget.

NavigationDirection

Describes the direction of a swipe navigation gesture.

Callbacks

AnimationTargetFunc

Prototype for animation targets based on user callbacks.

Functions

get_enable_animations

Checks whether animations are enabled for widget.

get_major_version

Returns the major version number of the Bismuth library.

get_micro_version

Returns the micro version number of the Bismuth library.

get_minor_version

Returns the minor version number of the Bismuth library.

init

Initializes Libbismuth.

is_initialized

Use this function to check if libbismuth has been initialized with bis_init().

lerp

Computes the linear interpolation between a and b for t.

Function Macros

CHECK_VERSION

Compile-time version checking. Evaluates to TRUE if the version of Bismuth is greater than the required one.

DEPRECATED_IN_1_1_FOR
DEPRECATED_IN_1_2_FOR
DEPRECATED_IN_1_3_FOR
DEPRECATED_TYPE_IN_1_1_FOR
DEPRECATED_TYPE_IN_1_2_FOR
DEPRECATED_TYPE_IN_1_3_FOR
ENCODE_VERSION
UNAVAILABLE

Constants

DURATION_INFINITE

Indicates an BisAnimation with an infinite duration.

MAJOR_VERSION

Bismuth major version component (e.g. 1 if the version is 1.2.3).

MICRO_VERSION

Bismuth micro version component (e.g. 3 if the version is 1.2.3).

MINOR_VERSION

Bismuth minor version component (e.g. 2 if the version is 1.2.3).

VERSION_S

Bismuth version, encoded as a string, useful for printing and concatenation.