#ifndef LIBADWAITAMM_DIALOG_HPP #define LIBADWAITAMM_DIALOG_HPP #include "helpers/gobj_mixin.hpp" #include "adwaitamm/breakpoint.hpp" #include #include #include #include #include #include #include using AdwDialog = struct _AdwDialog; using AdwDialogClass = struct _AdwDialogClass; namespace Adwaita { struct Dialog_Class; struct Dialog : Gtk::Widget, helpers::gobj_mixin { struct Class : Glib::Class { using BaseClassParent = GtkWidgetClass; using BaseClassType = AdwDialogClass; using BaseObjectType = AdwDialog; using CppClassParent = struct Gtk::Widget_Class; using CppObjectType = Dialog; 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 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: 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