summaryrefslogtreecommitdiff
path: root/adw/include/adwaitamm/switchrow.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-04-24 20:12:26 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-04-25 07:43:33 +0200
commit95dc7e43a23300b3eacbb7e1e0a9d4f31a8bd5a0 (patch)
tree9fedc2fef0f5459f3df38c91f3b6366ffb9d48b3 /adw/include/adwaitamm/switchrow.hpp
parent48eb849abde6c9af75c015a9721c9b337f3a5fd9 (diff)
downloadturns-95dc7e43a23300b3eacbb7e1e0a9d4f31a8bd5a0.tar.xz
turns-95dc7e43a23300b3eacbb7e1e0a9d4f31a8bd5a0.zip
adw: extract class definitions
Diffstat (limited to 'adw/include/adwaitamm/switchrow.hpp')
-rw-r--r--adw/include/adwaitamm/switchrow.hpp23
1 files changed, 6 insertions, 17 deletions
diff --git a/adw/include/adwaitamm/switchrow.hpp b/adw/include/adwaitamm/switchrow.hpp
index 622b58a..c95544e 100644
--- a/adw/include/adwaitamm/switchrow.hpp
+++ b/adw/include/adwaitamm/switchrow.hpp
@@ -26,23 +26,10 @@ namespace Adwaita
struct SwitchRow final : ActionRow,
helpers::gobj_mixin<SwitchRow, AdwSwitchRow>
{
- struct Class : Glib::Class
- {
- using BaseClassParent = AdwActionRowClass;
- using BaseClassType = AdwSwitchRowClass;
- using BaseObjectType = AdwSwitchRow;
- using CppClassParent = ActionRow::Class;
- using CppObjectType = SwitchRow;
-
- 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 BaseObjectType = AdwSwitchRow;
+ using BaseClassType = AdwSwitchRowClass;
+ using CppObjectType = struct SwitchRow;
+ using CppClassType = struct SwitchRow_Class;
using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
@@ -64,6 +51,8 @@ namespace Adwaita
auto property_active() const -> Glib::PropertyProxy_ReadOnly<bool>;
protected:
+ friend SwitchRow_Class;
+
explicit SwitchRow(Glib::ConstructParams const & params);
explicit SwitchRow(BaseObjectType * gobj);
};