Yoda/src/app/browser/window/header/bar/control.rs
2024-10-10 23:34:06 +03:00

24 lines
379 B
Rust

mod widget;
use widget::Widget;
use gtk::WindowControls;
use std::sync::Arc;
pub struct Control {
widget: Arc<Widget>,
}
impl Control {
// Construct
pub fn new_arc() -> Arc<Self> {
Arc::new(Self {
widget: Widget::new_arc(),
})
}
// Getters
pub fn gobject(&self) -> &WindowControls {
&self.widget.gobject()
}
}