27 lines
467 B
Rust
Raw Normal View History

2024-09-20 18:02:10 +03:00
mod subject;
mod tray;
mod widget;
2024-09-18 20:33:29 +03:00
use std::sync::Arc;
2024-09-22 12:38:13 +03:00
pub struct Header {
widget: widget::Header,
2024-09-22 12:38:13 +03:00
}
impl Header {
// Construct
pub fn new() -> Arc<Header> {
Arc::new(Self {
widget: widget::Header::new(
tray::Tray::new().widget().gtk(),
subject::Subject::new().widget().gtk(),
),
})
}
2024-09-19 11:29:03 +03:00
// Getters
pub fn widget(&self) -> &widget::Header {
&self.widget
}
2024-09-20 18:02:10 +03:00
}