mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
29 lines
430 B
Rust
29 lines
430 B
Rust
mod widget;
|
|
|
|
use widget::Widget;
|
|
|
|
use gtk::Button;
|
|
use std::sync::Arc;
|
|
|
|
pub struct Bookmark {
|
|
widget: Arc<Widget>,
|
|
}
|
|
|
|
impl Bookmark {
|
|
// Construct
|
|
pub fn new_arc() -> Arc<Self> {
|
|
Arc::new(Self {
|
|
widget: Widget::new_arc(),
|
|
})
|
|
}
|
|
|
|
// Actions
|
|
pub fn update(&self) {
|
|
// @TODO
|
|
}
|
|
|
|
// Getters
|
|
pub fn gobject(&self) -> &Button {
|
|
self.widget.gobject()
|
|
}
|
|
}
|