1 // This file was generated by gir (https://github.com/gtk-rs/gir) 2 // from gir-files (https://github.com/gtk-rs/gir-files) 3 // DO NOT EDIT 4 5 #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] 6 #![allow( 7 clippy::approx_constant, 8 clippy::type_complexity, 9 clippy::unreadable_literal, 10 clippy::upper_case_acronyms 11 )] 12 #![cfg_attr(feature = "dox", feature(doc_cfg))] 13 14 use gio_sys as gio; 15 use glib_sys as glib; 16 use gobject_sys as gobject; 17 18 #[allow(unused_imports)] 19 use libc::{ 20 c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, 21 intptr_t, size_t, ssize_t, time_t, uintptr_t, FILE, 22 }; 23 24 #[allow(unused_imports)] 25 use glib::{gboolean, gconstpointer, gpointer, GType}; 26 27 // Enums 28 pub type GdkColorspace = c_int; 29 pub const GDK_COLORSPACE_RGB: GdkColorspace = 0; 30 31 pub type GdkInterpType = c_int; 32 pub const GDK_INTERP_NEAREST: GdkInterpType = 0; 33 pub const GDK_INTERP_TILES: GdkInterpType = 1; 34 pub const GDK_INTERP_BILINEAR: GdkInterpType = 2; 35 pub const GDK_INTERP_HYPER: GdkInterpType = 3; 36 37 pub type GdkPixbufAlphaMode = c_int; 38 pub const GDK_PIXBUF_ALPHA_BILEVEL: GdkPixbufAlphaMode = 0; 39 pub const GDK_PIXBUF_ALPHA_FULL: GdkPixbufAlphaMode = 1; 40 41 pub type GdkPixbufError = c_int; 42 pub const GDK_PIXBUF_ERROR_CORRUPT_IMAGE: GdkPixbufError = 0; 43 pub const GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY: GdkPixbufError = 1; 44 pub const GDK_PIXBUF_ERROR_BAD_OPTION: GdkPixbufError = 2; 45 pub const GDK_PIXBUF_ERROR_UNKNOWN_TYPE: GdkPixbufError = 3; 46 pub const GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION: GdkPixbufError = 4; 47 pub const GDK_PIXBUF_ERROR_FAILED: GdkPixbufError = 5; 48 pub const GDK_PIXBUF_ERROR_INCOMPLETE_ANIMATION: GdkPixbufError = 6; 49 50 pub type GdkPixbufRotation = c_int; 51 pub const GDK_PIXBUF_ROTATE_NONE: GdkPixbufRotation = 0; 52 pub const GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE: GdkPixbufRotation = 90; 53 pub const GDK_PIXBUF_ROTATE_UPSIDEDOWN: GdkPixbufRotation = 180; 54 pub const GDK_PIXBUF_ROTATE_CLOCKWISE: GdkPixbufRotation = 270; 55 56 // Constants 57 58 // Flags 59 pub type GdkPixbufFormatFlags = c_uint; 60 pub const GDK_PIXBUF_FORMAT_WRITABLE: GdkPixbufFormatFlags = 1; 61 pub const GDK_PIXBUF_FORMAT_SCALABLE: GdkPixbufFormatFlags = 2; 62 pub const GDK_PIXBUF_FORMAT_THREADSAFE: GdkPixbufFormatFlags = 4; 63 64 // Callbacks 65 pub type GdkPixbufDestroyNotify = Option<unsafe extern "C" fn(*mut u8, gpointer)>; 66 pub type GdkPixbufModuleFillInfoFunc = Option<unsafe extern "C" fn(*mut GdkPixbufFormat)>; 67 pub type GdkPixbufModuleFillVtableFunc = Option<unsafe extern "C" fn(*mut GdkPixbufModule)>; 68 pub type GdkPixbufModulePreparedFunc = 69 Option<unsafe extern "C" fn(*mut GdkPixbuf, *mut GdkPixbufAnimation, gpointer)>; 70 pub type GdkPixbufModuleSizeFunc = Option<unsafe extern "C" fn(*mut c_int, *mut c_int, gpointer)>; 71 pub type GdkPixbufModuleUpdatedFunc = 72 Option<unsafe extern "C" fn(*mut GdkPixbuf, c_int, c_int, c_int, c_int, gpointer)>; 73 pub type GdkPixbufSaveFunc = 74 Option<unsafe extern "C" fn(*const u8, size_t, *mut *mut glib::GError, gpointer) -> gboolean>; 75 76 // Records 77 #[repr(C)] 78 #[derive(Copy, Clone)] 79 pub struct GdkPixbufAnimationClass { 80 pub parent_class: gobject::GObjectClass, 81 pub is_static_image: Option<unsafe extern "C" fn(*mut GdkPixbufAnimation) -> gboolean>, 82 pub get_static_image: Option<unsafe extern "C" fn(*mut GdkPixbufAnimation) -> *mut GdkPixbuf>, 83 pub get_size: Option<unsafe extern "C" fn(*mut GdkPixbufAnimation, *mut c_int, *mut c_int)>, 84 pub get_iter: Option< 85 unsafe extern "C" fn( 86 *mut GdkPixbufAnimation, 87 *const glib::GTimeVal, 88 ) -> *mut GdkPixbufAnimationIter, 89 >, 90 } 91 92 impl ::std::fmt::Debug for GdkPixbufAnimationClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result93 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 94 f.debug_struct(&format!("GdkPixbufAnimationClass @ {:p}", self)) 95 .field("parent_class", &self.parent_class) 96 .field("is_static_image", &self.is_static_image) 97 .field("get_static_image", &self.get_static_image) 98 .field("get_size", &self.get_size) 99 .field("get_iter", &self.get_iter) 100 .finish() 101 } 102 } 103 104 #[repr(C)] 105 #[derive(Copy, Clone)] 106 pub struct GdkPixbufAnimationIterClass { 107 pub parent_class: gobject::GObjectClass, 108 pub get_delay_time: Option<unsafe extern "C" fn(*mut GdkPixbufAnimationIter) -> c_int>, 109 pub get_pixbuf: Option<unsafe extern "C" fn(*mut GdkPixbufAnimationIter) -> *mut GdkPixbuf>, 110 pub on_currently_loading_frame: 111 Option<unsafe extern "C" fn(*mut GdkPixbufAnimationIter) -> gboolean>, 112 pub advance: Option< 113 unsafe extern "C" fn(*mut GdkPixbufAnimationIter, *const glib::GTimeVal) -> gboolean, 114 >, 115 } 116 117 impl ::std::fmt::Debug for GdkPixbufAnimationIterClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result118 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 119 f.debug_struct(&format!("GdkPixbufAnimationIterClass @ {:p}", self)) 120 .field("parent_class", &self.parent_class) 121 .field("get_delay_time", &self.get_delay_time) 122 .field("get_pixbuf", &self.get_pixbuf) 123 .field( 124 "on_currently_loading_frame", 125 &self.on_currently_loading_frame, 126 ) 127 .field("advance", &self.advance) 128 .finish() 129 } 130 } 131 132 #[repr(C)] 133 #[derive(Copy, Clone)] 134 pub struct GdkPixbufFormat { 135 pub name: *mut c_char, 136 pub signature: *mut GdkPixbufModulePattern, 137 pub domain: *mut c_char, 138 pub description: *mut c_char, 139 pub mime_types: *mut *mut c_char, 140 pub extensions: *mut *mut c_char, 141 pub flags: u32, 142 pub disabled: gboolean, 143 pub license: *mut c_char, 144 } 145 146 impl ::std::fmt::Debug for GdkPixbufFormat { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result147 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 148 f.debug_struct(&format!("GdkPixbufFormat @ {:p}", self)) 149 .field("name", &self.name) 150 .field("signature", &self.signature) 151 .field("domain", &self.domain) 152 .field("description", &self.description) 153 .field("mime_types", &self.mime_types) 154 .field("extensions", &self.extensions) 155 .field("flags", &self.flags) 156 .field("disabled", &self.disabled) 157 .field("license", &self.license) 158 .finish() 159 } 160 } 161 162 #[repr(C)] 163 #[derive(Copy, Clone)] 164 pub struct GdkPixbufLoaderClass { 165 pub parent_class: gobject::GObjectClass, 166 pub size_prepared: Option<unsafe extern "C" fn(*mut GdkPixbufLoader, c_int, c_int)>, 167 pub area_prepared: Option<unsafe extern "C" fn(*mut GdkPixbufLoader)>, 168 pub area_updated: 169 Option<unsafe extern "C" fn(*mut GdkPixbufLoader, c_int, c_int, c_int, c_int)>, 170 pub closed: Option<unsafe extern "C" fn(*mut GdkPixbufLoader)>, 171 } 172 173 impl ::std::fmt::Debug for GdkPixbufLoaderClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result174 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 175 f.debug_struct(&format!("GdkPixbufLoaderClass @ {:p}", self)) 176 .field("parent_class", &self.parent_class) 177 .field("size_prepared", &self.size_prepared) 178 .field("area_prepared", &self.area_prepared) 179 .field("area_updated", &self.area_updated) 180 .field("closed", &self.closed) 181 .finish() 182 } 183 } 184 185 #[repr(C)] 186 #[derive(Copy, Clone)] 187 pub struct GdkPixbufModule { 188 pub module_name: *mut c_char, 189 pub module_path: *mut c_char, 190 pub module: gpointer, 191 pub info: *mut GdkPixbufFormat, 192 pub load: Option<unsafe extern "C" fn(*mut FILE, *mut *mut glib::GError) -> *mut GdkPixbuf>, 193 pub load_xpm_data: Option<unsafe extern "C" fn(*mut *const c_char) -> *mut GdkPixbuf>, 194 pub begin_load: Option< 195 unsafe extern "C" fn( 196 GdkPixbufModuleSizeFunc, 197 GdkPixbufModulePreparedFunc, 198 GdkPixbufModuleUpdatedFunc, 199 gpointer, 200 *mut *mut glib::GError, 201 ) -> gpointer, 202 >, 203 pub stop_load: Option<unsafe extern "C" fn(gpointer, *mut *mut glib::GError) -> gboolean>, 204 pub load_increment: Option< 205 unsafe extern "C" fn(gpointer, *const u8, c_uint, *mut *mut glib::GError) -> gboolean, 206 >, 207 pub load_animation: 208 Option<unsafe extern "C" fn(*mut FILE, *mut *mut glib::GError) -> *mut GdkPixbufAnimation>, 209 pub save: Option< 210 unsafe extern "C" fn( 211 *mut FILE, 212 *mut GdkPixbuf, 213 *mut *mut c_char, 214 *mut *mut c_char, 215 *mut *mut glib::GError, 216 ) -> gboolean, 217 >, 218 pub save_to_callback: Option< 219 unsafe extern "C" fn( 220 GdkPixbufSaveFunc, 221 gpointer, 222 *mut GdkPixbuf, 223 *mut *mut c_char, 224 *mut *mut c_char, 225 *mut *mut glib::GError, 226 ) -> gboolean, 227 >, 228 pub is_save_option_supported: Option<unsafe extern "C" fn(*const c_char) -> gboolean>, 229 pub _reserved1: Option<unsafe extern "C" fn()>, 230 pub _reserved2: Option<unsafe extern "C" fn()>, 231 pub _reserved3: Option<unsafe extern "C" fn()>, 232 pub _reserved4: Option<unsafe extern "C" fn()>, 233 } 234 235 impl ::std::fmt::Debug for GdkPixbufModule { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result236 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 237 f.debug_struct(&format!("GdkPixbufModule @ {:p}", self)) 238 .field("module_name", &self.module_name) 239 .field("module_path", &self.module_path) 240 .field("module", &self.module) 241 .field("info", &self.info) 242 .field("load", &self.load) 243 .field("load_xpm_data", &self.load_xpm_data) 244 .field("begin_load", &self.begin_load) 245 .field("stop_load", &self.stop_load) 246 .field("load_increment", &self.load_increment) 247 .field("load_animation", &self.load_animation) 248 .field("save", &self.save) 249 .field("save_to_callback", &self.save_to_callback) 250 .field("is_save_option_supported", &self.is_save_option_supported) 251 .field("_reserved1", &self._reserved1) 252 .field("_reserved2", &self._reserved2) 253 .field("_reserved3", &self._reserved3) 254 .field("_reserved4", &self._reserved4) 255 .finish() 256 } 257 } 258 259 #[repr(C)] 260 #[derive(Copy, Clone)] 261 pub struct GdkPixbufModulePattern { 262 pub prefix: *mut c_char, 263 pub mask: *mut c_char, 264 pub relevance: c_int, 265 } 266 267 impl ::std::fmt::Debug for GdkPixbufModulePattern { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result268 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 269 f.debug_struct(&format!("GdkPixbufModulePattern @ {:p}", self)) 270 .field("prefix", &self.prefix) 271 .field("mask", &self.mask) 272 .field("relevance", &self.relevance) 273 .finish() 274 } 275 } 276 277 #[repr(C)] 278 pub struct _GdkPixbufSimpleAnimClass(c_void); 279 280 pub type GdkPixbufSimpleAnimClass = *mut _GdkPixbufSimpleAnimClass; 281 282 // Classes 283 #[repr(C)] 284 pub struct GdkPixbuf(c_void); 285 286 impl ::std::fmt::Debug for GdkPixbuf { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result287 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 288 f.debug_struct(&format!("GdkPixbuf @ {:p}", self)).finish() 289 } 290 } 291 292 #[repr(C)] 293 #[derive(Copy, Clone)] 294 pub struct GdkPixbufAnimation { 295 pub parent_instance: gobject::GObject, 296 } 297 298 impl ::std::fmt::Debug for GdkPixbufAnimation { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result299 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 300 f.debug_struct(&format!("GdkPixbufAnimation @ {:p}", self)) 301 .field("parent_instance", &self.parent_instance) 302 .finish() 303 } 304 } 305 306 #[repr(C)] 307 #[derive(Copy, Clone)] 308 pub struct GdkPixbufAnimationIter { 309 pub parent_instance: gobject::GObject, 310 } 311 312 impl ::std::fmt::Debug for GdkPixbufAnimationIter { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result313 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 314 f.debug_struct(&format!("GdkPixbufAnimationIter @ {:p}", self)) 315 .field("parent_instance", &self.parent_instance) 316 .finish() 317 } 318 } 319 320 #[repr(C)] 321 #[derive(Copy, Clone)] 322 pub struct GdkPixbufLoader { 323 pub parent_instance: gobject::GObject, 324 pub priv_: gpointer, 325 } 326 327 impl ::std::fmt::Debug for GdkPixbufLoader { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result328 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 329 f.debug_struct(&format!("GdkPixbufLoader @ {:p}", self)) 330 .field("parent_instance", &self.parent_instance) 331 .finish() 332 } 333 } 334 335 #[repr(C)] 336 pub struct GdkPixbufNonAnim(c_void); 337 338 impl ::std::fmt::Debug for GdkPixbufNonAnim { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result339 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 340 f.debug_struct(&format!("GdkPixbufNonAnim @ {:p}", self)) 341 .finish() 342 } 343 } 344 345 #[repr(C)] 346 pub struct GdkPixbufSimpleAnim(c_void); 347 348 impl ::std::fmt::Debug for GdkPixbufSimpleAnim { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result349 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 350 f.debug_struct(&format!("GdkPixbufSimpleAnim @ {:p}", self)) 351 .finish() 352 } 353 } 354 355 #[repr(C)] 356 pub struct GdkPixbufSimpleAnimIter(c_void); 357 358 impl ::std::fmt::Debug for GdkPixbufSimpleAnimIter { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result359 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 360 f.debug_struct(&format!("GdkPixbufSimpleAnimIter @ {:p}", self)) 361 .finish() 362 } 363 } 364 365 #[link(name = "gdk_pixbuf-2.0")] 366 extern "C" { 367 368 //========================================================================= 369 // GdkColorspace 370 //========================================================================= gdk_colorspace_get_type() -> GType371 pub fn gdk_colorspace_get_type() -> GType; 372 373 //========================================================================= 374 // GdkInterpType 375 //========================================================================= gdk_interp_type_get_type() -> GType376 pub fn gdk_interp_type_get_type() -> GType; 377 378 //========================================================================= 379 // GdkPixbufAlphaMode 380 //========================================================================= gdk_pixbuf_alpha_mode_get_type() -> GType381 pub fn gdk_pixbuf_alpha_mode_get_type() -> GType; 382 383 //========================================================================= 384 // GdkPixbufError 385 //========================================================================= gdk_pixbuf_error_get_type() -> GType386 pub fn gdk_pixbuf_error_get_type() -> GType; gdk_pixbuf_error_quark() -> glib::GQuark387 pub fn gdk_pixbuf_error_quark() -> glib::GQuark; 388 389 //========================================================================= 390 // GdkPixbufRotation 391 //========================================================================= gdk_pixbuf_rotation_get_type() -> GType392 pub fn gdk_pixbuf_rotation_get_type() -> GType; 393 394 //========================================================================= 395 // GdkPixbufFormat 396 //========================================================================= gdk_pixbuf_format_get_type() -> GType397 pub fn gdk_pixbuf_format_get_type() -> GType; gdk_pixbuf_format_copy(format: *const GdkPixbufFormat) -> *mut GdkPixbufFormat398 pub fn gdk_pixbuf_format_copy(format: *const GdkPixbufFormat) -> *mut GdkPixbufFormat; gdk_pixbuf_format_free(format: *mut GdkPixbufFormat)399 pub fn gdk_pixbuf_format_free(format: *mut GdkPixbufFormat); gdk_pixbuf_format_get_description(format: *mut GdkPixbufFormat) -> *mut c_char400 pub fn gdk_pixbuf_format_get_description(format: *mut GdkPixbufFormat) -> *mut c_char; gdk_pixbuf_format_get_extensions(format: *mut GdkPixbufFormat) -> *mut *mut c_char401 pub fn gdk_pixbuf_format_get_extensions(format: *mut GdkPixbufFormat) -> *mut *mut c_char; gdk_pixbuf_format_get_license(format: *mut GdkPixbufFormat) -> *mut c_char402 pub fn gdk_pixbuf_format_get_license(format: *mut GdkPixbufFormat) -> *mut c_char; gdk_pixbuf_format_get_mime_types(format: *mut GdkPixbufFormat) -> *mut *mut c_char403 pub fn gdk_pixbuf_format_get_mime_types(format: *mut GdkPixbufFormat) -> *mut *mut c_char; gdk_pixbuf_format_get_name(format: *mut GdkPixbufFormat) -> *mut c_char404 pub fn gdk_pixbuf_format_get_name(format: *mut GdkPixbufFormat) -> *mut c_char; gdk_pixbuf_format_is_disabled(format: *mut GdkPixbufFormat) -> gboolean405 pub fn gdk_pixbuf_format_is_disabled(format: *mut GdkPixbufFormat) -> gboolean; 406 #[cfg(any(feature = "v2_36", feature = "dox"))] 407 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_36")))] gdk_pixbuf_format_is_save_option_supported( format: *mut GdkPixbufFormat, option_key: *const c_char, ) -> gboolean408 pub fn gdk_pixbuf_format_is_save_option_supported( 409 format: *mut GdkPixbufFormat, 410 option_key: *const c_char, 411 ) -> gboolean; gdk_pixbuf_format_is_scalable(format: *mut GdkPixbufFormat) -> gboolean412 pub fn gdk_pixbuf_format_is_scalable(format: *mut GdkPixbufFormat) -> gboolean; gdk_pixbuf_format_is_writable(format: *mut GdkPixbufFormat) -> gboolean413 pub fn gdk_pixbuf_format_is_writable(format: *mut GdkPixbufFormat) -> gboolean; gdk_pixbuf_format_set_disabled(format: *mut GdkPixbufFormat, disabled: gboolean)414 pub fn gdk_pixbuf_format_set_disabled(format: *mut GdkPixbufFormat, disabled: gboolean); 415 416 //========================================================================= 417 // GdkPixbuf 418 //========================================================================= gdk_pixbuf_get_type() -> GType419 pub fn gdk_pixbuf_get_type() -> GType; gdk_pixbuf_new( colorspace: GdkColorspace, has_alpha: gboolean, bits_per_sample: c_int, width: c_int, height: c_int, ) -> *mut GdkPixbuf420 pub fn gdk_pixbuf_new( 421 colorspace: GdkColorspace, 422 has_alpha: gboolean, 423 bits_per_sample: c_int, 424 width: c_int, 425 height: c_int, 426 ) -> *mut GdkPixbuf; gdk_pixbuf_new_from_bytes( data: *mut glib::GBytes, colorspace: GdkColorspace, has_alpha: gboolean, bits_per_sample: c_int, width: c_int, height: c_int, rowstride: c_int, ) -> *mut GdkPixbuf427 pub fn gdk_pixbuf_new_from_bytes( 428 data: *mut glib::GBytes, 429 colorspace: GdkColorspace, 430 has_alpha: gboolean, 431 bits_per_sample: c_int, 432 width: c_int, 433 height: c_int, 434 rowstride: c_int, 435 ) -> *mut GdkPixbuf; gdk_pixbuf_new_from_data( data: *const u8, colorspace: GdkColorspace, has_alpha: gboolean, bits_per_sample: c_int, width: c_int, height: c_int, rowstride: c_int, destroy_fn: GdkPixbufDestroyNotify, destroy_fn_data: gpointer, ) -> *mut GdkPixbuf436 pub fn gdk_pixbuf_new_from_data( 437 data: *const u8, 438 colorspace: GdkColorspace, 439 has_alpha: gboolean, 440 bits_per_sample: c_int, 441 width: c_int, 442 height: c_int, 443 rowstride: c_int, 444 destroy_fn: GdkPixbufDestroyNotify, 445 destroy_fn_data: gpointer, 446 ) -> *mut GdkPixbuf; 447 #[cfg(any(windows, feature = "dox"))] 448 #[cfg_attr(feature = "dox", doc(cfg(windows)))] gdk_pixbuf_new_from_file_utf8( filename: *const c_char, error: *mut *mut glib::GError, ) -> *mut GdkPixbuf449 pub fn gdk_pixbuf_new_from_file_utf8( 450 filename: *const c_char, 451 error: *mut *mut glib::GError, 452 ) -> *mut GdkPixbuf; gdk_pixbuf_new_from_file( filename: *const c_char, error: *mut *mut glib::GError, ) -> *mut GdkPixbuf453 pub fn gdk_pixbuf_new_from_file( 454 filename: *const c_char, 455 error: *mut *mut glib::GError, 456 ) -> *mut GdkPixbuf; 457 #[cfg(any(windows, feature = "dox"))] 458 #[cfg_attr(feature = "dox", doc(cfg(windows)))] gdk_pixbuf_new_from_file_at_scale_utf8( filename: *const c_char, width: c_int, height: c_int, preserve_aspect_ratio: gboolean, error: *mut *mut glib::GError, ) -> *mut GdkPixbuf459 pub fn gdk_pixbuf_new_from_file_at_scale_utf8( 460 filename: *const c_char, 461 width: c_int, 462 height: c_int, 463 preserve_aspect_ratio: gboolean, 464 error: *mut *mut glib::GError, 465 ) -> *mut GdkPixbuf; gdk_pixbuf_new_from_file_at_scale( filename: *const c_char, width: c_int, height: c_int, preserve_aspect_ratio: gboolean, error: *mut *mut glib::GError, ) -> *mut GdkPixbuf466 pub fn gdk_pixbuf_new_from_file_at_scale( 467 filename: *const c_char, 468 width: c_int, 469 height: c_int, 470 preserve_aspect_ratio: gboolean, 471 error: *mut *mut glib::GError, 472 ) -> *mut GdkPixbuf; 473 #[cfg(any(windows, feature = "dox"))] 474 #[cfg_attr(feature = "dox", doc(cfg(windows)))] gdk_pixbuf_new_from_file_at_size_utf8( filename: *const c_char, width: c_int, height: c_int, error: *mut *mut glib::GError, ) -> *mut GdkPixbuf475 pub fn gdk_pixbuf_new_from_file_at_size_utf8( 476 filename: *const c_char, 477 width: c_int, 478 height: c_int, 479 error: *mut *mut glib::GError, 480 ) -> *mut GdkPixbuf; gdk_pixbuf_new_from_file_at_size( filename: *const c_char, width: c_int, height: c_int, error: *mut *mut glib::GError, ) -> *mut GdkPixbuf481 pub fn gdk_pixbuf_new_from_file_at_size( 482 filename: *const c_char, 483 width: c_int, 484 height: c_int, 485 error: *mut *mut glib::GError, 486 ) -> *mut GdkPixbuf; gdk_pixbuf_new_from_inline( data_length: c_int, data: *const u8, copy_pixels: gboolean, error: *mut *mut glib::GError, ) -> *mut GdkPixbuf487 pub fn gdk_pixbuf_new_from_inline( 488 data_length: c_int, 489 data: *const u8, 490 copy_pixels: gboolean, 491 error: *mut *mut glib::GError, 492 ) -> *mut GdkPixbuf; gdk_pixbuf_new_from_resource( resource_path: *const c_char, error: *mut *mut glib::GError, ) -> *mut GdkPixbuf493 pub fn gdk_pixbuf_new_from_resource( 494 resource_path: *const c_char, 495 error: *mut *mut glib::GError, 496 ) -> *mut GdkPixbuf; gdk_pixbuf_new_from_resource_at_scale( resource_path: *const c_char, width: c_int, height: c_int, preserve_aspect_ratio: gboolean, error: *mut *mut glib::GError, ) -> *mut GdkPixbuf497 pub fn gdk_pixbuf_new_from_resource_at_scale( 498 resource_path: *const c_char, 499 width: c_int, 500 height: c_int, 501 preserve_aspect_ratio: gboolean, 502 error: *mut *mut glib::GError, 503 ) -> *mut GdkPixbuf; gdk_pixbuf_new_from_stream( stream: *mut gio::GInputStream, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError, ) -> *mut GdkPixbuf504 pub fn gdk_pixbuf_new_from_stream( 505 stream: *mut gio::GInputStream, 506 cancellable: *mut gio::GCancellable, 507 error: *mut *mut glib::GError, 508 ) -> *mut GdkPixbuf; gdk_pixbuf_new_from_stream_at_scale( stream: *mut gio::GInputStream, width: c_int, height: c_int, preserve_aspect_ratio: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError, ) -> *mut GdkPixbuf509 pub fn gdk_pixbuf_new_from_stream_at_scale( 510 stream: *mut gio::GInputStream, 511 width: c_int, 512 height: c_int, 513 preserve_aspect_ratio: gboolean, 514 cancellable: *mut gio::GCancellable, 515 error: *mut *mut glib::GError, 516 ) -> *mut GdkPixbuf; gdk_pixbuf_new_from_stream_finish( async_result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> *mut GdkPixbuf517 pub fn gdk_pixbuf_new_from_stream_finish( 518 async_result: *mut gio::GAsyncResult, 519 error: *mut *mut glib::GError, 520 ) -> *mut GdkPixbuf; gdk_pixbuf_new_from_xpm_data(data: *mut *const c_char) -> *mut GdkPixbuf521 pub fn gdk_pixbuf_new_from_xpm_data(data: *mut *const c_char) -> *mut GdkPixbuf; 522 #[cfg(any(feature = "v2_36_8", feature = "dox"))] 523 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_36_8")))] gdk_pixbuf_calculate_rowstride( colorspace: GdkColorspace, has_alpha: gboolean, bits_per_sample: c_int, width: c_int, height: c_int, ) -> c_int524 pub fn gdk_pixbuf_calculate_rowstride( 525 colorspace: GdkColorspace, 526 has_alpha: gboolean, 527 bits_per_sample: c_int, 528 width: c_int, 529 height: c_int, 530 ) -> c_int; gdk_pixbuf_get_file_info( filename: *const c_char, width: *mut c_int, height: *mut c_int, ) -> *mut GdkPixbufFormat531 pub fn gdk_pixbuf_get_file_info( 532 filename: *const c_char, 533 width: *mut c_int, 534 height: *mut c_int, 535 ) -> *mut GdkPixbufFormat; gdk_pixbuf_get_file_info_async( filename: *const c_char, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer, )536 pub fn gdk_pixbuf_get_file_info_async( 537 filename: *const c_char, 538 cancellable: *mut gio::GCancellable, 539 callback: gio::GAsyncReadyCallback, 540 user_data: gpointer, 541 ); gdk_pixbuf_get_file_info_finish( async_result: *mut gio::GAsyncResult, width: *mut c_int, height: *mut c_int, error: *mut *mut glib::GError, ) -> *mut GdkPixbufFormat542 pub fn gdk_pixbuf_get_file_info_finish( 543 async_result: *mut gio::GAsyncResult, 544 width: *mut c_int, 545 height: *mut c_int, 546 error: *mut *mut glib::GError, 547 ) -> *mut GdkPixbufFormat; gdk_pixbuf_get_formats() -> *mut glib::GSList548 pub fn gdk_pixbuf_get_formats() -> *mut glib::GSList; 549 #[cfg(any(feature = "v2_40", feature = "dox"))] 550 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_40")))] gdk_pixbuf_init_modules(path: *const c_char, error: *mut *mut glib::GError) -> gboolean551 pub fn gdk_pixbuf_init_modules(path: *const c_char, error: *mut *mut glib::GError) -> gboolean; gdk_pixbuf_new_from_stream_async( stream: *mut gio::GInputStream, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer, )552 pub fn gdk_pixbuf_new_from_stream_async( 553 stream: *mut gio::GInputStream, 554 cancellable: *mut gio::GCancellable, 555 callback: gio::GAsyncReadyCallback, 556 user_data: gpointer, 557 ); gdk_pixbuf_new_from_stream_at_scale_async( stream: *mut gio::GInputStream, width: c_int, height: c_int, preserve_aspect_ratio: gboolean, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer, )558 pub fn gdk_pixbuf_new_from_stream_at_scale_async( 559 stream: *mut gio::GInputStream, 560 width: c_int, 561 height: c_int, 562 preserve_aspect_ratio: gboolean, 563 cancellable: *mut gio::GCancellable, 564 callback: gio::GAsyncReadyCallback, 565 user_data: gpointer, 566 ); gdk_pixbuf_save_to_stream_finish( async_result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> gboolean567 pub fn gdk_pixbuf_save_to_stream_finish( 568 async_result: *mut gio::GAsyncResult, 569 error: *mut *mut glib::GError, 570 ) -> gboolean; gdk_pixbuf_add_alpha( pixbuf: *const GdkPixbuf, substitute_color: gboolean, r: c_uchar, g: c_uchar, b: c_uchar, ) -> *mut GdkPixbuf571 pub fn gdk_pixbuf_add_alpha( 572 pixbuf: *const GdkPixbuf, 573 substitute_color: gboolean, 574 r: c_uchar, 575 g: c_uchar, 576 b: c_uchar, 577 ) -> *mut GdkPixbuf; gdk_pixbuf_apply_embedded_orientation(src: *mut GdkPixbuf) -> *mut GdkPixbuf578 pub fn gdk_pixbuf_apply_embedded_orientation(src: *mut GdkPixbuf) -> *mut GdkPixbuf; gdk_pixbuf_composite( src: *const GdkPixbuf, dest: *mut GdkPixbuf, dest_x: c_int, dest_y: c_int, dest_width: c_int, dest_height: c_int, offset_x: c_double, offset_y: c_double, scale_x: c_double, scale_y: c_double, interp_type: GdkInterpType, overall_alpha: c_int, )579 pub fn gdk_pixbuf_composite( 580 src: *const GdkPixbuf, 581 dest: *mut GdkPixbuf, 582 dest_x: c_int, 583 dest_y: c_int, 584 dest_width: c_int, 585 dest_height: c_int, 586 offset_x: c_double, 587 offset_y: c_double, 588 scale_x: c_double, 589 scale_y: c_double, 590 interp_type: GdkInterpType, 591 overall_alpha: c_int, 592 ); gdk_pixbuf_composite_color( src: *const GdkPixbuf, dest: *mut GdkPixbuf, dest_x: c_int, dest_y: c_int, dest_width: c_int, dest_height: c_int, offset_x: c_double, offset_y: c_double, scale_x: c_double, scale_y: c_double, interp_type: GdkInterpType, overall_alpha: c_int, check_x: c_int, check_y: c_int, check_size: c_int, color1: u32, color2: u32, )593 pub fn gdk_pixbuf_composite_color( 594 src: *const GdkPixbuf, 595 dest: *mut GdkPixbuf, 596 dest_x: c_int, 597 dest_y: c_int, 598 dest_width: c_int, 599 dest_height: c_int, 600 offset_x: c_double, 601 offset_y: c_double, 602 scale_x: c_double, 603 scale_y: c_double, 604 interp_type: GdkInterpType, 605 overall_alpha: c_int, 606 check_x: c_int, 607 check_y: c_int, 608 check_size: c_int, 609 color1: u32, 610 color2: u32, 611 ); gdk_pixbuf_composite_color_simple( src: *const GdkPixbuf, dest_width: c_int, dest_height: c_int, interp_type: GdkInterpType, overall_alpha: c_int, check_size: c_int, color1: u32, color2: u32, ) -> *mut GdkPixbuf612 pub fn gdk_pixbuf_composite_color_simple( 613 src: *const GdkPixbuf, 614 dest_width: c_int, 615 dest_height: c_int, 616 interp_type: GdkInterpType, 617 overall_alpha: c_int, 618 check_size: c_int, 619 color1: u32, 620 color2: u32, 621 ) -> *mut GdkPixbuf; gdk_pixbuf_copy(pixbuf: *const GdkPixbuf) -> *mut GdkPixbuf622 pub fn gdk_pixbuf_copy(pixbuf: *const GdkPixbuf) -> *mut GdkPixbuf; gdk_pixbuf_copy_area( src_pixbuf: *const GdkPixbuf, src_x: c_int, src_y: c_int, width: c_int, height: c_int, dest_pixbuf: *mut GdkPixbuf, dest_x: c_int, dest_y: c_int, )623 pub fn gdk_pixbuf_copy_area( 624 src_pixbuf: *const GdkPixbuf, 625 src_x: c_int, 626 src_y: c_int, 627 width: c_int, 628 height: c_int, 629 dest_pixbuf: *mut GdkPixbuf, 630 dest_x: c_int, 631 dest_y: c_int, 632 ); 633 #[cfg(any(feature = "v2_36", feature = "dox"))] 634 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_36")))] gdk_pixbuf_copy_options( src_pixbuf: *mut GdkPixbuf, dest_pixbuf: *mut GdkPixbuf, ) -> gboolean635 pub fn gdk_pixbuf_copy_options( 636 src_pixbuf: *mut GdkPixbuf, 637 dest_pixbuf: *mut GdkPixbuf, 638 ) -> gboolean; gdk_pixbuf_fill(pixbuf: *mut GdkPixbuf, pixel: u32)639 pub fn gdk_pixbuf_fill(pixbuf: *mut GdkPixbuf, pixel: u32); gdk_pixbuf_flip(src: *const GdkPixbuf, horizontal: gboolean) -> *mut GdkPixbuf640 pub fn gdk_pixbuf_flip(src: *const GdkPixbuf, horizontal: gboolean) -> *mut GdkPixbuf; gdk_pixbuf_get_bits_per_sample(pixbuf: *const GdkPixbuf) -> c_int641 pub fn gdk_pixbuf_get_bits_per_sample(pixbuf: *const GdkPixbuf) -> c_int; gdk_pixbuf_get_byte_length(pixbuf: *const GdkPixbuf) -> size_t642 pub fn gdk_pixbuf_get_byte_length(pixbuf: *const GdkPixbuf) -> size_t; gdk_pixbuf_get_colorspace(pixbuf: *const GdkPixbuf) -> GdkColorspace643 pub fn gdk_pixbuf_get_colorspace(pixbuf: *const GdkPixbuf) -> GdkColorspace; gdk_pixbuf_get_has_alpha(pixbuf: *const GdkPixbuf) -> gboolean644 pub fn gdk_pixbuf_get_has_alpha(pixbuf: *const GdkPixbuf) -> gboolean; gdk_pixbuf_get_height(pixbuf: *const GdkPixbuf) -> c_int645 pub fn gdk_pixbuf_get_height(pixbuf: *const GdkPixbuf) -> c_int; gdk_pixbuf_get_n_channels(pixbuf: *const GdkPixbuf) -> c_int646 pub fn gdk_pixbuf_get_n_channels(pixbuf: *const GdkPixbuf) -> c_int; gdk_pixbuf_get_option(pixbuf: *mut GdkPixbuf, key: *const c_char) -> *const c_char647 pub fn gdk_pixbuf_get_option(pixbuf: *mut GdkPixbuf, key: *const c_char) -> *const c_char; gdk_pixbuf_get_options(pixbuf: *mut GdkPixbuf) -> *mut glib::GHashTable648 pub fn gdk_pixbuf_get_options(pixbuf: *mut GdkPixbuf) -> *mut glib::GHashTable; gdk_pixbuf_get_pixels(pixbuf: *const GdkPixbuf) -> *mut u8649 pub fn gdk_pixbuf_get_pixels(pixbuf: *const GdkPixbuf) -> *mut u8; gdk_pixbuf_get_pixels_with_length( pixbuf: *const GdkPixbuf, length: *mut c_uint, ) -> *mut u8650 pub fn gdk_pixbuf_get_pixels_with_length( 651 pixbuf: *const GdkPixbuf, 652 length: *mut c_uint, 653 ) -> *mut u8; gdk_pixbuf_get_rowstride(pixbuf: *const GdkPixbuf) -> c_int654 pub fn gdk_pixbuf_get_rowstride(pixbuf: *const GdkPixbuf) -> c_int; gdk_pixbuf_get_width(pixbuf: *const GdkPixbuf) -> c_int655 pub fn gdk_pixbuf_get_width(pixbuf: *const GdkPixbuf) -> c_int; gdk_pixbuf_new_subpixbuf( src_pixbuf: *mut GdkPixbuf, src_x: c_int, src_y: c_int, width: c_int, height: c_int, ) -> *mut GdkPixbuf656 pub fn gdk_pixbuf_new_subpixbuf( 657 src_pixbuf: *mut GdkPixbuf, 658 src_x: c_int, 659 src_y: c_int, 660 width: c_int, 661 height: c_int, 662 ) -> *mut GdkPixbuf; gdk_pixbuf_read_pixel_bytes(pixbuf: *const GdkPixbuf) -> *mut glib::GBytes663 pub fn gdk_pixbuf_read_pixel_bytes(pixbuf: *const GdkPixbuf) -> *mut glib::GBytes; gdk_pixbuf_read_pixels(pixbuf: *const GdkPixbuf) -> *const u8664 pub fn gdk_pixbuf_read_pixels(pixbuf: *const GdkPixbuf) -> *const u8; gdk_pixbuf_ref(pixbuf: *mut GdkPixbuf) -> *mut GdkPixbuf665 pub fn gdk_pixbuf_ref(pixbuf: *mut GdkPixbuf) -> *mut GdkPixbuf; 666 #[cfg(any(feature = "v2_36", feature = "dox"))] 667 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_36")))] gdk_pixbuf_remove_option(pixbuf: *mut GdkPixbuf, key: *const c_char) -> gboolean668 pub fn gdk_pixbuf_remove_option(pixbuf: *mut GdkPixbuf, key: *const c_char) -> gboolean; gdk_pixbuf_rotate_simple( src: *const GdkPixbuf, angle: GdkPixbufRotation, ) -> *mut GdkPixbuf669 pub fn gdk_pixbuf_rotate_simple( 670 src: *const GdkPixbuf, 671 angle: GdkPixbufRotation, 672 ) -> *mut GdkPixbuf; gdk_pixbuf_saturate_and_pixelate( src: *const GdkPixbuf, dest: *mut GdkPixbuf, saturation: c_float, pixelate: gboolean, )673 pub fn gdk_pixbuf_saturate_and_pixelate( 674 src: *const GdkPixbuf, 675 dest: *mut GdkPixbuf, 676 saturation: c_float, 677 pixelate: gboolean, 678 ); 679 #[cfg(any(windows, feature = "dox"))] 680 #[cfg_attr(feature = "dox", doc(cfg(windows)))] gdk_pixbuf_save_utf8( pixbuf: *mut GdkPixbuf, filename: *const c_char, type_: *const c_char, error: *mut *mut glib::GError, ... ) -> gboolean681 pub fn gdk_pixbuf_save_utf8( 682 pixbuf: *mut GdkPixbuf, 683 filename: *const c_char, 684 type_: *const c_char, 685 error: *mut *mut glib::GError, 686 ... 687 ) -> gboolean; gdk_pixbuf_save( pixbuf: *mut GdkPixbuf, filename: *const c_char, type_: *const c_char, error: *mut *mut glib::GError, ... ) -> gboolean688 pub fn gdk_pixbuf_save( 689 pixbuf: *mut GdkPixbuf, 690 filename: *const c_char, 691 type_: *const c_char, 692 error: *mut *mut glib::GError, 693 ... 694 ) -> gboolean; gdk_pixbuf_save_to_buffer( pixbuf: *mut GdkPixbuf, buffer: *mut *mut u8, buffer_size: *mut size_t, type_: *const c_char, error: *mut *mut glib::GError, ... ) -> gboolean695 pub fn gdk_pixbuf_save_to_buffer( 696 pixbuf: *mut GdkPixbuf, 697 buffer: *mut *mut u8, 698 buffer_size: *mut size_t, 699 type_: *const c_char, 700 error: *mut *mut glib::GError, 701 ... 702 ) -> gboolean; gdk_pixbuf_save_to_bufferv( pixbuf: *mut GdkPixbuf, buffer: *mut *mut u8, buffer_size: *mut size_t, type_: *const c_char, option_keys: *mut *mut c_char, option_values: *mut *mut c_char, error: *mut *mut glib::GError, ) -> gboolean703 pub fn gdk_pixbuf_save_to_bufferv( 704 pixbuf: *mut GdkPixbuf, 705 buffer: *mut *mut u8, 706 buffer_size: *mut size_t, 707 type_: *const c_char, 708 option_keys: *mut *mut c_char, 709 option_values: *mut *mut c_char, 710 error: *mut *mut glib::GError, 711 ) -> gboolean; gdk_pixbuf_save_to_callback( pixbuf: *mut GdkPixbuf, save_func: GdkPixbufSaveFunc, user_data: gpointer, type_: *const c_char, error: *mut *mut glib::GError, ... ) -> gboolean712 pub fn gdk_pixbuf_save_to_callback( 713 pixbuf: *mut GdkPixbuf, 714 save_func: GdkPixbufSaveFunc, 715 user_data: gpointer, 716 type_: *const c_char, 717 error: *mut *mut glib::GError, 718 ... 719 ) -> gboolean; gdk_pixbuf_save_to_callbackv( pixbuf: *mut GdkPixbuf, save_func: GdkPixbufSaveFunc, user_data: gpointer, type_: *const c_char, option_keys: *mut *mut c_char, option_values: *mut *mut c_char, error: *mut *mut glib::GError, ) -> gboolean720 pub fn gdk_pixbuf_save_to_callbackv( 721 pixbuf: *mut GdkPixbuf, 722 save_func: GdkPixbufSaveFunc, 723 user_data: gpointer, 724 type_: *const c_char, 725 option_keys: *mut *mut c_char, 726 option_values: *mut *mut c_char, 727 error: *mut *mut glib::GError, 728 ) -> gboolean; gdk_pixbuf_save_to_stream( pixbuf: *mut GdkPixbuf, stream: *mut gio::GOutputStream, type_: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError, ... ) -> gboolean729 pub fn gdk_pixbuf_save_to_stream( 730 pixbuf: *mut GdkPixbuf, 731 stream: *mut gio::GOutputStream, 732 type_: *const c_char, 733 cancellable: *mut gio::GCancellable, 734 error: *mut *mut glib::GError, 735 ... 736 ) -> gboolean; gdk_pixbuf_save_to_stream_async( pixbuf: *mut GdkPixbuf, stream: *mut gio::GOutputStream, type_: *const c_char, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer, ... )737 pub fn gdk_pixbuf_save_to_stream_async( 738 pixbuf: *mut GdkPixbuf, 739 stream: *mut gio::GOutputStream, 740 type_: *const c_char, 741 cancellable: *mut gio::GCancellable, 742 callback: gio::GAsyncReadyCallback, 743 user_data: gpointer, 744 ... 745 ); 746 #[cfg(any(feature = "v2_36", feature = "dox"))] 747 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_36")))] gdk_pixbuf_save_to_streamv( pixbuf: *mut GdkPixbuf, stream: *mut gio::GOutputStream, type_: *const c_char, option_keys: *mut *mut c_char, option_values: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError, ) -> gboolean748 pub fn gdk_pixbuf_save_to_streamv( 749 pixbuf: *mut GdkPixbuf, 750 stream: *mut gio::GOutputStream, 751 type_: *const c_char, 752 option_keys: *mut *mut c_char, 753 option_values: *mut *mut c_char, 754 cancellable: *mut gio::GCancellable, 755 error: *mut *mut glib::GError, 756 ) -> gboolean; 757 #[cfg(any(feature = "v2_36", feature = "dox"))] 758 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_36")))] gdk_pixbuf_save_to_streamv_async( pixbuf: *mut GdkPixbuf, stream: *mut gio::GOutputStream, type_: *const c_char, option_keys: *mut *mut c_char, option_values: *mut *mut c_char, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer, )759 pub fn gdk_pixbuf_save_to_streamv_async( 760 pixbuf: *mut GdkPixbuf, 761 stream: *mut gio::GOutputStream, 762 type_: *const c_char, 763 option_keys: *mut *mut c_char, 764 option_values: *mut *mut c_char, 765 cancellable: *mut gio::GCancellable, 766 callback: gio::GAsyncReadyCallback, 767 user_data: gpointer, 768 ); 769 #[cfg(any(windows, feature = "dox"))] 770 #[cfg_attr(feature = "dox", doc(cfg(windows)))] gdk_pixbuf_savev_utf8( pixbuf: *mut GdkPixbuf, filename: *const c_char, type_: *const c_char, option_keys: *mut *mut c_char, option_values: *mut *mut c_char, error: *mut *mut glib::GError, ) -> gboolean771 pub fn gdk_pixbuf_savev_utf8( 772 pixbuf: *mut GdkPixbuf, 773 filename: *const c_char, 774 type_: *const c_char, 775 option_keys: *mut *mut c_char, 776 option_values: *mut *mut c_char, 777 error: *mut *mut glib::GError, 778 ) -> gboolean; gdk_pixbuf_savev( pixbuf: *mut GdkPixbuf, filename: *const c_char, type_: *const c_char, option_keys: *mut *mut c_char, option_values: *mut *mut c_char, error: *mut *mut glib::GError, ) -> gboolean779 pub fn gdk_pixbuf_savev( 780 pixbuf: *mut GdkPixbuf, 781 filename: *const c_char, 782 type_: *const c_char, 783 option_keys: *mut *mut c_char, 784 option_values: *mut *mut c_char, 785 error: *mut *mut glib::GError, 786 ) -> gboolean; gdk_pixbuf_scale( src: *const GdkPixbuf, dest: *mut GdkPixbuf, dest_x: c_int, dest_y: c_int, dest_width: c_int, dest_height: c_int, offset_x: c_double, offset_y: c_double, scale_x: c_double, scale_y: c_double, interp_type: GdkInterpType, )787 pub fn gdk_pixbuf_scale( 788 src: *const GdkPixbuf, 789 dest: *mut GdkPixbuf, 790 dest_x: c_int, 791 dest_y: c_int, 792 dest_width: c_int, 793 dest_height: c_int, 794 offset_x: c_double, 795 offset_y: c_double, 796 scale_x: c_double, 797 scale_y: c_double, 798 interp_type: GdkInterpType, 799 ); gdk_pixbuf_scale_simple( src: *const GdkPixbuf, dest_width: c_int, dest_height: c_int, interp_type: GdkInterpType, ) -> *mut GdkPixbuf800 pub fn gdk_pixbuf_scale_simple( 801 src: *const GdkPixbuf, 802 dest_width: c_int, 803 dest_height: c_int, 804 interp_type: GdkInterpType, 805 ) -> *mut GdkPixbuf; gdk_pixbuf_set_option( pixbuf: *mut GdkPixbuf, key: *const c_char, value: *const c_char, ) -> gboolean806 pub fn gdk_pixbuf_set_option( 807 pixbuf: *mut GdkPixbuf, 808 key: *const c_char, 809 value: *const c_char, 810 ) -> gboolean; gdk_pixbuf_unref(pixbuf: *mut GdkPixbuf)811 pub fn gdk_pixbuf_unref(pixbuf: *mut GdkPixbuf); 812 813 //========================================================================= 814 // GdkPixbufAnimation 815 //========================================================================= gdk_pixbuf_animation_get_type() -> GType816 pub fn gdk_pixbuf_animation_get_type() -> GType; 817 #[cfg(any(windows, feature = "dox"))] 818 #[cfg_attr(feature = "dox", doc(cfg(windows)))] gdk_pixbuf_animation_new_from_file_utf8( filename: *const c_char, error: *mut *mut glib::GError, ) -> *mut GdkPixbufAnimation819 pub fn gdk_pixbuf_animation_new_from_file_utf8( 820 filename: *const c_char, 821 error: *mut *mut glib::GError, 822 ) -> *mut GdkPixbufAnimation; gdk_pixbuf_animation_new_from_file( filename: *const c_char, error: *mut *mut glib::GError, ) -> *mut GdkPixbufAnimation823 pub fn gdk_pixbuf_animation_new_from_file( 824 filename: *const c_char, 825 error: *mut *mut glib::GError, 826 ) -> *mut GdkPixbufAnimation; gdk_pixbuf_animation_new_from_resource( resource_path: *const c_char, error: *mut *mut glib::GError, ) -> *mut GdkPixbufAnimation827 pub fn gdk_pixbuf_animation_new_from_resource( 828 resource_path: *const c_char, 829 error: *mut *mut glib::GError, 830 ) -> *mut GdkPixbufAnimation; gdk_pixbuf_animation_new_from_stream( stream: *mut gio::GInputStream, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError, ) -> *mut GdkPixbufAnimation831 pub fn gdk_pixbuf_animation_new_from_stream( 832 stream: *mut gio::GInputStream, 833 cancellable: *mut gio::GCancellable, 834 error: *mut *mut glib::GError, 835 ) -> *mut GdkPixbufAnimation; gdk_pixbuf_animation_new_from_stream_finish( async_result: *mut gio::GAsyncResult, error: *mut *mut glib::GError, ) -> *mut GdkPixbufAnimation836 pub fn gdk_pixbuf_animation_new_from_stream_finish( 837 async_result: *mut gio::GAsyncResult, 838 error: *mut *mut glib::GError, 839 ) -> *mut GdkPixbufAnimation; gdk_pixbuf_animation_new_from_stream_async( stream: *mut gio::GInputStream, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer, )840 pub fn gdk_pixbuf_animation_new_from_stream_async( 841 stream: *mut gio::GInputStream, 842 cancellable: *mut gio::GCancellable, 843 callback: gio::GAsyncReadyCallback, 844 user_data: gpointer, 845 ); gdk_pixbuf_animation_get_height(animation: *mut GdkPixbufAnimation) -> c_int846 pub fn gdk_pixbuf_animation_get_height(animation: *mut GdkPixbufAnimation) -> c_int; gdk_pixbuf_animation_get_iter( animation: *mut GdkPixbufAnimation, start_time: *const glib::GTimeVal, ) -> *mut GdkPixbufAnimationIter847 pub fn gdk_pixbuf_animation_get_iter( 848 animation: *mut GdkPixbufAnimation, 849 start_time: *const glib::GTimeVal, 850 ) -> *mut GdkPixbufAnimationIter; gdk_pixbuf_animation_get_static_image( animation: *mut GdkPixbufAnimation, ) -> *mut GdkPixbuf851 pub fn gdk_pixbuf_animation_get_static_image( 852 animation: *mut GdkPixbufAnimation, 853 ) -> *mut GdkPixbuf; gdk_pixbuf_animation_get_width(animation: *mut GdkPixbufAnimation) -> c_int854 pub fn gdk_pixbuf_animation_get_width(animation: *mut GdkPixbufAnimation) -> c_int; gdk_pixbuf_animation_is_static_image(animation: *mut GdkPixbufAnimation) -> gboolean855 pub fn gdk_pixbuf_animation_is_static_image(animation: *mut GdkPixbufAnimation) -> gboolean; gdk_pixbuf_animation_ref(animation: *mut GdkPixbufAnimation) -> *mut GdkPixbufAnimation856 pub fn gdk_pixbuf_animation_ref(animation: *mut GdkPixbufAnimation) -> *mut GdkPixbufAnimation; gdk_pixbuf_animation_unref(animation: *mut GdkPixbufAnimation)857 pub fn gdk_pixbuf_animation_unref(animation: *mut GdkPixbufAnimation); 858 859 //========================================================================= 860 // GdkPixbufAnimationIter 861 //========================================================================= gdk_pixbuf_animation_iter_get_type() -> GType862 pub fn gdk_pixbuf_animation_iter_get_type() -> GType; gdk_pixbuf_animation_iter_advance( iter: *mut GdkPixbufAnimationIter, current_time: *const glib::GTimeVal, ) -> gboolean863 pub fn gdk_pixbuf_animation_iter_advance( 864 iter: *mut GdkPixbufAnimationIter, 865 current_time: *const glib::GTimeVal, 866 ) -> gboolean; gdk_pixbuf_animation_iter_get_delay_time(iter: *mut GdkPixbufAnimationIter) -> c_int867 pub fn gdk_pixbuf_animation_iter_get_delay_time(iter: *mut GdkPixbufAnimationIter) -> c_int; gdk_pixbuf_animation_iter_get_pixbuf( iter: *mut GdkPixbufAnimationIter, ) -> *mut GdkPixbuf868 pub fn gdk_pixbuf_animation_iter_get_pixbuf( 869 iter: *mut GdkPixbufAnimationIter, 870 ) -> *mut GdkPixbuf; gdk_pixbuf_animation_iter_on_currently_loading_frame( iter: *mut GdkPixbufAnimationIter, ) -> gboolean871 pub fn gdk_pixbuf_animation_iter_on_currently_loading_frame( 872 iter: *mut GdkPixbufAnimationIter, 873 ) -> gboolean; 874 875 //========================================================================= 876 // GdkPixbufLoader 877 //========================================================================= gdk_pixbuf_loader_get_type() -> GType878 pub fn gdk_pixbuf_loader_get_type() -> GType; gdk_pixbuf_loader_new() -> *mut GdkPixbufLoader879 pub fn gdk_pixbuf_loader_new() -> *mut GdkPixbufLoader; gdk_pixbuf_loader_new_with_mime_type( mime_type: *const c_char, error: *mut *mut glib::GError, ) -> *mut GdkPixbufLoader880 pub fn gdk_pixbuf_loader_new_with_mime_type( 881 mime_type: *const c_char, 882 error: *mut *mut glib::GError, 883 ) -> *mut GdkPixbufLoader; gdk_pixbuf_loader_new_with_type( image_type: *const c_char, error: *mut *mut glib::GError, ) -> *mut GdkPixbufLoader884 pub fn gdk_pixbuf_loader_new_with_type( 885 image_type: *const c_char, 886 error: *mut *mut glib::GError, 887 ) -> *mut GdkPixbufLoader; gdk_pixbuf_loader_close( loader: *mut GdkPixbufLoader, error: *mut *mut glib::GError, ) -> gboolean888 pub fn gdk_pixbuf_loader_close( 889 loader: *mut GdkPixbufLoader, 890 error: *mut *mut glib::GError, 891 ) -> gboolean; gdk_pixbuf_loader_get_animation(loader: *mut GdkPixbufLoader) -> *mut GdkPixbufAnimation892 pub fn gdk_pixbuf_loader_get_animation(loader: *mut GdkPixbufLoader) 893 -> *mut GdkPixbufAnimation; gdk_pixbuf_loader_get_format(loader: *mut GdkPixbufLoader) -> *mut GdkPixbufFormat894 pub fn gdk_pixbuf_loader_get_format(loader: *mut GdkPixbufLoader) -> *mut GdkPixbufFormat; gdk_pixbuf_loader_get_pixbuf(loader: *mut GdkPixbufLoader) -> *mut GdkPixbuf895 pub fn gdk_pixbuf_loader_get_pixbuf(loader: *mut GdkPixbufLoader) -> *mut GdkPixbuf; gdk_pixbuf_loader_set_size(loader: *mut GdkPixbufLoader, width: c_int, height: c_int)896 pub fn gdk_pixbuf_loader_set_size(loader: *mut GdkPixbufLoader, width: c_int, height: c_int); gdk_pixbuf_loader_write( loader: *mut GdkPixbufLoader, buf: *const u8, count: size_t, error: *mut *mut glib::GError, ) -> gboolean897 pub fn gdk_pixbuf_loader_write( 898 loader: *mut GdkPixbufLoader, 899 buf: *const u8, 900 count: size_t, 901 error: *mut *mut glib::GError, 902 ) -> gboolean; gdk_pixbuf_loader_write_bytes( loader: *mut GdkPixbufLoader, buffer: *mut glib::GBytes, error: *mut *mut glib::GError, ) -> gboolean903 pub fn gdk_pixbuf_loader_write_bytes( 904 loader: *mut GdkPixbufLoader, 905 buffer: *mut glib::GBytes, 906 error: *mut *mut glib::GError, 907 ) -> gboolean; 908 909 //========================================================================= 910 // GdkPixbufNonAnim 911 //========================================================================= gdk_pixbuf_non_anim_get_type() -> GType912 pub fn gdk_pixbuf_non_anim_get_type() -> GType; gdk_pixbuf_non_anim_new(pixbuf: *mut GdkPixbuf) -> *mut GdkPixbufAnimation913 pub fn gdk_pixbuf_non_anim_new(pixbuf: *mut GdkPixbuf) -> *mut GdkPixbufAnimation; 914 915 //========================================================================= 916 // GdkPixbufSimpleAnim 917 //========================================================================= gdk_pixbuf_simple_anim_get_type() -> GType918 pub fn gdk_pixbuf_simple_anim_get_type() -> GType; gdk_pixbuf_simple_anim_new( width: c_int, height: c_int, rate: c_float, ) -> *mut GdkPixbufSimpleAnim919 pub fn gdk_pixbuf_simple_anim_new( 920 width: c_int, 921 height: c_int, 922 rate: c_float, 923 ) -> *mut GdkPixbufSimpleAnim; gdk_pixbuf_simple_anim_add_frame( animation: *mut GdkPixbufSimpleAnim, pixbuf: *mut GdkPixbuf, )924 pub fn gdk_pixbuf_simple_anim_add_frame( 925 animation: *mut GdkPixbufSimpleAnim, 926 pixbuf: *mut GdkPixbuf, 927 ); gdk_pixbuf_simple_anim_get_loop(animation: *mut GdkPixbufSimpleAnim) -> gboolean928 pub fn gdk_pixbuf_simple_anim_get_loop(animation: *mut GdkPixbufSimpleAnim) -> gboolean; gdk_pixbuf_simple_anim_set_loop(animation: *mut GdkPixbufSimpleAnim, loop_: gboolean)929 pub fn gdk_pixbuf_simple_anim_set_loop(animation: *mut GdkPixbufSimpleAnim, loop_: gboolean); 930 931 //========================================================================= 932 // GdkPixbufSimpleAnimIter 933 //========================================================================= gdk_pixbuf_simple_anim_iter_get_type() -> GType934 pub fn gdk_pixbuf_simple_anim_iter_get_type() -> GType; 935 936 } 937