1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use crate::Application;
use crate::ApplicationWindow;
use crate::Widget;
use glib::object::Cast;
use glib::object::IsA;
use glib::translate::*;
impl ApplicationWindow {
#[doc(alias = "gtk_application_window_new")]
pub fn new<P: IsA<Application>>(application: &P) -> ApplicationWindow {
skip_assert_initialized!();
unsafe {
Widget::from_glib_none(ffi::gtk_application_window_new(
application.as_ref().to_glib_none().0,
))
.unsafe_cast()
}
}
}