mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-30 21:14:14 +00:00
25 lines
378 B
Rust
25 lines
378 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()
|
|
}
|
|
}
|