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 } }