mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 12:34:13 +00:00
25 lines
370 B
Rust
25 lines
370 B
Rust
mod widget;
|
|
|
|
use widget::Widget;
|
|
|
|
use gtk::WindowControls;
|
|
use std::rc::Rc;
|
|
|
|
pub struct Control {
|
|
widget: Rc<Widget>,
|
|
}
|
|
|
|
impl Control {
|
|
// Construct
|
|
pub fn new_rc() -> Rc<Self> {
|
|
Rc::new(Self {
|
|
widget: Widget::new_rc(),
|
|
})
|
|
}
|
|
|
|
// Getters
|
|
pub fn gobject(&self) -> &WindowControls {
|
|
self.widget.gobject()
|
|
}
|
|
}
|