mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-16 17:50:10 +00:00
23 lines
470 B
Rust
23 lines
470 B
Rust
use adw::{TabView, ToolbarView};
|
|
use gtk::{prelude::BoxExt, Box, Orientation};
|
|
|
|
pub struct Widget {
|
|
gobject: Box,
|
|
}
|
|
|
|
impl Widget {
|
|
// Construct
|
|
pub fn new(header: &ToolbarView, tab: &TabView) -> Self {
|
|
let gobject = Box::builder().orientation(Orientation::Vertical).build();
|
|
gobject.append(header);
|
|
gobject.append(tab);
|
|
|
|
Self { gobject }
|
|
}
|
|
|
|
// Getters
|
|
pub fn gobject(&self) -> &Box {
|
|
&self.gobject
|
|
}
|
|
}
|