gtk4/auto/fixed_layout.rs
1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// DO NOT EDIT
4
5use crate::{ffi, LayoutManager};
6use glib::{prelude::*, translate::*};
7
8glib::wrapper! {
9 #[doc(alias = "GtkFixedLayout")]
10 pub struct FixedLayout(Object<ffi::GtkFixedLayout, ffi::GtkFixedLayoutClass>) @extends LayoutManager;
11
12 match fn {
13 type_ => || ffi::gtk_fixed_layout_get_type(),
14 }
15}
16
17impl FixedLayout {
18 #[doc(alias = "gtk_fixed_layout_new")]
19 pub fn new() -> FixedLayout {
20 assert_initialized_main_thread!();
21 unsafe { LayoutManager::from_glib_full(ffi::gtk_fixed_layout_new()).unsafe_cast() }
22 }
23}
24
25impl Default for FixedLayout {
26 fn default() -> Self {
27 Self::new()
28 }
29}