mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
29 lines
528 B
Rust
29 lines
528 B
Rust
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
|
|
}
|
|
}
|