mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
17 lines
384 B
Rust
17 lines
384 B
Rust
use adw::{TabView, ToolbarView};
|
|
use gtk::{prelude::BoxExt, Box, Orientation};
|
|
|
|
pub struct Widget {
|
|
pub g_box: Box,
|
|
}
|
|
|
|
impl Widget {
|
|
// Construct
|
|
pub fn new(header: &ToolbarView, tab: &TabView) -> Self {
|
|
let g_box = Box::builder().orientation(Orientation::Vertical).build();
|
|
g_box.append(header);
|
|
g_box.append(tab);
|
|
|
|
Self { g_box }
|
|
}
|
|
}
|