use modern (2018) pattern for modules

This commit is contained in:
yggverse 2024-09-27 22:36:22 +03:00
parent 1627902b8f
commit cdc3fe3388
28 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,29 @@
use gtk::Button;
pub struct Base {
widget: Button,
}
impl Base {
// Construct
pub fn new() -> Self {
Self {
widget: Button::builder()
.action_name("win.tab_page_base")
.icon_name("go-home-symbolic")
.tooltip_text("Base")
.sensitive(false)
.build(),
}
}
// Actions
pub fn update(&self) {
// @TODO
}
// Getters
pub fn widget(&self) -> &Button {
&self.widget
}
}