From ce93a783ee6228f54f5bd24da88becc913c5c85c Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 29 Apr 2025 12:52:32 +0200 Subject: adw: implement HeaderBar --- include/adwaitamm/private/headerbar_p.hpp | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 include/adwaitamm/private/headerbar_p.hpp (limited to 'include/adwaitamm/private/headerbar_p.hpp') 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 +#include + +#include + +#define _ADWAITA_INSIDE +#include +#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 -- cgit v1.2.3