summaryrefslogtreecommitdiff
path: root/adw/src/toastoverlay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'adw/src/toastoverlay.cpp')
-rw-r--r--adw/src/toastoverlay.cpp93
1 files changed, 0 insertions, 93 deletions
diff --git a/adw/src/toastoverlay.cpp b/adw/src/toastoverlay.cpp
deleted file mode 100644
index 7be0797..0000000
--- a/adw/src/toastoverlay.cpp
+++ /dev/null
@@ -1,93 +0,0 @@
-/**
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @copyright Copyright (c) 2025
- * SPDX-License-Identifier: LGPL-2.1-or-later
- */
-
-#include "adwaitamm/toastoverlay.hpp"
-
-#include "adwaitamm/private/toastoverlay_p.hpp"
-#include "adwaitamm/toast.hpp"
-
-#include <glibmm/object.h>
-#include <glibmm/objectbase.h>
-#include <glibmm/propertyproxy.h>
-#include <glibmm/wrap.h>
-
-#include <gtkmm/widget.h>
-
-#include <glib-object.h>
-
-namespace Adwaita
-{
- namespace
- {
- auto constinit _class = ToastOverlay_Class{};
- } // namespace
-
- auto ToastOverlay::get_type() -> GType
- {
- return _class.init().get_type();
- }
-
- auto ToastOverlay::get_base_type() -> GType
- {
- return adw_toast_overlay_get_type();
- }
-
- 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"};
- }
-
- auto ToastOverlay::property_child() const -> Glib::PropertyProxy_ReadOnly<Gtk::Widget *>
- {
- return Glib::PropertyProxy_ReadOnly<Gtk::Widget *>{this, "child"};
- }
-
- ToastOverlay::ToastOverlay(Glib::ConstructParams const & params)
- : Gtk::Widget{params}
- {
- }
-
- ToastOverlay::ToastOverlay(BaseObjectType * gobj)
- : Gtk::Widget((GtkWidget *)gobj)
- {
- }
-
- ToastOverlay::ToastOverlay()
- : Glib::ObjectBase{nullptr}
- , Gtk::Widget{Glib::ConstructParams{_class.init()}}
- {
- }
-
-} // namespace Adwaita
-
-namespace Glib
-{
- auto wrap(AdwToastOverlay * object, bool copy) -> Adwaita::ToastOverlay *
- {
- return dynamic_cast<Adwaita::ToastOverlay *>(Glib::wrap_auto(G_OBJECT(object), copy));
- }
-} // namespace Glib \ No newline at end of file