diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-03 18:41:43 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-03 18:41:43 +0200 |
| commit | 7423eb56342bc58a5705ab55a50f1b08177afcf8 (patch) | |
| tree | cf538fa7c0a3c7f4d07f6aa7dc6def916e7407f4 /include/turns/adw/dialog.hpp | |
| parent | 9b97aab3c81c29e9e3552e97d66a02beeb3790a5 (diff) | |
| download | libadwaitamm-7423eb56342bc58a5705ab55a50f1b08177afcf8.tar.xz libadwaitamm-7423eb56342bc58a5705ab55a50f1b08177afcf8.zip | |
adw: prepare files for extraction
Diffstat (limited to 'include/turns/adw/dialog.hpp')
| -rw-r--r-- | include/turns/adw/dialog.hpp | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/include/turns/adw/dialog.hpp b/include/turns/adw/dialog.hpp deleted file mode 100644 index 3536dfa..0000000 --- a/include/turns/adw/dialog.hpp +++ /dev/null @@ -1,82 +0,0 @@ -#ifndef TURNS_ADW_DIALOG_HPP -#define TURNS_ADW_DIALOG_HPP - -#include "helpers/gobj_mixin.hpp" -#include "turns/adw/breakpoint.hpp" - -#include <glibmm/class.h> -#include <glibmm/object.h> -#include <glibmm/objectbase.h> -#include <glibmm/refptr.h> -#include <glibmm/ustring.h> - -#include <gtkmm/widget.h> - -#include <glib-object.h> - -using AdwDialog = struct _AdwDialog; -using AdwDialogClass = struct _AdwDialogClass; - -namespace turns::adw -{ - struct Dialog_Class; - - struct Dialog : Gtk::Widget, - helpers::gobj_mixin<Dialog, AdwDialog> - { - 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<CppObjectType, BaseObjectType>::gobj; - using helpers::gobj_mixin<CppObjectType, BaseObjectType>::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<Breakpoint> 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<Breakpoint>; - 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 turns::adw - -namespace Glib -{ - auto wrap(AdwDialog * object, bool copy = false) -> turns::adw::Dialog *; -} // namespace Glib - -#endif
\ No newline at end of file |
