diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-29 12:52:32 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-29 12:52:32 +0200 |
| commit | ce93a783ee6228f54f5bd24da88becc913c5c85c (patch) | |
| tree | ee86b5eaa2c6969f24ee887fe37beb06adda5b75 /include/adwaitamm/private/headerbar_p.hpp | |
| parent | 673e58ca36421bb560d4e04277b6b58ce6e0db6f (diff) | |
| download | libadwaitamm-ce93a783ee6228f54f5bd24da88becc913c5c85c.tar.xz libadwaitamm-ce93a783ee6228f54f5bd24da88becc913c5c85c.zip | |
adw: implement HeaderBar
Diffstat (limited to 'include/adwaitamm/private/headerbar_p.hpp')
| -rw-r--r-- | include/adwaitamm/private/headerbar_p.hpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/adwaitamm/private/headerbar_p.hpp b/include/adwaitamm/private/headerbar_p.hpp new file mode 100644 index 0000000..dac73ef --- /dev/null +++ b/include/adwaitamm/private/headerbar_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_HEADER_BAR_P_HPP +#define LIBADWAITAMM_PRIVATE_HEADER_BAR_P_HPP + +#include <glibmm/class.h> +#include <glibmm/objectbase.h> + +#include <gtkmm/widget.h> + +#define _ADWAITA_INSIDE +#include <adw-header-bar.h> +#undef _ADWAITA_INSIDE + +namespace Adwaita +{ + struct HeaderBar_Class : Glib::Class + { + using BaseClassParent = GtkWidgetClass; + using BaseClassType = AdwHeaderBarClass; + using BaseObjectType = AdwHeaderBar; + using CppClassParent = Gtk::Widget_Class; + using CppObjectType = struct HeaderBar; + + 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 |
