mirror of https://github.com/YGGverse/Yoda.git
yggverse
2 months ago
3 changed files with 50 additions and 3 deletions
@ -1,9 +1,22 @@
@@ -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; |
||||
} |
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
use gtk::Image; |
||||
|
||||
pub fn new() -> Image |
||||
{ |
||||
let pin = Image::builder().icon_name( |
||||
"view-pin-symbolic" |
||||
).build(); |
||||
|
||||
return pin; |
||||
} |
Loading…
Reference in new issue