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 | 3fe6119b93141d74c9f34f69d2b3b6ae016c2abf (patch) | |
| tree | 383abae15bacfbf5f7c3a63fb8d5ab1c0cbec55c /adw/include/adwaitamm/private | |
| parent | 33d8a352eca90a530d560175f5406a5bde5e2861 (diff) | |
| download | turns-3fe6119b93141d74c9f34f69d2b3b6ae016c2abf.tar.xz turns-3fe6119b93141d74c9f34f69d2b3b6ae016c2abf.zip | |
adw: implement WindowTitle
Diffstat (limited to 'adw/include/adwaitamm/private')
| -rw-r--r-- | adw/include/adwaitamm/private/windowtitle_p.hpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/adw/include/adwaitamm/private/windowtitle_p.hpp b/adw/include/adwaitamm/private/windowtitle_p.hpp new file mode 100644 index 0000000..460505a --- /dev/null +++ b/adw/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 |
