25 lines
370 B
Rust
Raw Normal View History

mod widget;
use widget::Widget;
use gtk::WindowControls;
2024-11-08 05:21:08 +02:00
use std::rc::Rc;
pub struct Control {
2024-11-08 05:21:08 +02:00
widget: Rc<Widget>,
}
impl Control {
// Construct
2024-11-08 05:21:08 +02:00
pub fn new_rc() -> Rc<Self> {
Rc::new(Self {
widget: Widget::new_rc(),
})
}
// Getters
pub fn gobject(&self) -> &WindowControls {
2024-11-08 05:09:19 +02:00
self.widget.gobject()
}
}