use std::cell::RefCell; use std::path::Path; use glib::subclass::InitializingObject; use glib::Properties; use gtk::gio::File; use gtk::subclass::prelude::*; use gtk::{glib, prelude::*, Button, CompositeTemplate, Label, Picture}; #[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 picture: TemplateChild, #[template_child] pub hieroglyph_label: TemplateChild