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

use crate::{Path, ffi};
use glib::translate::*;

glib::wrapper! {
    #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct InkList(Boxed<ffi::PpsInkList>);

    match fn {
        copy => |ptr| ffi::pps_ink_list_copy(ptr),
        free => |ptr| ffi::pps_ink_list_free(ptr),
        type_ => || ffi::pps_ink_list_get_type(),
    }
}

impl InkList {
    #[doc(alias = "pps_ink_list_new_for_array")]
    #[doc(alias = "new_for_array")]
    pub fn for_array(paths: &[Path]) -> InkList {
        assert_initialized_main_thread!();
        let n_paths = paths.len() as _;
        unsafe {
            from_glib_full(ffi::pps_ink_list_new_for_array(
                paths.to_glib_none().0,
                n_paths,
            ))
        }
    }
}
