mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
32 lines
No EOL
507 B
Rust
32 lines
No EOL
507 B
Rust
#[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;
|
|
} |