diff options
Diffstat (limited to 'include/turns/adw/toast.hpp')
| -rw-r--r-- | include/turns/adw/toast.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/turns/adw/toast.hpp b/include/turns/adw/toast.hpp index 83242c7..80d9b8b 100644 --- a/include/turns/adw/toast.hpp +++ b/include/turns/adw/toast.hpp @@ -5,12 +5,15 @@ #include "turns/adw/helpers/properties.hpp" #include <glibmm/object.h> +#include <glibmm/objectbase.h> #include <glibmm/refptr.h> #include <glibmm/ustring.h> #include <glibmm/variant.h> #include <gtkmm/widget.h> +#include <glib-object.h> + #define _ADWAITA_INSIDE #include <adw-toast.h> #undef _ADWAITA_INSIDE @@ -49,13 +52,13 @@ namespace turns::adw using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj; using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy; - explicit Toast(Glib::ustring const & title); Toast(Toast const & other) = delete; Toast(Toast && other) noexcept = default; auto operator=(Toast const & other) noexcept -> Toast & = delete; auto operator=(Toast && other) noexcept -> Toast & = default; + auto static create(Glib::ustring const & title) -> Glib::RefPtr<Toast>; auto static get_type() -> GType; auto static get_base_type() -> GType; @@ -71,6 +74,7 @@ namespace turns::adw auto property_use_markup(this auto && self); protected: + explicit Toast(Glib::ustring const & title); explicit Toast(Glib::ConstructParams const & params); explicit Toast(BaseObjectType * gobj); }; |
