gdk4/auto/
content_formats_builder.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;
6use glib::translate::*;
7
8glib::wrapper! {
9    #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
10    pub struct ContentFormatsBuilder(Shared<ffi::GdkContentFormatsBuilder>);
11
12    match fn {
13        ref => |ptr| ffi::gdk_content_formats_builder_ref(ptr),
14        unref => |ptr| ffi::gdk_content_formats_builder_unref(ptr),
15        type_ => || ffi::gdk_content_formats_builder_get_type(),
16    }
17}
18
19impl ContentFormatsBuilder {
20    #[doc(alias = "gdk_content_formats_builder_new")]
21    pub fn new() -> ContentFormatsBuilder {
22        assert_initialized_main_thread!();
23        unsafe { from_glib_full(ffi::gdk_content_formats_builder_new()) }
24    }
25}
26
27impl Default for ContentFormatsBuilder {
28    fn default() -> Self {
29        Self::new()
30    }
31}