audrey/src/ui/playbar.rs

30 lines
632 B
Rust
Raw Normal View History

2024-10-30 10:42:03 +00:00
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<ffi::AudreyUiPlaybar, ffi::AudreyUiPlaybarClass>)
@extends adw::Bin, gtk::Widget,
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget;
match fn {
type_ => || ffi::audrey_ui_playbar_get_type(),
}
}