Yoda/src/browser/main/tab/page/widget.rs
2024-09-23 15:07:41 +03:00

24 lines
488 B
Rust

use gtk::prelude::BoxExt;
pub struct Page {
container: gtk::Box,
}
impl Page {
// Construct
pub fn new(navigation: &gtk::Box, content: &gtk::Box) -> Page {
let container = gtk::Box::builder()
.orientation(gtk::Orientation::Vertical)
.build();
container.append(navigation);
container.append(content);
Self { container }
}
// Getters
pub fn container(&self) -> &gtk::Box {
&self.container
}
}