mirror of https://github.com/YGGverse/Yoda.git
yggverse
2 months ago
1 changed files with 19 additions and 0 deletions
@ -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 |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue