Banner
Object Hierarchy:
Description:
[ CCode ( type_id = "adw_banner_get_type ()" ) ]
[ Version ( since = "1.3" ) ]
public sealed class Banner : Widget, Accessible, Actionable, Buildable, ConstraintTarget
[ 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
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.Actionable
All known members inherited from interface Gtk.Buildable