reorganize widget modules

This commit is contained in:
yggverse 2024-09-23 18:51:48 +03:00
parent b9b226cc54
commit 4903968309
47 changed files with 352 additions and 786 deletions

View file

@ -1,19 +1,19 @@
mod widget;
use gtk::{Box, Orientation};
pub struct Content {
widget: widget::Content,
widget: Box,
}
impl Content {
// Construct
pub fn new() -> Content {
Self {
widget: widget::Content::new(),
widget: Box::builder().orientation(Orientation::Vertical).build(),
}
}
// Getters
pub fn widget(&self) -> &widget::Content {
pub fn widget(&self) -> &Box {
&self.widget
}
}