Skip to main content

libglycin_rebind/auto/
new_frame.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from
3// from gir-files
4// DO NOT EDIT
5
6use glib::translate::*;
7
8use crate::ffi;
9
10glib::wrapper! {
11    #[doc(alias = "GlyNewFrame")]
12    pub struct NewFrame(Object<ffi::GlyNewFrame, ffi::GlyNewFrameClass>);
13
14    match fn {
15        type_ => || ffi::gly_new_frame_get_type(),
16    }
17}
18
19impl NewFrame {
20    #[doc(alias = "gly_new_frame_set_color_icc_profile")]
21    pub fn set_color_icc_profile(&self, icc_profile: &glib::Bytes) -> bool {
22        unsafe {
23            from_glib(ffi::gly_new_frame_set_color_icc_profile(
24                self.to_glib_none().0,
25                icc_profile.to_glib_none().0,
26            ))
27        }
28    }
29}
30
31unsafe impl Send for NewFrame {}
32unsafe impl Sync for NewFrame {}