diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-03-28 07:49:04 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-03-28 07:49:04 +0100 |
| commit | b7da16d2dda3d90dbc47c4093efe37d4d5c92f27 (patch) | |
| tree | 31612a8fe027f3434d2b1220fa45657ebc6f6410 /include/turns/adw/toast.hpp | |
| parent | 6bcf6c01484c580b7b5846f9b0593e2b499d5aee (diff) | |
| download | libadwaitamm-b7da16d2dda3d90dbc47c4093efe37d4d5c92f27.tar.xz libadwaitamm-b7da16d2dda3d90dbc47c4093efe37d4d5c92f27.zip | |
adw: clean up wrap functions
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); }; |
