mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
20 lines
416 B
Rust
20 lines
416 B
Rust
use adw::{TabView, ToolbarView};
|
|
use gtk::{prelude::BoxExt, Box, Orientation};
|
|
|
|
pub struct Widget {
|
|
pub g_box: Box,
|
|
}
|
|
|
|
impl Widget {
|
|
// Constructors
|
|
|
|
/// Build new `Self`
|
|
pub fn build(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 }
|
|
}
|
|
}
|