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