diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 09:58:10 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 10:00:26 +0200 |
| commit | 1060036b78c3c9df98d04322d2953c29a12bb5be (patch) | |
| tree | 58c7b8e5e7aede4a5dc0de0245e9b952f693f8f4 /include/adwaitamm/private | |
| parent | 17f94ac916bccf340327d78d334c308aaabf371b (diff) | |
| download | libadwaitamm-1060036b78c3c9df98d04322d2953c29a12bb5be.tar.xz libadwaitamm-1060036b78c3c9df98d04322d2953c29a12bb5be.zip | |
adw: implement WindowTitle
Diffstat (limited to 'include/adwaitamm/private')
| -rw-r--r-- | include/adwaitamm/private/windowtitle_p.hpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/adwaitamm/private/windowtitle_p.hpp b/include/adwaitamm/private/windowtitle_p.hpp new file mode 100644 index 0000000..460505a --- /dev/null +++ b/include/adwaitamm/private/windowtitle_p.hpp @@ -0,0 +1,39 @@ +/** + * @author Felix Morgner (felix.morgner@gmail.com) + * @copyright Copyright (c) 2025 + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + +#ifndef LIBADWAITAMM_PRIVATE_WINDOW_TITLE_P_HPP +#define LIBADWAITAMM_PRIVATE_WINDOW_TITLE_P_HPP + +#include <glibmm/class.h> +#include <glibmm/objectbase.h> + +#include <gtkmm/widget.h> + +#define _ADWAITA_INSIDE +#include <adw-window-title.h> +#undef _ADWAITA_INSIDE + +namespace Adwaita +{ + struct WindowTitle_Class : Glib::Class + { + using BaseClassParent = GtkWidgetClass; + using BaseClassType = AdwWindowTitleClass; + using BaseObjectType = AdwWindowTitle; + using CppClassParent = Gtk::Widget_Class; + using CppObjectType = struct WindowTitle; + + auto init() -> Glib::Class const &; + auto static class_init_function(void * gclass, void * data) -> void; + auto static wrap_new(GObject * object) -> Glib::ObjectBase *; + + protected: + auto static close_attempt(BaseObjectType * self) -> void; + auto static closed(BaseObjectType * self) -> void; + }; +} // namespace Adwaita + +#endif
\ No newline at end of file |
