Banner


Object Hierarchy:

Object hierarchy for Banner

Description:

[ CCode ( type_id = "adap_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:AdapBanner:button-clicked] signal.

CSS nodes

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


Namespace: Adap
Package: libadapta-1

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class Gtk.Widget