use gtk4::glib; use gtk4::subclass::prelude::*; use std::cell::RefCell; use std::rc::Rc; #[derive(Debug, Default)] pub struct SearchResultRow { pub name: Rc>, pub description: Rc>, pub shortcut: Rc>, pub image: Rc>, pub category_image: Rc>, } #[glib::object_subclass] impl ObjectSubclass for SearchResultRow { const NAME: &'static str = "SearchResultRow"; type Type = super::SearchResultRow; type ParentType = gtk4::Box; } impl ObjectImpl for SearchResultRow {} impl WidgetImpl for SearchResultRow {} impl BoxImpl for SearchResultRow {}