mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
23 lines
399 B
Rust
23 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
|
|
}
|
|
}
|