// 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 Rectangle(BoxedInline<ffi::PpsRectangle>);

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

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

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