/** * @author Felix Morgner (felix.morgner@gmail.com) * @copyright Copyright (c) 2025 * SPDX-License-Identifier: LGPL-2.1-or-later */ #ifndef LIBADWAITAMM_HEADER_BAR_HPP #define LIBADWAITAMM_HEADER_BAR_HPP #include "adwaitamm/enums.hpp" #include "helpers/gobj_mixin.hpp" #include #include #include #include #include #define _ADWAITA_INSIDE #include #undef _ADWAITA_INSIDE namespace Adwaita { struct HeaderBar final : Gtk::Widget, helpers::gobj_mixin { using BaseObjectType = AdwHeaderBar; using BaseClassType = AdwHeaderBarClass; using CppObjectType = HeaderBar; using CppClassType = struct HeaderBar_Class; using helpers::gobj_mixin::gobj; using helpers::gobj_mixin::gobj_copy; HeaderBar(); HeaderBar(HeaderBar const & other) = delete; HeaderBar(HeaderBar && other) noexcept = default; auto operator=(HeaderBar const & other) noexcept -> HeaderBar & = delete; auto operator=(HeaderBar && other) noexcept -> HeaderBar & = default; auto static get_type() -> GType; auto static get_base_type() -> GType; auto pack_end(Gtk::Widget & widget) -> void; auto pack_start(Gtk::Widget & widget) -> void; auto remove(Gtk::Widget & widget) -> void; [[nodiscard]] auto get_centering_policy() -> CenteringPolicy; [[nodiscard]] auto get_decoration_layout() -> Glib::ustring; [[nodiscard]] auto get_show_back_button() -> bool; [[nodiscard]] auto get_show_end_title_buttons() -> bool; [[nodiscard]] auto get_show_start_title_buttons() -> bool; [[nodiscard]] auto get_show_title() -> bool; [[nodiscard]] auto get_title_widget() -> Gtk::Widget *; auto set_centering_policy(CenteringPolicy value) -> void; auto set_decoration_layout(Glib::ustring const & value) -> void; auto set_show_back_button(bool value) -> void; auto set_show_end_title_buttons(bool value) -> void; auto set_show_start_title_buttons(bool value) -> void; auto set_show_title(bool value) -> void; auto set_title_widget(Gtk::Widget & value) -> void; auto property_centering_policy() -> Glib::PropertyProxy; auto property_centering_policy() const -> Glib::PropertyProxy_ReadOnly; auto property_decoration_layout() -> Glib::PropertyProxy; auto property_decoration_layout() const -> Glib::PropertyProxy_ReadOnly; auto property_show_back_button() -> Glib::PropertyProxy; auto property_show_back_button() const -> Glib::PropertyProxy_ReadOnly; auto property_show_end_title_buttons() -> Glib::PropertyProxy; auto property_show_end_title_buttons() const -> Glib::PropertyProxy_ReadOnly; auto property_show_start_title_buttons() -> Glib::PropertyProxy; auto property_show_start_title_buttons() const -> Glib::PropertyProxy_ReadOnly; auto property_show_title() -> Glib::PropertyProxy; auto property_show_title() const -> Glib::PropertyProxy_ReadOnly; auto property_title_widget() -> Glib::PropertyProxy; auto property_title_widget() const -> Glib::PropertyProxy_ReadOnly; protected: friend HeaderBar_Class; explicit HeaderBar(Glib::ConstructParams const & params); explicit HeaderBar(BaseObjectType * gobj); }; } // namespace Adwaita namespace Glib { auto wrap(AdwHeaderBar * object, bool copy = false) -> Adwaita::HeaderBar *; } // namespace Glib #endif