Class

AdwBanner

Description [src]

final class Adw.Banner : Gtk.Widget {
  /* No available fields */
}

A bar with contextual information.

banner

Banners are hidden by default, use AdwBanner:revealed to show them.

Banners have a title, set with AdwBanner:title. Titles can be marked up with Pango markup, use AdwBanner: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 AdwBanner:button-label. The button can be used with a GAction, or with the AdwBanner::button-clicked signal.

CSS nodes

AdwBanner has a main CSS node with the name banner.

Available since:1.3

Ancestors

  • GtkWidget
  • GInitiallyUnowned
  • GObject

Implements

  • GtkAccessible
  • GtkActionable
  • GtkBuildable
  • GtkConstraintTarget

Constructors

adw_banner_new

Creates a new AdwBanner.

Available since: 1.3

Instance methods

adw_banner_get_button_label

Gets the button label for self.

Available since: 1.3

adw_banner_get_revealed

Gets if a banner is revealed.

Available since: 1.3

adw_banner_get_title

Gets the title for self.

Available since: 1.3

adw_banner_get_use_markup

Gets whether to use Pango markup for the banner title.

Available since: 1.3

adw_banner_set_button_label

Sets the button label for self.

Available since: 1.3

adw_banner_set_revealed

Sets whether a banner should be revealed.

Available since: 1.3

adw_banner_set_title

Sets the title for this banner.

Available since: 1.3

adw_banner_set_use_markup

Sets whether to use Pango markup for the banner title.

Available since: 1.3

Properties

Adw.Banner:button-label

The label to show on the button.

Available since: 1.3

Adw.Banner:revealed

Whether the banner is currently revealed.

Available since: 1.3

Adw.Banner:title

The title for this banner.

Available since: 1.3

Adw.Banner:use-markup

Whether to use Pango markup for the banner title.

Available since: 1.3

Signals

Adw.Banner::button-clicked

This signal is emitted after the action button has been clicked.

Available since: 1.3

Class structure

struct AdwBannerClass {
  GtkWidgetClass parent_class;
  
}
Class members
parent_class
GtkWidgetClass
  No description available.