From 29eb802f09da07421099238eceaee9e3b1d61ff2 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 28 Apr 2025 14:01:30 +0200 Subject: adw: extract libadwaitamm --- adw/include/adwaitamm/helpers/gobj_mixin.hpp | 45 ---------------------------- 1 file changed, 45 deletions(-) delete mode 100644 adw/include/adwaitamm/helpers/gobj_mixin.hpp (limited to 'adw/include/adwaitamm/helpers/gobj_mixin.hpp') diff --git a/adw/include/adwaitamm/helpers/gobj_mixin.hpp b/adw/include/adwaitamm/helpers/gobj_mixin.hpp deleted file mode 100644 index ec15996..0000000 --- a/adw/include/adwaitamm/helpers/gobj_mixin.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef LIBADWAITAMM_HELPERS_GOBJ_MIXIN_HPP -#define LIBADWAITAMM_HELPERS_GOBJ_MIXIN_HPP - -#include - -#include - -namespace Adwaita::helpers -{ - - template - struct copy_const - { - using type = TargetType; - }; - - template - struct copy_const - { - using type = std::add_const_t; - }; - - template - using copy_const_t = typename copy_const::type; - - template - struct gobj_mixin - { - template - auto gobj(this Self && self) noexcept - { - using base_type = copy_const_t, BaseType>; - return reinterpret_cast(self.::Glib::Object::gobj()); - } - - template - auto gobj_copy(this Self && self) noexcept - { - return reinterpret_cast(self.::Glib::Object::gobj_copy()); - } - }; - -} // namespace Adwaita::helpers - -#endif \ No newline at end of file -- cgit v1.2.3