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