adw.toast_overlay
Module for ToastOverlay class
Types 3
A widget showing toasts above its content.
Much like gtk.overlay.Overlay, adw.toast_overlay.ToastOverlay is a container with a single main child, on top of which it can display a adw.toast.Toast, overlaid. Toasts can be shown with adw.toast_overlay.ToastOverlay.addToast.
See adw.toast.Toast for details.
CSS nodes
toastoverlay
├── [child]
├── toast
┊ ├── widget
┊ │ ├── [label.heading]
│ ╰── [custom title]
├── [button]
╰── button.circular.flatadw.toast_overlay.ToastOverlay'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
adw.toast_overlay.ToastOverlay uses the GTK_ACCESSIBLE_ROLE_TAB_GROUP role.
ToastOverlay self()Returns `this`, for use in `with` statements.ToastOverlayGidBuilder builder()Get builder for [adw.toast_overlay.ToastOverlay] Returns: New builder objectvoid child(gtk.widget.Widget propval) @propertySet `child` property. Params: propval = The child widget.void addToast(adw.toast.Toast toast)Displays toast.gtk.widget.Widget getChild()Gets the child widget of self. Returns: the child widget of selfvoid setChild(gtk.widget.Widget child = null)Sets the child widget of self.Fluent builder implementation template for adw.toast_overlay.ToastOverlay
T child(gtk.widget.Widget propval)Set `child` property. Params: propval = The child widget. Returns: Builder instance for fluent chainingFluent builder for adw.toast_overlay.ToastOverlay
ToastOverlay build()Create object from builder. Returns: New object