@@ -60,7 +60,7 @@ impl Pixbuf {
60
60
61
61
//#[doc(alias = "gdk_pixbuf_new_from_data")]
62
62
//#[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 {
64
64
// unsafe { TODO: call ffi:gdk_pixbuf_new_from_data() }
65
65
//}
66
66
@@ -465,7 +465,7 @@ impl Pixbuf {
465
465
466
466
//#[doc(alias = "gdk_pixbuf_get_options")]
467
467
//#[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 } {
469
469
// unsafe { TODO: call ffi:gdk_pixbuf_get_options() }
470
470
//}
471
471
@@ -534,37 +534,37 @@ impl Pixbuf {
534
534
}
535
535
536
536
//#[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 {
538
538
// unsafe { TODO: call ffi:gdk_pixbuf_save() }
539
539
//}
540
540
541
541
//#[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>> {
543
543
// unsafe { TODO: call ffi:gdk_pixbuf_save_to_buffer() }
544
544
//}
545
545
546
546
//#[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 {
548
548
// unsafe { TODO: call ffi:gdk_pixbuf_save_to_callback() }
549
549
//}
550
550
551
551
//#[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> {
553
553
// unsafe { TODO: call ffi:gdk_pixbuf_save_to_callbackv() }
554
554
//}
555
555
556
556
//#[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 {
558
558
// unsafe { TODO: call ffi:gdk_pixbuf_save_to_stream() }
559
559
//}
560
560
561
561
//#[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) {
563
563
// unsafe { TODO: call ffi:gdk_pixbuf_save_to_stream_async() }
564
564
//}
565
565
566
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>> {
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>> {
568
568
569
569
//let stream = stream.clone();
570
570
//let type_ = String::from(type_);
0 commit comments