empty wrapper for play queue ui

This commit is contained in:
Erica Z 2024-10-31 11:24:58 +01:00
parent b53b3d8362
commit 96067675d4
2 changed files with 35 additions and 4 deletions

View file

@ -1,10 +1,11 @@
mod window;
pub mod window;
pub use window::Window;
mod playbar;
pub mod playbar;
pub use playbar::Playbar;
mod setup;
pub mod setup;
pub use setup::Setup;
pub mod play_queue;
pub use play_queue::PlayQueue;

View file

@ -1,2 +1,32 @@
mod song;
pub mod song;
pub use song::Song;
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(),
}
}