init navbar components

This commit is contained in:
yggverse 2024-09-19 10:37:16 +03:00
parent 38659b45ca
commit 0759f14843
10 changed files with 240 additions and 2 deletions

View file

@ -1,9 +1,22 @@
#[path = "page/navigation.rs"] mod navigation;
#[path = "page/content.rs"] mod content;
use gtk::Box;
// use gtk::prelude::BoxExt; @TODO append
use gtk::prelude::BoxExt;
pub fn new() -> Box
{
return Box::builder().orientation(
let page = Box::builder().orientation(
gtk::Orientation::Vertical
).build();
page.append(
&navigation::new()
);
page.append(
&content::new()
);
return page;
}