Namespace

Adap – 1

Building blocks for modern GNOME applications

Version1.5.0
AuthorsPurism SPC
LicenseLGPL-2.1-or-later
Websitehttps://gnome.pages.gitlab.gnome.org/libadapta
Sourcehttps://gitlab.gnome.org/GNOME/libadapta/

Build

C headersadapta.h
pkg-config fileslibadapta-1

Dependencies

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

Classes

AboutDialog

A dialog showing information about the application.

since: 1.5

AboutWindow

A window showing information about the application.

since: 1.2

ActionRow

A GtkListBoxRow used to present actions.

since: 1

AlertDialog

A dialog presenting a message or a question.

since: 1.5

Animation

A base class for animations.

since: 1

AnimationTarget

Represents a value AdapAnimation can animate.

since: 1

Application

A base class for Adapta applications.

since: 1

ApplicationWindow

A freeform application window.

since: 1

Avatar

A widget displaying an image, with a generated fallback.

since: 1

Banner

A bar with contextual information.

since: 1.3

Bin

A widget with one child.

since: 1

Breakpoint

Describes a breakpoint for AdapWindow or AdapDialog.

since: 1.4

BreakpointBin

A widget that changes layout based on available size.

since: 1.4

ButtonContent

A helper widget for creating buttons.

since: 1

CallbackAnimationTarget

An AdapAnimationTarget that calls a given callback during the animation.

since: 1

Carousel

A paginated scrolling widget.

since: 1

CarouselIndicatorDots

A dots indicator for AdapCarousel.

since: 1

CarouselIndicatorLines

A lines indicator for AdapCarousel.

since: 1

Clamp

A widget constraining its child to a given size.

since: 1

ClampLayout

A layout manager constraining its children to a given size.

since: 1

ClampScrollable

A scrollable AdapClamp.

since: 1

ComboRow

A GtkListBoxRow used to choose from a list of items.

since: 1

Dialog

An adaptive dialog container.

since: 1.5

EntryRow

A GtkListBoxRow with an embedded text entry.

since: 1.2

EnumListItem

AdapEnumListItem is the type of items in a AdapEnumListModel.

since: 1

EnumListModel

A GListModel representing values of a given enum.

since: 1

ExpanderRow

A GtkListBoxRow used to reveal widgets.

since: 1

Flap

An adaptive container acting like a box or an overlay.

deprecated: 1.4 since: 1

HeaderBar

A title bar widget.

since: 1

Leaflet

An adaptive container acting like a box or a stack.

deprecated: 1.4 since: 1

LeafletPage

An auxiliary class used by AdapLeaflet.

deprecated: 1.4 since: 1

MessageDialog

A dialog presenting a message or a question.

since: 1.2

NavigationPage

A page within AdapNavigationView or AdapNavigationSplitView.

since: 1.4

NavigationSplitView

A widget presenting sidebar and content side by side or as a navigation view.

since: 1.4

NavigationView

A page-based navigation container.

since: 1.4

OverlaySplitView

A widget presenting sidebar and content side by side or as an overlay.

since: 1.4

PasswordEntryRow

A AdapEntryRow tailored for entering secrets.

since: 1.2

PreferencesDialog

A dialog showing application’s preferences.

since: 1.5

PreferencesGroup

A group of preference rows.

since: 1

PreferencesPage

A page from AdapPreferencesDialog.

since: 1

PreferencesRow

A GtkListBoxRow used to present preferences.

since: 1

PreferencesWindow

A window to present an application’s preferences.

since: 1

PropertyAnimationTarget

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

since: 1.2

SpinRow

An AdapActionRow with an embedded spin button.

since: 1.4

SplitButton

A combined button and dropdown widget.

since: 1

SpringAnimation

A spring-based AdapAnimation.

since: 1

Squeezer

A best fit container.

deprecated: 1.4 since: 1

SqueezerPage

An auxiliary class used by AdapSqueezer.

deprecated: 1.4 since: 1

StatusPage

A page used for empty/error states and similar use-cases.

since: 1

StyleManager

A class for managing application-wide styling.

since: 1

SwipeTracker

A swipe tracker used in AdapCarousel, AdapNavigationView and AdapOverlaySplitView.

since: 1

SwitchRow

A GtkListBoxRow used to represent two states.

since: 1.4

TabBar

A tab bar for AdapTabView.

since: 1

TabButton

A button that displays the number of AdapTabView pages.

since: 1.3

TabOverview

