From d7e133846015d005768e5588a6dd926fed4d3f04 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 28 Apr 2025 13:31:44 +0200 Subject: adw: implement EntryRow --- adw/src/private/entryrow_p.cpp | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 adw/src/private/entryrow_p.cpp (limited to 'adw/src/private/entryrow_p.cpp') diff --git a/adw/src/private/entryrow_p.cpp b/adw/src/private/entryrow_p.cpp new file mode 100644 index 0000000..8f1274a --- /dev/null +++ b/adw/src/private/entryrow_p.cpp @@ -0,0 +1,44 @@ +/** + * @author Felix Morgner (felix.morgner@gmail.com) + * @copyright Copyright (c) 2025 + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + +#include "adwaitamm/private/entryrow_p.hpp" + +#include "adwaitamm/entryrow.hpp" + +#include +#include +#include + +#include +#include + +#include +#include + +namespace Adwaita +{ + auto EntryRow_Class::init() -> Glib::Class const & + { + if (!gtype_) + { + class_init_func_ = &class_init_function; + register_derived_type(adw_entry_row_get_type()); + Gtk::Editable::add_interface(get_type()); + } + return *this; + } + + auto EntryRow_Class::class_init_function(void * gclass, void * data) -> void + { + auto const klass = static_cast(gclass); + CppClassParent::class_init_function(klass, data); + } + + auto EntryRow_Class::wrap_new(GObject * object) -> Glib::ObjectBase * + { + return Gtk::manage(new EntryRow(ADW_ENTRY_ROW(object))); + } +} // namespace Adwaita \ No newline at end of file -- cgit v1.2.3