#ifndef LIBADWAITAMM_TOASTOVERLAY_HPP #define LIBADWAITAMM_TOASTOVERLAY_HPP #include "adwaitamm/helpers/gobj_mixin.hpp" #include #include #include #include #include #include #include #define _ADWAITA_INSIDE #include #undef _ADWAITA_INSIDE namespace Adwaita { struct ToastOverlay final : Gtk::Widget, helpers::gobj_mixin { struct Class : Glib::Class { using BaseClassParent = GtkWidgetClass; using BaseClassType = AdwToastOverlayClass; using BaseObjectType = AdwToastOverlay; using CppClassParent = struct Gtk::Widget_Class; using CppObjectType = ToastOverlay; auto init() -> Glib::Class const &; auto static class_init_function(void * gclass, void * data) -> void; auto static wrap_new(GObject * object) -> Glib::ObjectBase *; }; using BaseObjectType = Class::BaseObjectType; using BaseClassType = Class::BaseClassType; using CppObjectType = Class::CppObjectType; using CppClassType = Class; using helpers::gobj_mixin::gobj; using helpers::gobj_mixin::gobj_copy; explicit ToastOverlay(); ToastOverlay(ToastOverlay const & other) = delete; ToastOverlay(ToastOverlay && other) noexcept = default; auto operator=(ToastOverlay const & other) noexcept -> ToastOverlay & = delete; auto operator=(ToastOverlay && other) noexcept -> ToastOverlay & = default; auto static get_type() -> GType; auto static get_base_type() -> GType; auto add_toast(struct Toast & toast) -> void; auto dismiss_all() -> void; auto get_child() const -> Gtk::Widget *; auto set_child(Gtk::Widget & value) -> void; auto property_child() -> Glib::PropertyProxy; protected: explicit ToastOverlay(Glib::ConstructParams const & params); explicit ToastOverlay(BaseObjectType * gobj); }; } // namespace Adwaita namespace Glib { auto wrap(AdwToastOverlay * object, bool copy = false) -> Adwaita::ToastOverlay *; } // namespace Glib #endif