/** * @author Felix Morgner (felix.morgner@gmail.com) * @copyright Copyright (c) 2025 * SPDX-License-Identifier: LGPL-2.1-or-later */ #ifndef LIBADWAITAMM_PREFERENCES_DIALOG_HPP #define LIBADWAITAMM_PREFERENCES_DIALOG_HPP #include "adwaitamm/dialog.hpp" #include "adwaitamm/preferencespage.hpp" #include "helpers/gobj_mixin.hpp" #include #include #define _ADWAITA_INSIDE #include #undef _ADWAITA_INSIDE namespace Adwaita { struct PreferencesDialog : Dialog, helpers::gobj_mixin { using BaseObjectType = AdwPreferencesDialog; using BaseClassType = AdwPreferencesDialogClass; using CppObjectType = PreferencesDialog; using CppClassType = struct PreferencesDialog_Class; using helpers::gobj_mixin::gobj; using helpers::gobj_mixin::gobj_copy; explicit PreferencesDialog(); PreferencesDialog(PreferencesDialog const & other) = delete; PreferencesDialog(PreferencesDialog && other) noexcept = default; auto operator=(PreferencesDialog const & other) noexcept -> PreferencesDialog & = delete; auto operator=(PreferencesDialog && other) noexcept -> PreferencesDialog & = default; auto static get_type() -> GType; auto static get_base_type() -> GType; auto add(PreferencesPage & page) -> void; auto set_visible_page(PreferencesPage & page) -> void; protected: friend PreferencesDialog_Class; explicit PreferencesDialog(Glib::ConstructParams const & params); explicit PreferencesDialog(BaseObjectType * gobj); }; } // namespace Adwaita namespace Glib { auto wrap(AdwPreferencesDialog * object, bool copy = false) -> Adwaita::PreferencesDialog *; } // namespace Glib #endif