Banner


Object Hierarchy:

Adw.Banner Adw.Banner Adw.Banner Gtk.Widget Gtk.Widget Gtk.Widget->Adw.Banner GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Adw.Banner Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Adw.Banner Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Adw.Banner Gtk.ConstraintTarget->Gtk.Widget Gtk.Actionable Gtk.Actionable Gtk.Actionable->Adw.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.

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