AIT/src/view/components/wrapper.rs

18 lines
341 B
Rust
Raw Normal View History

2024-03-10 11:54:32 +03:00
use gtk4 as gtk;
2024-03-10 11:54:32 +03:00
use gtk::{Orientation, builders::BoxBuilder, Box};
2024-03-10 11:54:32 +03:00
#[allow(dead_code)]
pub struct Wrapper;
2024-03-10 11:54:32 +03:00
impl Wrapper{
2024-03-10 11:54:32 +03:00
pub fn row_builder() -> BoxBuilder {
Box::builder().orientation(Orientation::Vertical)
}
2024-03-10 11:54:32 +03:00
pub fn col_builder() -> BoxBuilder {
Box::builder().orientation(Orientation::Horizontal)
}
2024-03-10 11:54:32 +03:00
}