mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
24 lines
379 B
Rust
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()
|
|
}
|
|
}
|