Adw.ToastOverlay
Description: Reference for Adw.ToastOverlay

### Class

# AdwToastOverlay

#### Description [src]

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

A widget showing toasts above its content.

Toasts can be shown with `adw_toast_overlay_add_toast()`.

See `AdwToast` for details.

## CSS nodes

    toastoverlay
    ├── [child]
    ├── toast
    ┊   ├── label.heading
        ├── [button]
        ╰── button.circular.flat

`AdwToastOverlay`‘s CSS node is called `toastoverlay`. It contains the child, as well as zero or more `toast` subnodes.

Each of the `toast` nodes contains a `label` subnode with the `.heading` style class, optionally a `button` subnode, and another `button` subnode with `.circular` and `.flat` style classes.

## Accessibility

`AdwToastOverlay` uses the `GTK_ACCESSIBLE_ROLE_TAB_GROUP` role.

Available since: | 1.0

#### Hierarchy

#### Ancestors

- GtkWidget
- GInitiallyUnowned
- GObject

#### Implements

- GtkAccessible
- GtkBuildable
- GtkConstraintTarget

#### Constructors

###### adw_toast_overlay_new

Creates a new `AdwToastOverlay`.

Available since: 1.0

#### Instance methods

###### adw_toast_overlay_add_toast

Displays `toast`.

Available since: 1.0

###### adw_toast_overlay_get_child

Gets the child widget of `self`.

Available since: 1.0

###### adw_toast_overlay_set_child

Sets the child widget of `self`.

Available since: 1.0

##### Methods inherited from GtkWidget (159)

##### Methods inherited from GObject (43)

#### Properties

###### Adw.ToastOverlay:child

The child widget.

Available since: 1.0

##### Properties inherited from GtkWidget (34)

#### Signals

##### Signals inherited from GtkWidget (13)

##### Signals inherited from GObject (1)

#### Class structure

    struct AdwToastOverlayClass {
      GtkWidgetClass parent_class;

    }

###### Class members

`parent_class` |
    GtkWidgetClass
| No description available.