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 {
|
2024-09-22 19:51:06 +03:00
|
|
|
let subject = subject::Subject::new();
|
|
|
|
let tray = tray::new();
|
2024-09-22 18:36:49 +03:00
|
|
|
Self {
|
2024-09-22 19:51:06 +03:00
|
|
|
widget: widget::Header::new(&tray, subject.widget().gtk()), // @TODO
|
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
|
|
|
}
|