mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
rename widget struct entity
This commit is contained in:
parent
3d7be25c5f
commit
4b78ccb779
3 changed files with 16 additions and 16 deletions
|
|
@ -1,24 +1,24 @@
|
|||
use gtk::prelude::BoxExt;
|
||||
|
||||
pub struct Page {
|
||||
gtk: gtk::Box,
|
||||
container: gtk::Box,
|
||||
}
|
||||
|
||||
impl Page {
|
||||
// Construct
|
||||
pub fn new(navigation: >k::Box, content: >k::Box) -> Page {
|
||||
let gtk = gtk::Box::builder()
|
||||
let container = gtk::Box::builder()
|
||||
.orientation(gtk::Orientation::Vertical)
|
||||
.build();
|
||||
|
||||
gtk.append(navigation);
|
||||
gtk.append(content);
|
||||
container.append(navigation);
|
||||
container.append(content);
|
||||
|
||||
Self { gtk }
|
||||
Self { container }
|
||||
}
|
||||
|
||||
// Getters
|
||||
pub fn gtk(&self) -> >k::Box {
|
||||
&self.gtk
|
||||
pub fn container(&self) -> >k::Box {
|
||||
&self.container
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue