create parental app mod

This commit is contained in:
yggverse 2024-10-02 02:14:00 +03:00
parent 2461f2a0fb
commit b2aa3af46a
37 changed files with 176 additions and 111 deletions

View file

@ -0,0 +1,22 @@
use gtk::Image;
pub struct Pin {
widget: Image,
}
impl Pin {
// Construct
pub fn new(visible: bool) -> Pin {
let widget = Image::builder()
.icon_name("view-pin-symbolic")
.visible(visible)
.build();
Self { widget }
}
// Getters
pub fn widget(&self) -> &Image {
&self.widget
}
}