mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
rename struct entity
This commit is contained in:
parent
7e7ad470e1
commit
b162682f51
3 changed files with 12 additions and 12 deletions
|
|
@ -1,20 +1,20 @@
|
|||
pub struct Pin {
|
||||
gtk: gtk::Image,
|
||||
image: gtk::Image,
|
||||
}
|
||||
|
||||
impl Pin {
|
||||
// Construct
|
||||
pub fn new() -> Pin {
|
||||
let gtk = gtk::Image::builder()
|
||||
let image = gtk::Image::builder()
|
||||
.icon_name("view-pin-symbolic")
|
||||
.visible(false) //@TODO
|
||||
.build();
|
||||
|
||||
Self { gtk }
|
||||
Self { image }
|
||||
}
|
||||
|
||||
// Getters
|
||||
pub fn gtk(&self) -> >k::Image {
|
||||
&self.gtk
|
||||
pub fn image(&self) -> >k::Image {
|
||||
&self.image
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue