diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 14:01:30 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 14:01:30 +0200 |
| commit | 29eb802f09da07421099238eceaee9e3b1d61ff2 (patch) | |
| tree | d07784be13475237d58f65033959c1e27e6245c0 /adw/include/adwaitamm/preferencesdialog.hpp | |
| parent | dff2f80ddc8f742b8181409d6feeca33e856112e (diff) | |
| download | turns-29eb802f09da07421099238eceaee9e3b1d61ff2.tar.xz turns-29eb802f09da07421099238eceaee9e3b1d61ff2.zip | |
adw: extract libadwaitamm
Diffstat (limited to 'adw/include/adwaitamm/preferencesdialog.hpp')
| -rw-r--r-- | adw/include/adwaitamm/preferencesdialog.hpp | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/adw/include/adwaitamm/preferencesdialog.hpp b/adw/include/adwaitamm/preferencesdialog.hpp deleted file mode 100644 index cdc1444..0000000 --- a/adw/include/adwaitamm/preferencesdialog.hpp +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @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 <glibmm/object.h> - -#include <glib-object.h> - -#define _ADWAITA_INSIDE -#include <adw-preferences-dialog.h> -#undef _ADWAITA_INSIDE - -namespace Adwaita -{ - struct PreferencesDialog : Dialog, - helpers::gobj_mixin<PreferencesDialog, AdwPreferencesDialog> - { - using BaseObjectType = AdwPreferencesDialog; - using BaseClassType = AdwPreferencesDialogClass; - using CppObjectType = PreferencesDialog; - using CppClassType = struct PreferencesDialog_Class; - - using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj; - using helpers::gobj_mixin<CppObjectType, BaseObjectType>::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
\ No newline at end of file |
