use std::cell::RefCell; use glib::subclass::InitializingObject; use glib::Properties; use gtk::subclass::prelude::*; use gtk::{glib, prelude::*, BoxLayout, CompositeTemplate, Entry, Label, Picture}; #[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 picture: TemplateChild, #[template_child] pub answer_entry: TemplateChild, #[template_child] pub error_message: TemplateChild