30 lines
632 B
Rust
30 lines
632 B
Rust
|
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(),
|
||
|
}
|
||
|
}
|