mod ffi { use gtk::glib; #[repr(C)] pub struct AudreyUiPlaybar { parent_instance: adw::ffi::AdwBin, } #[repr(C)] pub struct AudreyUiPlaybarClass { parent_class: adw::ffi::AdwBinClass, } extern "C" { pub fn audrey_ui_playbar_get_type() -> glib::ffi::GType; } } use gtk::glib; glib::wrapper! { pub struct Playbar(Object) @extends adw::Bin, gtk::Widget, @implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget; match fn { type_ => || ffi::audrey_ui_playbar_get_type(), } }