adw.banner
Module for [Banner] class
Types 3
A bar with contextual information.
Banners are hidden by default, use adw.banner.Banner.revealed to show them.
Banners have a title, set with adw.banner.Banner.title. Titles can be marked up with Pango markup, use adw.banner.Banner.useMarkup 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 adw.banner.Banner.buttonLabel. The button can be used with a gio.action.Action, or with the adw.banner.Banner.buttonClicked signal.
CSS nodes
adw.banner.Banner has a main CSS node with the name banner.
Methods
BannerGidBuilder builder() static nothrowGet builder for [adw.banner.Banner] Returns: New builder objectstring buttonLabel() @property nothrowGet `buttonLabel` property. Returns: The label to show on the button.void buttonLabel(string propval) @property nothrowSet `buttonLabel` property. Params: propval = The label to show on the button.bool revealed() @property nothrowGet `revealed` property. Returns: Whether the banner is currently revealed.void revealed(bool propval) @property nothrowSet `revealed` property. Params: propval = Whether the banner is currently revealed.void title(string propval) @property nothrowSet `title` property. Params: propval = The title for this banner.bool useMarkup() @property nothrowGet `useMarkup` property. Returns: Whether to use Pango markup for the banner title.void useMarkup(bool propval) @property nothrowSet `useMarkup` property. Params: propval = Whether to use Pango markup for the banner title.bool getUseMarkup() nothrowGets whether to use Pango markup for the banner title. Returns: whether to use markupgulong connectButtonClicked(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : adw.banner.Banner)))
&& Parameters!T.length < 2) nothrowConnect to `ButtonClicked` signal.classBannerGidBuilderImpl(T) : gtk.widget.WidgetGidBuilderImpl!T, gtk.actionable.ActionableGidBuilderImpl!T
Fluent builder implementation template for adw.banner.Banner
Methods
T buttonLabel(string propval) nothrowSet `buttonLabel` property. Params: propval = The label to show on the button.T revealed(bool propval) nothrowSet `revealed` property. Params: propval = Whether the banner is currently revealed. Returns: Builder instance for fluent chainingT useMarkup(bool propval) nothrowSet `useMarkup` property. Params: propval = Whether to use Pango markup for the banner title.Fluent builder for adw.banner.Banner