2024-10-31 10:24:58 +00:00
|
|
|
pub mod song;
|
2024-10-29 14:46:33 +00:00
|
|
|
pub use song::Song;
|
2024-10-31 10:24:58 +00:00
|
|
|
|
|
|
|
mod ffi {
|
|
|
|
use gtk::glib;
|
|
|
|
|
|
|
|
#[repr(C)]
|
|
|
|
pub struct AudreyUiPlayQueue {
|
|
|
|
_data: [u8; 0],
|
|
|
|
}
|
|
|
|
|
|
|
|
#[repr(C)]
|
|
|
|
pub struct AudreyUiPlayQueueClass {
|
|
|
|
_data: [u8; 0],
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
pub fn audrey_ui_play_queue_get_type() -> glib::ffi::GType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
use gtk::glib;
|
|
|
|
|
|
|
|
glib::wrapper! {
|
|
|
|
pub struct PlayQueue(Object<ffi::AudreyUiPlayQueue, ffi::AudreyUiPlayQueueClass>)
|
|
|
|
@extends adw::Bin, gtk::Widget,
|
|
|
|
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget;
|
|
|
|
|
|
|
|
match fn {
|
|
|
|
type_ => || ffi::audrey_ui_play_queue_get_type(),
|
|
|
|
}
|
|
|
|
}
|