A tab overview for AdapTabView.

since: 1.3

TabPage

An auxiliary class used by AdapTabView.

since: 1

TabView

A dynamic tabbed container.

since: 1

TimedAnimation

A time-based AdapAnimation.

since: 1

Toast

A helper object for AdapToastOverlay.

since: 1

ToastOverlay

A widget showing toasts above its content.

since: 1

ToolbarView

A widget containing a page, as well as top and/or bottom bars.

since: 1.4

ViewStack

A view container for AdapViewSwitcher.

since: 1

ViewStackPage

An auxiliary class used by AdapViewStack.

since: 1

ViewStackPages

An auxiliary class used by AdapViewStack.

since: 1.4

ViewSwitcher

An adaptive view switcher.

since: 1

ViewSwitcherBar

A view switcher action bar.

since: 1

ViewSwitcherTitle

A view switcher title.

deprecated: 1.4 since: 1

Window

A freeform window.

since: 1

WindowTitle

A helper widget for setting a window’s title and subtitle.

since: 1

Interfaces

Swipeable

An interface for swipeable widgets.

since: 1

Structs

BreakpointCondition

Describes condition for an AdapBreakpoint.

since: 1.4

SpringParams

Physical parameters of a spring for AdapSpringAnimation.

since: 1

Enumerations

AnimationState

Describes the possible states of an AdapAnimation.

since: 1

BreakpointConditionLengthType

Describes length types for AdapBreakpointCondition.

since: 1.4

BreakpointConditionRatioType

Describes ratio types for AdapBreakpointCondition.

since: 1.4

CenteringPolicy

Describes title centering behavior of a AdapHeaderBar widget.

since: 1

ColorScheme

Application color schemes for AdapStyleManager:color-scheme.

since: 1

DialogPresentationMode

Describes the available presentation modes for AdapDialog.

since: 1.5

Easing

Describes the available easing functions for use with AdapTimedAnimation.

since: 1

FlapFoldPolicy

Describes the possible folding behavior of a AdapFlap widget.

deprecated: 1.4 since: 1

FlapTransitionType

Describes transitions types of a AdapFlap widget.

deprecated: 1.4 since: 1

FoldThresholdPolicy

Determines when AdapFlap and AdapLeaflet will fold.

deprecated: 1.4 since: 1

LeafletTransitionType

Describes the possible transitions in a AdapLeaflet widget.

deprecated: 1.4 since: 1

LengthUnit

Describes length units.

since: 1.4

NavigationDirection

Describes the direction of a swipe navigation gesture.

since: 1

ResponseAppearance

Describes the possible styles of AdapAlertDialog response buttons.

since: 1.2

SqueezerTransitionType

Describes the possible transitions in a AdapSqueezer widget.

deprecated: 1.4 since: 1

ToastPriority

AdapToast behavior when another toast is already displayed.

since: 1

ToolbarStyle

Describes the possible top or bottom bar styles in an AdapToolbarView widget.

since: 1.4

ViewSwitcherPolicy

Describes the adaptive modes of AdapViewSwitcher.

since: 1

Bitfields

TabViewShortcuts

Describes available shortcuts in an AdapTabView.

since: 1.2

Callbacks

AnimationTargetFunc

Prototype for animation targets based on user callbacks.

since: 1

Functions

get_enable_animations

Checks whether animations are enabled for widget.

since: 1

get_major_version

Returns the major version number of the Adapta library.

since: 1

get_micro_version

Returns the micro version number of the Adapta library.

since: 1

get_minor_version

Returns the minor version number of the Adapta library.

since: 1

init

Initializes Libadapta.

since: 1

is_initialized

Use this function to check if libadapta has been initialized with adap_init().

since: 1

lerp

Computes the linear interpolation between a and b for t.

since: 1

show_about_dialog

A convenience function for showing an application’s about dialog.

since: 1.5

show_about_dialog_from_appdata

A convenience function for showing an application’s about dialog from AppStream metadata.

since: 1.5

show_about_window

A convenience function for showing an application’s about window.

since: 1.2

show_about_window_from_appdata

A convenience function for showing an application’s about window from AppStream metadata.

since: 1.4

Function Macros

CHECK_VERSION

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

since: 1

Constants

DURATION_INFINITE

Indicates an AdapAnimation with an infinite duration.

since: 1

MAJOR_VERSION

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

since: 1

MICRO_VERSION

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

since: 1

MINOR_VERSION

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

since: 1

VERSION_S

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

since: 1