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