diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-24 20:12:26 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-25 07:43:33 +0200 |
| commit | 2c4e151343828af13b28ec39946b6bf34748c2b3 (patch) | |
| tree | 3572c1e224ad93e51c4a560198732e8f9bac7c99 /include/adwaitamm/stylemanager.hpp | |
| parent | 96ce3ba51c152e854bcc5e7df1c53fe776ca554b (diff) | |
| download | libadwaitamm-2c4e151343828af13b28ec39946b6bf34748c2b3.tar.xz libadwaitamm-2c4e151343828af13b28ec39946b6bf34748c2b3.zip | |
adw: extract class definitions
Diffstat (limited to 'include/adwaitamm/stylemanager.hpp')
| -rw-r--r-- | include/adwaitamm/stylemanager.hpp | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/include/adwaitamm/stylemanager.hpp b/include/adwaitamm/stylemanager.hpp index 3d370c3..15f0f0e 100644 --- a/include/adwaitamm/stylemanager.hpp +++ b/include/adwaitamm/stylemanager.hpp @@ -21,8 +21,6 @@ #include <adw-style-manager.h> #undef _ADWAITA_INSIDE -using AdwStyleManager = struct _AdwStyleManager; - namespace Adwaita { enum struct AccentColor; @@ -31,23 +29,10 @@ namespace Adwaita struct StyleManager final : Glib::Object, helpers::gobj_mixin<StyleManager, AdwStyleManager> { - struct Class : Glib::Class - { - using BaseClassParent = GObjectClass; - using BaseClassType = AdwStyleManagerClass; - using BaseObjectType = AdwStyleManager; - using CppClassParent = struct Glib::Object_Class; - using CppObjectType = StyleManager; - - 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 = AdwStyleManager; + using BaseClassType = AdwStyleManagerClass; + using CppObjectType = StyleManager; + using CppClassType = struct StyleManager_Class; using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj; using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy; @@ -77,6 +62,8 @@ namespace Adwaita auto set_color_scheme(ColorScheme value) -> void; protected: + friend StyleManager_Class; + explicit StyleManager(Glib::ConstructParams const & params); explicit StyleManager(BaseObjectType * gobj); explicit StyleManager(); |
