diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 12:11:23 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 12:11:23 +0200 |
| commit | c5064eedf26c04e346ec63b39610c82ded8194b7 (patch) | |
| tree | 2b5d3c78facbf2e44774da2dd5cd953656c8d348 /src/private | |
| parent | eea05c392c2711ffc8c19cbe1c1c7830fc3c60d1 (diff) | |
| download | libadwaitamm-c5064eedf26c04e346ec63b39610c82ded8194b7.tar.xz libadwaitamm-c5064eedf26c04e346ec63b39610c82ded8194b7.zip | |
adw: implement ComboRow
Diffstat (limited to 'src/private')
| -rw-r--r-- | src/private/comborow_p.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/private/comborow_p.cpp b/src/private/comborow_p.cpp new file mode 100644 index 0000000..4277db2 --- /dev/null +++ b/src/private/comborow_p.cpp @@ -0,0 +1,41 @@ +/** + * @author Felix Morgner (felix.morgner@gmail.com) + * @copyright Copyright (c) 2025 + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + +#include "adwaitamm/private/comborow_p.hpp" + +#include "adwaitamm/comborow.hpp" + +#include <glibmm/class.h> +#include <glibmm/object.h> +#include <glibmm/objectbase.h> + +#include <gtkmm/object.h> + +#include <adwaita.h> + +namespace Adwaita +{ + auto ComboRow_Class::init() -> Glib::Class const & + { + if (!gtype_) + { + class_init_func_ = &class_init_function; + register_derived_type(adw_combo_row_get_type()); + } + return *this; + } + + auto ComboRow_Class::class_init_function(void * gclass, void * data) -> void + { + auto const klass = static_cast<BaseClassType *>(gclass); + CppClassParent::class_init_function(klass, data); + } + + auto ComboRow_Class::wrap_new(GObject * object) -> Glib::ObjectBase * + { + return Gtk::manage(new ComboRow(ADW_COMBO_ROW(object))); + } +} // namespace Adwaita
\ No newline at end of file |
