diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 14:01:30 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 14:01:30 +0200 |
| commit | 29eb802f09da07421099238eceaee9e3b1d61ff2 (patch) | |
| tree | d07784be13475237d58f65033959c1e27e6245c0 /adw/include/adwaitamm/windowtitle.hpp | |
| parent | dff2f80ddc8f742b8181409d6feeca33e856112e (diff) | |
| download | turns-29eb802f09da07421099238eceaee9e3b1d61ff2.tar.xz turns-29eb802f09da07421099238eceaee9e3b1d61ff2.zip | |
adw: extract libadwaitamm
Diffstat (limited to 'adw/include/adwaitamm/windowtitle.hpp')
| -rw-r--r-- | adw/include/adwaitamm/windowtitle.hpp | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/adw/include/adwaitamm/windowtitle.hpp b/adw/include/adwaitamm/windowtitle.hpp deleted file mode 100644 index d142a95..0000000 --- a/adw/include/adwaitamm/windowtitle.hpp +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @author Felix Morgner (felix.morgner@gmail.com) - * @copyright Copyright (c) 2025 - * SPDX-License-Identifier: LGPL-2.1-or-later - */ - -#ifndef LIBADWAITAMM_WINDOW_TITLE_HPP -#define LIBADWAITAMM_WINDOW_TITLE_HPP - -#include "helpers/gobj_mixin.hpp" - -#include <glibmm/object.h> -#include <glibmm/propertyproxy.h> -#include <glibmm/ustring.h> - -#include <gtkmm/widget.h> - -#include <glib-object.h> - -#define _ADWAITA_INSIDE -#include <adw-window-title.h> -#undef _ADWAITA_INSIDE - -namespace Adwaita -{ - struct WindowTitle final : Gtk::Widget, - helpers::gobj_mixin<WindowTitle, AdwWindowTitle> - { - - using BaseObjectType = AdwWindowTitle; - using BaseClassType = AdwWindowTitleClass; - using CppObjectType = WindowTitle; - using CppClassType = struct WindowTitle_Class; - - using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj; - using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy; - -#pragma mark - Special Member Functions - WindowTitle(Glib::ustring const & title, Glib::ustring const & subtitle); - WindowTitle(WindowTitle const & other) = delete; - WindowTitle(WindowTitle && other) noexcept = default; - - auto operator=(WindowTitle const & other) noexcept -> WindowTitle & = delete; - auto operator=(WindowTitle && other) noexcept -> WindowTitle & = default; - -#pragma mark - GObject Support - auto static get_type() -> GType; - auto static get_base_type() -> GType; - -#pragma mark - Getters - [[nodiscard]] auto get_subtitle() const -> Glib::ustring; - [[nodiscard]] auto get_title() const -> Glib::ustring; - -#pragma mark - Setters - auto set_subtitle(Glib::ustring const & value) -> void; - auto set_title(Glib::ustring const & value) -> void; - -#pragma mark - Properties - [[nodiscard]] auto property_subtitle() -> Glib::PropertyProxy<Glib::ustring>; - [[nodiscard]] auto property_subtitle() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>; - [[nodiscard]] auto property_title() -> Glib::PropertyProxy<Glib::ustring>; - [[nodiscard]] auto property_title() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>; - - protected: - friend WindowTitle_Class; - -#pragma mark - Internal Constructors - explicit WindowTitle(Glib::ConstructParams const & params); - explicit WindowTitle(BaseObjectType * gobj); - }; -} // namespace Adwaita - -namespace Glib -{ - auto wrap(AdwWindowTitle * object, bool copy = false) -> Adwaita::WindowTitle *; -} // namespace Glib - -#endif
\ No newline at end of file |
