complete widget submodule refactory

This commit is contained in:
yggverse 2024-09-22 22:23:44 +03:00
parent e45b7f0a4a
commit 1e42a75f2e
29 changed files with 585 additions and 145 deletions

View file

@ -1,9 +1,19 @@
use gtk::Button;
mod widget;
pub fn new() -> Button {
return Button::builder()
.icon_name("view-refresh-symbolic")
.tooltip_text("Reload")
.sensitive(false)
.build();
pub struct Reload {
widget: widget::Reload,
}
impl Reload {
// Construct
pub fn new() -> Reload {
Self {
widget: widget::Reload::new(),
}
}
// Getters
pub fn widget(&self) -> &widget::Reload {
&self.widget
}
}