init text container

This commit is contained in:
yggverse 2024-09-25 18:30:54 +03:00
parent c708cc20d6
commit 36a460d0ad

View File

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