mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
init text container
This commit is contained in:
parent
c708cc20d6
commit
36a460d0ad
19
src/browser/main/tab/page/content/text/mod.rs
Normal file
19
src/browser/main/tab/page/content/text/mod.rs
Normal 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
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user