Yoda/src/app/browser/window/header/bar/tab.rs
2025-01-15 00:25:33 +02:00

25 lines
453 B
Rust

mod append;
mod widget;
use append::Append;
use widget::Widget;
use super::WindowAction;
use adw::TabView;
use std::rc::Rc;
pub struct Tab {
pub widget: Rc<Widget>,
}
impl Tab {
// Construct
pub fn new(window_action: &Rc<WindowAction>, view: &TabView) -> Self {
Self {
widget: Rc::new(Widget::build(
view,
&Append::build(window_action).widget.button,
)),
}
}
}