use std::cell::RefCell; use glib::subclass::InitializingObject; use glib::Properties; use gtk::subclass::prelude::*; use gtk::{glib, prelude::*, Button, CompositeTemplate, Image, Label, Switch}; #[derive(CompositeTemplate, Properties, Default)] #[properties(wrapper_type = super::CardEntry)] #[template(resource = "/org/foxarmy/learn-hieroglyph/widgets/card_entry/template.ui.xml")] pub struct CardEntry { #[template_child] pub image: TemplateChild, #[template_child] pub hieroglyph_label: TemplateChild