This repository has been archived on 2025-03-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
AIT/src/view/components/wrapper.rs

18 lines
341 B
Rust
Raw Normal View History

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