mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-11 05:01:44 +00:00
24 lines
388 B
Rust
24 lines
388 B
Rust
![]() |
use gtk::prelude::BoxExt;
|
||
|
|
||
|
pub struct Main {
|
||
|
gtk: gtk::Box,
|
||
|
}
|
||
|
|
||
|
impl Main {
|
||
|
// Construct
|
||
|
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
|
||
|
}
|
||
|
}
|