mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
24 lines
488 B
Rust
24 lines
488 B
Rust
use gtk::prelude::BoxExt;
|
|
|
|
pub struct Page {
|
|
container: gtk::Box,
|
|
}
|
|
|
|
impl Page {
|
|
// Construct
|
|
pub fn new(navigation: >k::Box, content: >k::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) -> >k::Box {
|
|
&self.container
|
|
}
|
|
}
|