mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
init text container
This commit is contained in:
parent
c708cc20d6
commit
36a460d0ad
1 changed files with 19 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue