mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
25 lines
453 B
Rust
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,
|
|
)),
|
|
}
|
|
}
|
|
}
|