// This file was generated by gir (https://github.com/gtk-rs/gir)
// from ../gir-files
// from ../pps-girs
// DO NOT EDIT

use crate::ffi;
use glib::translate::*;

glib::wrapper! {
    pub struct DocumentBackendInfo(BoxedInline<ffi::PpsDocumentBackendInfo>);

    match fn {
        copy => |ptr| glib::gobject_ffi::g_boxed_copy(ffi::pps_document_backend_info_get_type(), ptr as *mut _) as *mut ffi::PpsDocumentBackendInfo,
        free => |ptr| glib::gobject_ffi::g_boxed_free(ffi::pps_document_backend_info_get_type(), ptr as *mut _),
        type_ => || ffi::pps_document_backend_info_get_type(),
    }
}

impl DocumentBackendInfo {
    #[doc(alias = "pps_document_backend_info_new")]
    pub fn new() -> DocumentBackendInfo {
        assert_initialized_main_thread!();
        unsafe { from_glib_full(ffi::pps_document_backend_info_new()) }
    }
}

impl Default for DocumentBackendInfo {
    fn default() -> Self {
        Self::new()
    }
}
