Class
AdwToastOverlay
Description [src]
final class Adw.ToastOverlay : Gtk.Widget {
/* No available fields */
}
A widget showing toasts above its content.
Much like GtkOverlay, AdwToastOverlay is a container with a single
main child, on top of which it can display a AdwToast, overlaid.
Toasts can be shown with adw_toast_overlay_add_toast().
See AdwToast for details.
CSS nodes
toastoverlay
├── [child]
├── toast
┊ ├── widget
┊ │ ├── [label.heading]
│ ╰── [custom title]
├── [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 widget subnode, optionally a button
subnode, and another button subnode with .circular and .flat style classes.
The widget subnode contains a label subnode with the .heading style
class, or a custom widget provided by the application.
Accessibility
AdwToastOverlay uses the GTK_ACCESSIBLE_ROLE_TAB_GROUP role.
Constructors
adw_toast_overlay_new
Creates a new AdwToastOverlay.
Instance methods
adw_toast_overlay_add_toast
Displays toast.
adw_toast_overlay_get_child
Gets the child widget of self.
adw_toast_overlay_set_child
Sets the child widget of self.
Properties
Adw.ToastOverlay:child
The child widget.