mod subject; mod tray; use subject::Subject; use tray::Tray; use gtk::HeaderBar; use std::sync::Arc; pub struct Header { widget: HeaderBar, } impl Header { // Construct pub fn new() -> Arc
{ let tray = Tray::new(); let subject = Subject::new(); let widget = HeaderBar::builder().build(); widget.pack_start(tray.widget()); widget.set_title_widget(Some(subject.widget())); Arc::new(Self { widget }) } // Getters pub fn widget(&self) -> &HeaderBar { &self.widget } }