Yoda/src/app/browser.rs

39 lines
625 B
Rust
Raw Normal View History

2024-09-18 20:33:29 +03:00
#[path = "browser/header.rs"] mod header;
#[path = "browser/main.rs"] mod main;
use gtk::{Application, ApplicationWindow};
pub fn new(
app : &Application,
width : i32,
height : i32
) -> ApplicationWindow
2024-09-18 20:33:29 +03:00
{
return ApplicationWindow::builder()
// Relate
.application(
app
)
// Tuneup
.default_width(
width
)
.default_height(
height
)
// Init components
.titlebar(
&header::new()
)
.child(
&main::new()
)
// Make
.build();
2024-09-18 20:33:29 +03:00
}