/** * @author Felix Morgner (felix.morgner@gmail.com) * @copyright Copyright (c) 2025 * SPDX-License-Identifier: LGPL-2.1-or-later */ #ifndef LIBADWAITAMM_DIALOG_HPP #define LIBADWAITAMM_DIALOG_HPP #include "adwaitamm/breakpoint.hpp" #include "helpers/gobj_mixin.hpp" #include #include #include #include #include #include #define _ADWAITA_INSIDE #include #undef _ADWAITA_INSIDE namespace Adwaita { struct Dialog : Gtk::Widget, Gtk::ShortcutManager, helpers::gobj_mixin { using BaseObjectType = AdwDialog; using BaseClassType = AdwDialogClass; using CppObjectType = Dialog; using CppClassType = struct Dialog_Class; using helpers::gobj_mixin::gobj; using helpers::gobj_mixin::gobj_copy; explicit Dialog(); Dialog(Dialog const & other) = delete; Dialog(Dialog && other) noexcept = default; auto operator=(Dialog const & other) noexcept -> Dialog & = delete; auto operator=(Dialog && other) noexcept -> Dialog & = default; auto static get_type() -> GType; auto static get_base_type() -> GType; auto add_breakpoint(Glib::RefPtr const & breakpoint) -> void; auto close() -> void; auto force_close() -> void; auto get_can_close() const -> bool; auto get_child() const -> Gtk::Widget *; auto get_content_height() const -> int; auto get_content_width() const -> int; auto get_current_breakpoint() const -> Glib::RefPtr; auto get_default_widget() const -> Gtk::Widget *; auto get_focus() const -> Gtk::Widget *; auto present(Gtk::Widget * parent) -> void; auto set_title(Glib::ustring const & str) -> void; protected: friend Dialog_Class; explicit Dialog(Glib::ConstructParams const & params); explicit Dialog(BaseObjectType * gobj); }; } // namespace Adwaita namespace Glib { auto wrap(AdwDialog * object, bool copy = false) -> Adwaita::Dialog *; } // namespace Glib #endif