Banner


Object Hierarchy:

Object hierarchy for Banner

Description:

[ CCode ( type_id = "adw_banner_get_type ()" ) ]
[ Version ( since = "1.3" ) ]
public sealed class Banner : Widget, Accessible, Actionable, Buildable, ConstraintTarget

A bar with contextual information.

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

Banners are hidden by default, use [property@Banner:revealed] to show them.

Banners have a title, set with [property@Banner:title]. Titles can be marked up with Pango markup, use [property@Banner:use-markup] to enable it.

The title will be shown centered or left-aligned depending on available space.

Banners can optionally have a button with text on it, set through [property@Banner:button-label]. The button can be used with a `GAction`, or with the [signal@Banner:AdwBanner:button-clicked] signal. The button can have different styles, a gray style and a suggested style.

<picture> <source srcset="banner-suggested-dark.png" media="(prefers-color-scheme: dark)"> <img src="banner-suggested.png" alt="banner with suggested button style"> </picture>

CSS nodes

`AdwBanner` has a main CSS node with the name `banner`.


Namespace: Adw
Package: libadwaita-1

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class Gtk.Widget