1use crate::{ffi, LayoutManager};
6use glib::{prelude::*, translate::*};
7
8glib::wrapper! {
9 #[doc(alias = "GtkBinLayout")]
10 pub struct BinLayout(Object<ffi::GtkBinLayout, ffi::GtkBinLayoutClass>) @extends LayoutManager;
11
12 match fn {
13 type_ => || ffi::gtk_bin_layout_get_type(),
14 }
15}
16
17impl BinLayout {
18 #[doc(alias = "gtk_bin_layout_new")]
19 pub fn new() -> BinLayout {
20 assert_initialized_main_thread!();
21 unsafe { LayoutManager::from_glib_full(ffi::gtk_bin_layout_new()).unsafe_cast() }
22 }
23}
24
25impl Default for BinLayout {
26 fn default() -> Self {
27 Self::new()
28 }
29}