diff options
Diffstat (limited to 'adw/src/toastoverlay.cpp')
| -rw-r--r-- | adw/src/toastoverlay.cpp | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/adw/src/toastoverlay.cpp b/adw/src/toastoverlay.cpp index 7d1493c..cc9eb26 100644 --- a/adw/src/toastoverlay.cpp +++ b/adw/src/toastoverlay.cpp @@ -58,12 +58,32 @@ namespace Adwaita return adw_toast_overlay_get_type(); } - auto ToastOverlay::add(Glib::RefPtr<struct Toast> const & toast) -> void + auto ToastOverlay::add_toast(Toast & toast) -> void { // Take a copy since the overlay will take ownership of the toast. adw_toast_overlay_add_toast(Glib::unwrap(this), Glib::unwrap_copy(toast)); } + auto ToastOverlay::dismiss_all() -> void + { + adw_toast_overlay_dismiss_all(unwrap(this)); + } + + auto ToastOverlay::get_child() const -> Gtk::Widget * + { + return Glib::wrap(adw_toast_overlay_get_child(const_cast<BaseObjectType *>(unwrap(this)))); + } + + auto ToastOverlay::set_child(Gtk::Widget & value) -> void + { + adw_toast_overlay_set_child(unwrap(this), unwrap(&value)); + } + + auto ToastOverlay::property_child() -> Glib::PropertyProxy<Gtk::Widget *> + { + return Glib::PropertyProxy<Gtk::Widget *>{this, "child"}; + } + ToastOverlay::ToastOverlay(Glib::ConstructParams const & params) : Gtk::Widget{params} { |
