It derives from <GtkWidget>.
A bar with contextual information.
Banners are hidden by default, use Banner:revealed to show them.
Banners have a title, set with Banner:title. Titles can be
marked up with Pango markup, use 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
Banner:button-label. The button can be used with a
<GAction>, or with the "button-clicked"
signal. The button can have different styles, a gray style and a
suggested style.
<AdwBanner> has a main CSS node with the name
banner.
The label to show on the button.
If set to "" or NULL, the button won’t be shown.
The button can be used with a <GAction>, or
with the "button-clicked" signal.
Its value is a string, or #f.
Set it with (set! (banner:button-label self) value).
The style class to use for the banner button.
When set to Adw.BannerButtonStyle.default, the button is grey.
When set to Adw.BannerButtonStyle.suggested, the button uses the
‘.suggested-action‘ appearance.
Its value is a <AdwBannerButtonStyle>
(or, to set it, one of its symbols).
Set it with (set! (banner:button-style self) value).
Whether the banner is currently revealed.
Its value is a boolean.
Set it with (set! (banner:revealed self) value).
The title for this banner.
See also: Banner:use-markup.
Its value is a string, or #f.
Set it with (set! (banner:title self) value).
Whether to use Pango markup for the banner title.
See also parse-markup.
Its value is a boolean.
Set it with (set! (banner:use-markup self) value).
Gets the button label for self.
Passed: a <AdwBanner>.
a banner
Returned: a string, or #f.
the button label for self
Gets the style class in use for the banner button.
Passed: a <AdwBanner>.
a banner
Returned: a <AdwBannerButtonStyle>.
the current button style
Gets if a banner is revealed
Passed: a <AdwBanner>.
a banner
Returned: a boolean.
Whether a banner is revealed
Gets the title for self.
Passed: a <AdwBanner>.
a banner
Returned: a string.
the title for self
Gets whether to use Pango markup for the banner title.
Passed: a <AdwBanner>.
a banner
Returned: a boolean.
whether to use markup
Creates a new <AdwBanner>.
Passed: a string.
the banner title
Returned: a <GtkWidget>.
the newly created <AdwBanner>
Sets the button label for self.
If set to "" or NULL, the button won’t be shown.
The button can be used with a <GAction>, or
with the "button-clicked" signal.
Passed: a <AdwBanner>.
a banner
Passed, or left out: a string, or #f.
the label
Sets the style class to use for the banner button.
When set to Adw.BannerButtonStyle.default, the button is grey.
When set to Adw.BannerButtonStyle.suggested, the button uses the
‘.suggested-action‘ appearance.
Passed: a <AdwBanner>.
a banner
Passed: a <AdwBannerButtonStyle>, or one
of its symbols.
a button style
Sets whether a banner should be revealed
Passed: a <AdwBanner>.
a banner
Passed: a boolean.
whether a banner should be revealed
Sets the title for this banner.
See also: Banner:use-markup.
Passed: a <AdwBanner>.
a banner
Passed: a string.
the title
Sets whether to use Pango markup for the banner title.
See also parse-markup.
Passed: a <AdwBanner>.
a banner
Passed: a boolean.
whether to use markup
Connect a handler with (connect object banner:button-clicked
handler). It is called as (handler self).
This signal is emitted after the action button has been clicked.
It can be used as an alternative to setting an action.
Passed: a <AdwBanner>.