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