mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
28 lines
490 B
Rust
28 lines
490 B
Rust
use gtk::Button;
|
|
|
|
pub struct Bookmark {
|
|
widget: Button,
|
|
}
|
|
|
|
impl Bookmark {
|
|
// Construct
|
|
pub fn new() -> Self {
|
|
Self {
|
|
widget: Button::builder()
|
|
.icon_name("starred-symbolic")
|
|
.tooltip_text("Bookmark")
|
|
.sensitive(false)
|
|
.build(),
|
|
}
|
|
}
|
|
|
|
// Actions
|
|
pub fn update(&self) {
|
|
// @TODO
|
|
}
|
|
|
|
// Getters
|
|
pub fn widget(&self) -> &Button {
|
|
&self.widget
|
|
}
|
|
}
|