mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-06 16:34:13 +00:00
20 lines
311 B
Rust
20 lines
311 B
Rust
![]() |
use gtk::Notebook;
|
||
|
|
||
|
pub struct Widget {
|
||
|
gobject: Notebook,
|
||
|
}
|
||
|
|
||
|
impl Widget {
|
||
|
// Construct
|
||
|
pub fn new() -> Self {
|
||
|
let gobject = Notebook::builder().scrollable(true).build();
|
||
|
|
||
|
Self { gobject }
|
||
|
}
|
||
|
|
||
|
// Getters
|
||
|
pub fn gobject(&self) -> &Notebook {
|
||
|
&self.gobject
|
||
|
}
|
||
|
}
|