init header components

This commit is contained in:
yggverse 2024-09-19 11:29:03 +03:00
parent 0759f14843
commit 0c8684491b
7 changed files with 210 additions and 1 deletions

View file

@ -0,0 +1,32 @@
#[path = "subject/title.rs"] mod title;
#[path = "subject/description.rs"] mod description;
use gtk::Box;
use gtk::prelude::BoxExt;
pub fn new() -> Box
{
let subject = Box::builder()
// Tuneup
.orientation(
gtk::Orientation::Vertical
)
.valign(
gtk::Align::Center
)
.build();
// Compose childs
subject.append(
&title::new()
);
subject.append(
&description::new()
);
return subject;
}