blob: 416c693aecee0b30d87e67ab3d55c5049aac0a6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
/**
* @author Felix Morgner (felix.morgner@gmail.com)
* @copyright Copyright (c) 2025
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#ifndef LIBADWAITAMM_COMBO_ROW_HPP
#define LIBADWAITAMM_COMBO_ROW_HPP
#include "adwaitamm/actionrow.hpp"
#include "adwaitamm/helpers/gobj_mixin.hpp"
#include <glibmm/object.h>
#include <glibmm/propertyproxy.h>
#include <glibmm/refptr.h>
#include <glibmm/ustring.h>
#include <giomm/listmodel.h>
#include <gtkmm/expression.h>
#include <gtkmm/listitemfactory.h>
#include <gtkmm/stringfilter.h>
#include <glib-object.h>
#define _ADWAITA_INSIDE
#include <adw-combo-row.h>
#undef _ADWAITA_INSIDE
using AdwComboRow = struct _AdwComboRow;
namespace Adwaita
{
struct ComboRow : ActionRow,
helpers::gobj_mixin<ComboRow, AdwComboRow>
{
using BaseObjectType = AdwComboRow;
using BaseClassType = AdwComboRowClass;
using CppObjectType = struct ComboRow;
using CppClassType = struct ComboRow_Class;
using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
#pragma mark - Special Member Functions
explicit ComboRow();
ComboRow(ComboRow const & other) = delete;
ComboRow(ComboRow && other) noexcept = default;
auto operator=(ComboRow const & other) noexcept -> ComboRow & = delete;
auto operator=(ComboRow && other) noexcept -> ComboRow & = default;
#pragma mark - GObject Support
auto static get_type() -> GType;
auto static get_base_type() -> GType;
#pragma mark - Getters
auto get_enable_search() const -> bool;
auto get_expression() const -> Glib::RefPtr<Gtk::Expression<Glib::ustring>>;
auto get_factory() const -> Glib::RefPtr<Gtk::ListItemFactory>;
auto get_header_factory() const -> Glib::RefPtr<Gtk::ListItemFactory>;
auto get_list_factory() const -> Glib::RefPtr<Gtk::ListItemFactory>;
auto get_model() const -> Glib::RefPtr<Gio::ListModel>;
auto get_search_match_mode() const -> Gtk::StringFilter::MatchMode;
auto get_selected() const -> unsigned int;
auto get_selected_item() const -> Glib::RefPtr<Glib::Object>;
auto get_use_subtitle() const -> bool;
#pragma mark - Setters
auto set_enable_search(bool value) -> void;
auto set_expression(Glib::RefPtr<Gtk::Expression<Glib::ustring>> const & value) -> void;
auto set_factory(Glib::RefPtr<Gtk::ListItemFactory> const & value) -> void;
auto set_header_factory(Glib::RefPtr<Gtk::ListItemFactory> const & value) -> void;
auto set_list_factory(Glib::RefPtr<Gtk::ListItemFactory> const & value) -> void;
auto set_model(Glib::RefPtr<Gio::ListModel> const & value) -> void;
auto set_search_match_mode(Gtk::StringFilter::MatchMode value) -> void;
auto set_selected(unsigned int value) -> void;
auto set_use_subtitle(bool value) -> void;
#pragma mark - Properties
auto property_enable_search() -> Glib::PropertyProxy<bool>;
auto property_enable_search() const -> Glib::PropertyProxy_ReadOnly<bool>;
auto property_expression() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::Expression<Glib::ustring>>>;
auto property_expression() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::Expression<Glib::ustring>>>;
auto property_factory() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::ListItemFactory>>;
auto property_factory() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::ListItemFactory>>;
auto property_header_factory() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::ListItemFactory>>;
auto property_header_factory() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::ListItemFactory>>;
auto property_list_factory() -> Glib::PropertyProxy<Glib::RefPtr<Gtk::ListItemFactory>>;
auto property_list_factory() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gtk::ListItemFactory>>;
auto property_model() -> Glib::PropertyProxy<Glib::RefPtr<Gio::ListModel>>;
auto property_model() const -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Gio::ListModel>>;
auto property_search_match_mode() -> Glib::PropertyProxy<Gtk::StringFilter::MatchMode>;
auto property_search_match_mode() const -> Glib::PropertyProxy_ReadOnly<Gtk::StringFilter::MatchMode>;
auto property_selected() -> Glib::PropertyProxy<unsigned int>;
auto property_selected() const -> Glib::PropertyProxy_ReadOnly<unsigned int>;
auto property_selected_item() -> Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Glib::Object>>;
auto property_use_subtitle() -> Glib::PropertyProxy<bool>;
auto property_use_subtitle() const -> Glib::PropertyProxy_ReadOnly<bool>;
protected:
friend ComboRow_Class;
#pragma mark - Internal Constructors
explicit ComboRow(Glib::ConstructParams const & params);
explicit ComboRow(BaseObjectType * gobj);
};
} // namespace Adwaita
namespace Glib
{
auto wrap(AdwComboRow * object, bool copy = false) -> Adwaita::ComboRow *;
} // namespace Glib
#endif
|