mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
init label components
This commit is contained in:
parent
9e27fb0165
commit
b759ad72ee
3 changed files with 50 additions and 3 deletions
|
|
@ -1,9 +1,22 @@
|
|||
#[path = "label/pin.rs"] mod pin;
|
||||
#[path = "label/title.rs"] mod title;
|
||||
|
||||
use gtk::Box;
|
||||
// use gtk::prelude::BoxExt; @TODO append
|
||||
use gtk::prelude::BoxExt;
|
||||
|
||||
pub fn new() -> Box
|
||||
{
|
||||
return Box::builder().orientation(
|
||||
gtk::Orientation::Vertical
|
||||
let label = Box::builder().orientation(
|
||||
gtk::Orientation::Horizontal
|
||||
).build();
|
||||
|
||||
label.append(
|
||||
&pin::new()
|
||||
);
|
||||
|
||||
label.append(
|
||||
&title::new()
|
||||
);
|
||||
|
||||
return label;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue