@@ -60,7 +60,7 @@ impl Pixbuf {
6060
6161 //#[doc(alias = "gdk_pixbuf_new_from_data")]
6262 //#[doc(alias = "new_from_data")]
63- //pub fn from_data(data: &[u8], colorspace: Colorspace, has_alpha: bool, bits_per_sample: i32, width: i32, height: i32, rowstride: i32, destroy_fn: Option<Box_<dyn FnOnce(&Vec<u8> ) + 'static>>) -> Pixbuf {
63+ //pub fn from_data(data: &[u8], colorspace: Colorspace, has_alpha: bool, bits_per_sample: i32, width: i32, height: i32, rowstride: i32, destroy_fn: Option<Box_<dyn FnOnce(&[u8] ) + 'static>>) -> Pixbuf {
6464 // unsafe { TODO: call ffi:gdk_pixbuf_new_from_data() }
6565 //}
6666
@@ -465,7 +465,7 @@ impl Pixbuf {
465465
466466 //#[doc(alias = "gdk_pixbuf_get_options")]
467467 //#[doc(alias = "get_options")]
468- //pub fn options(&self) -> /*Unknown conversion*//* Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 0, id: 28 } {
468+ //pub fn options(&self) -> /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 0, id: 28 } {
469469 // unsafe { TODO: call ffi:gdk_pixbuf_get_options() }
470470 //}
471471
@@ -534,37 +534,37 @@ impl Pixbuf {
534534 }
535535
536536 //#[doc(alias = "gdk_pixbuf_save")]
537- //pub fn save(&self, filename: impl AsRef<std::path::Path>, type_: &str, error: Option<&mut glib::Error>, : /*Unknown conversion*//* Unimplemented*/Basic: VarArgs) -> bool {
537+ //pub fn save(&self, filename: impl AsRef<std::path::Path>, type_: &str, error: Option<&mut glib::Error>, : /*Unimplemented*/Basic: VarArgs) -> bool {
538538 // unsafe { TODO: call ffi:gdk_pixbuf_save() }
539539 //}
540540
541541 //#[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>> {
542+ //pub fn save_to_buffer(&self, type_: &str, error: Option<&mut glib::Error>, : /*Unimplemented*/Basic: VarArgs) -> Option<Vec<u8>> {
543543 // unsafe { TODO: call ffi:gdk_pixbuf_save_to_buffer() }
544544 //}
545545
546546 //#[doc(alias = "gdk_pixbuf_save_to_callback")]
547- //pub fn save_to_callback<P: FnMut(&Vec<u8> , usize, &glib::Error) -> bool>(&self, save_func: P, type_: &str, error: Option<&mut glib::Error>, : /*Unknown conversion*/ /*Unimplemented*/Basic: VarArgs) -> bool {
547+ //pub fn save_to_callback<P: FnMut(&[u8] , usize, &glib::Error) -> bool>(&self, save_func: P, type_: &str, error: Option<&mut glib::Error>, : /*Unimplemented*/Basic: VarArgs) -> bool {
548548 // unsafe { TODO: call ffi:gdk_pixbuf_save_to_callback() }
549549 //}
550550
551551 //#[doc(alias = "gdk_pixbuf_save_to_callbackv")]
552- //pub fn save_to_callbackv<P: FnMut(&Vec<u8> , usize, &glib::Error) -> bool>(&self, save_func: P, type_: &str, option_keys: &[&str], option_values: &[&str]) -> Result<(), glib::Error> {
552+ //pub fn save_to_callbackv<P: FnMut(&[u8] , usize, &glib::Error) -> bool>(&self, save_func: P, type_: &str, option_keys: &[&str], option_values: &[&str]) -> Result<(), glib::Error> {
553553 // unsafe { TODO: call ffi:gdk_pixbuf_save_to_callbackv() }
554554 //}
555555
556556 //#[doc(alias = "gdk_pixbuf_save_to_stream")]
557- //pub fn save_to_stream(&self, stream: &impl IsA<gio::OutputStream>, type_: &str, cancellable: Option<&impl IsA<gio::Cancellable>>, error: Option<&mut glib::Error>, : /*Unknown conversion*//* Unimplemented*/Basic: VarArgs) -> bool {
557+ //pub fn save_to_stream(&self, stream: &impl IsA<gio::OutputStream>, type_: &str, cancellable: Option<&impl IsA<gio::Cancellable>>, error: Option<&mut glib::Error>, : /*Unimplemented*/Basic: VarArgs) -> bool {
558558 // unsafe { TODO: call ffi:gdk_pixbuf_save_to_stream() }
559559 //}
560560
561561 //#[doc(alias = "gdk_pixbuf_save_to_stream_async")]
562- //pub fn save_to_stream_async<P: FnOnce(Result<(), glib::Error>) + 'static>(&self, stream: &impl IsA<gio::OutputStream>, type_: &str, cancellable: Option<&impl IsA<gio::Cancellable>>, callback: P, : /*Unknown conversion*//* Unimplemented*/Basic: VarArgs) {
562+ //pub fn save_to_stream_async<P: FnOnce(Result<(), glib::Error>) + 'static>(&self, stream: &impl IsA<gio::OutputStream>, type_: &str, cancellable: Option<&impl IsA<gio::Cancellable>>, callback: P, : /*Unimplemented*/Basic: VarArgs) {
563563 // unsafe { TODO: call ffi:gdk_pixbuf_save_to_stream_async() }
564564 //}
565565
566566 //
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>> {
567+ //pub fn save_to_stream_future(&self, stream: &(impl IsA<gio::OutputStream> + Clone + 'static), type_: &str, : /*Unimplemented*/Basic: VarArgs) -> Pin<Box_<dyn std::future::Future<Output = Result<(), glib::Error>> + 'static>> {
568568
569569 //let stream = stream.clone();
570570 //let type_ = String::from(type_);
0 commit comments