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