rename struct entity

This commit is contained in:
yggverse 2024-09-23 14:57:02 +03:00
parent 7e7ad470e1
commit b162682f51
3 changed files with 12 additions and 12 deletions

View file

@ -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) -> &gtk::Image {
&self.gtk
pub fn image(&self) -> &gtk::Image {
&self.image
}
}