ToastOverlay
Object Hierarchy:
Adw.ToastOverlay
Adw.ToastOverlay
Adw.ToastOverlay
Gtk.Widget
Gtk.Widget
Gtk.Widget->Adw.ToastOverlay
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Gtk.Widget
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Gtk.Accessible
Gtk.Accessible
Gtk.Accessible->Adw.ToastOverlay
Gtk.Accessible->Gtk.Widget
Gtk.Buildable
Gtk.Buildable
Gtk.Buildable->Adw.ToastOverlay
Gtk.Buildable->Gtk.Widget
Gtk.ConstraintTarget
Gtk.ConstraintTarget
Gtk.ConstraintTarget->Adw.ToastOverlay
Gtk.ConstraintTarget->Gtk.Widget
Description:
[ CCode ( type_id = "adw_toast_overlay_get_type ()" ) ] [ Version ( since = "1.0" ) ]public sealed class ToastOverlay : Widget , Accessible , Buildable , ConstraintTarget
A widget showing toasts above its content.
<picture> <source srcset="toast-overlay-dark.png" media="(prefers-color-scheme: dark)"> <img src="toast-overlay.png"
alt="toast-overlay"> </picture>
Toasts can be shown with [[email protected] _toast].
See [class@Toast] 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.
Content:
Properties:
public Widget child { get ; set ; }
The child widget.
Creation methods:
Methods:
Inherited Members:
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Gtk.Accessible
accessible_role
get_accessible_role
reset_property
reset_relation
reset_state
update_property
update_property_value
update_relation
update_relation_value
update_state
update_state_value
All known members inherited from interface Gtk.Buildable
add_child
custom_finished
custom_tag_end
custom_tag_start
get_buildable_id
get_id
get_internal_child
parser_finished
set_buildable_property
set_id