mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-17 10:10:02 +00:00
21 lines
394 B
Rust
21 lines
394 B
Rust
|
use gtk::{prelude::BoxExt, Box, Notebook, Orientation};
|
||
|
|
||
|
pub struct Widget {
|
||
|
gobject: Box,
|
||
|
}
|
||
|
|
||
|
impl Widget {
|
||
|
// Construct
|
||
|
pub fn new(tab: &Notebook) -> Self {
|
||
|
let gobject = Box::builder().orientation(Orientation::Vertical).build();
|
||
|
gobject.append(tab);
|
||
|
|
||
|
Self { gobject }
|
||
|
}
|
||
|
|
||
|
// Getters
|
||
|
pub fn gobject(&self) -> &Box {
|
||
|
&self.gobject
|
||
|
}
|
||
|
}
|