#include "adwaitamm/preferencespage.hpp" #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Adwaita { namespace { auto constinit _class = PreferencesPage::Class{}; } // namespace auto PreferencesPage::Class::init() -> Glib::Class const & { if (!gtype_) { class_init_func_ = &class_init_function; register_derived_type(adw_preferences_page_get_type()); } return *this; } auto PreferencesPage::Class::class_init_function(void * gclass, void * data) -> void { auto const klass = static_cast(gclass); CppClassParent::class_init_function(klass, data); } auto PreferencesPage::Class::wrap_new(GObject * object) -> Glib::ObjectBase * { return Gtk::manage(new PreferencesPage(ADW_PREFERENCES_PAGE(object))); } auto PreferencesPage::get_type() -> GType { return _class.init().get_type(); } auto PreferencesPage::get_base_type() -> GType { return adw_preferences_page_get_type(); } PreferencesPage::PreferencesPage(Glib::ConstructParams const & params) : Gtk::Widget{params} { } PreferencesPage::PreferencesPage(AdwPreferencesPage * gobj) : Gtk::Widget(GTK_WIDGET(gobj)) { } PreferencesPage::PreferencesPage() : Glib::ObjectBase{nullptr} , Gtk::Widget{Glib::ConstructParams{_class.init()}} { } } // namespace Adwaita namespace Glib { auto wrap(AdwPreferencesPage * object, bool copy) -> Adwaita::PreferencesPage * { return dynamic_cast(Glib::wrap_auto(G_OBJECT(object), copy)); } } // namespace Glib