11// This file was generated by gir (https://github.com/gtk-rs/gir)
22// from gir-files (https://github.com/gtk-rs/gir-files)
33// DO NOT EDIT
4+ #![ allow( deprecated) ]
45
56use crate :: { ffi, Colorspace , InterpType , PixbufFormat , PixbufRotation } ;
67use glib:: { prelude:: * , translate:: * } ;
@@ -213,6 +214,8 @@ impl Pixbuf {
213214 }
214215 }
215216
217+ #[ cfg_attr( feature = "v2_44" , deprecated = "Since 2.44" ) ]
218+ #[ allow( deprecated) ]
216219 #[ doc( alias = "gdk_pixbuf_new_from_xpm_data" ) ]
217220 #[ doc( alias = "new_from_xpm_data" ) ]
218221 pub fn from_xpm_data ( data : & [ & str ] ) -> Result < Pixbuf , glib:: BoolError > {
@@ -539,7 +542,7 @@ impl Pixbuf {
539542 //}
540543
541544 //#[doc(alias = "gdk_pixbuf_save_to_buffer")]
542- //pub fn save_to_buffer(&self, type_: &str, error: Option< &mut glib::Error> , : /*Unknown conversion*//*Unimplemented*/Basic: VarArgs) -> Option<Vec<u8>> {
545+ //pub fn save_to_buffer(&self, type_: &str, error: &mut glib::Error, : /*Unknown conversion*//*Unimplemented*/Basic: VarArgs) -> Option<Vec<u8>> {
543546 // unsafe { TODO: call ffi:gdk_pixbuf_save_to_buffer() }
544547 //}
545548
@@ -563,24 +566,6 @@ impl Pixbuf {
563566 // unsafe { TODO: call ffi:gdk_pixbuf_save_to_stream_async() }
564567 //}
565568
566- //
567- //pub fn save_to_stream_future(&self, stream: &(impl IsA<gio::OutputStream> + Clone + 'static), type_: &str, : /*Unknown conversion*//*Unimplemented*/Basic: VarArgs) -> Pin<Box_<dyn std::future::Future<Output = Result<(), glib::Error>> + 'static>> {
568-
569- //let stream = stream.clone();
570- //let type_ = String::from(type_);
571- //Box_::pin(gio::GioFuture::new(self, move |obj, cancellable, send| {
572- // obj.save_to_stream_async(
573- // &stream,
574- // &type_,
575- // Some(cancellable),
576- // ,
577- // move |res| {
578- // send.resolve(res);
579- // },
580- // );
581- //}))
582- //}
583-
584569 #[ doc( alias = "gdk_pixbuf_scale" ) ]
585570 pub fn scale (
586571 & self ,
0 commit comments