1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837
|
{ This is an autogenerated unit using gobject introspection (gir2pascal). Do not Edit. }
unit LazGdkPixbuf2;
{$MODE OBJFPC}{$H+}
{$PACKRECORDS C}
{$MODESWITCH DUPLICATELOCALS+}
{$LINKLIB libgdk_pixbuf-2.0.so.0}
interface
uses
CTypes, LazGModule2, LazGio2, LazGLib2, LazGObject2;
const
GdkPixbuf2_library = 'libgdk_pixbuf-2.0.so.0';
GDK_PIXBUF_FEATURES_H = 1;
GDK_PIXBUF_MAGIC_NUMBER = 1197763408;
GDK_PIXBUF_MAJOR = 2;
GDK_PIXBUF_MICRO = 2;
GDK_PIXBUF_MINOR = 28;
GDK_PIXBUF_VERSION = '2.28.2';
GDK_PIXDATA_HEADER_LENGTH = 24;
type
TGdkColorspace = Integer;
const
{ GdkColorspace }
GDK_COLORSPACE_RGB: TGdkColorspace = 0;
type
TGdkInterpType = Integer;
const
{ GdkInterpType }
GDK_INTERP_NEAREST: TGdkInterpType = 0;
GDK_INTERP_TILES: TGdkInterpType = 1;
GDK_INTERP_BILINEAR: TGdkInterpType = 2;
GDK_INTERP_HYPER: TGdkInterpType = 3;
type
TGdkPixbufRotation = Integer;
const
{ GdkPixbufRotation }
GDK_PIXBUF_ROTATE_NONE: TGdkPixbufRotation = 0;
GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE: TGdkPixbufRotation = 90;
GDK_PIXBUF_ROTATE_UPSIDEDOWN: TGdkPixbufRotation = 180;
GDK_PIXBUF_ROTATE_CLOCKWISE: TGdkPixbufRotation = 270;
type
TGdkPixdataDumpType = Integer;
const
{ GdkPixdataDumpType }
GDK_PIXDATA_DUMP_PIXDATA_STREAM: TGdkPixdataDumpType = 0;
GDK_PIXDATA_DUMP_PIXDATA_STRUCT: TGdkPixdataDumpType = 1;
GDK_PIXDATA_DUMP_MACROS: TGdkPixdataDumpType = 2;
GDK_PIXDATA_DUMP_GTYPES: TGdkPixdataDumpType = 0;
GDK_PIXDATA_DUMP_CTYPES: TGdkPixdataDumpType = 256;
GDK_PIXDATA_DUMP_STATIC: TGdkPixdataDumpType = 512;
GDK_PIXDATA_DUMP_CONST: TGdkPixdataDumpType = 1024;
GDK_PIXDATA_DUMP_RLE_DECODER: TGdkPixdataDumpType = 65536;
type
TGdkPixbufAlphaMode = Integer;
const
{ GdkPixbufAlphaMode }
GDK_PIXBUF_ALPHA_BILEVEL: TGdkPixbufAlphaMode = 0;
GDK_PIXBUF_ALPHA_FULL: TGdkPixbufAlphaMode = 1;
type
TGdkPixbufError = Integer;
const
{ GdkPixbufError }
GDK_PIXBUF_ERROR_CORRUPT_IMAGE: TGdkPixbufError = 0;
GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY: TGdkPixbufError = 1;
GDK_PIXBUF_ERROR_BAD_OPTION: TGdkPixbufError = 2;
GDK_PIXBUF_ERROR_UNKNOWN_TYPE: TGdkPixbufError = 3;
GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION: TGdkPixbufError = 4;
GDK_PIXBUF_ERROR_FAILED: TGdkPixbufError = 5;
type
TGdkPixdataType = Integer;
const
{ GdkPixdataType }
GDK_PIXDATA_COLOR_TYPE_RGB: TGdkPixdataType = 1;
GDK_PIXDATA_COLOR_TYPE_RGBA: TGdkPixdataType = 2;
GDK_PIXDATA_COLOR_TYPE_MASK: TGdkPixdataType = 255;
GDK_PIXDATA_SAMPLE_WIDTH_8: TGdkPixdataType = 65536;
GDK_PIXDATA_SAMPLE_WIDTH_MASK: TGdkPixdataType = 983040;
GDK_PIXDATA_ENCODING_RAW: TGdkPixdataType = 16777216;
GDK_PIXDATA_ENCODING_RLE: TGdkPixdataType = 33554432;
GDK_PIXDATA_ENCODING_MASK: TGdkPixdataType = 251658240;
type
PPGdkColorspace = ^PGdkColorspace;
PGdkColorspace = ^TGdkColorspace;
PPGdkInterpType = ^PGdkInterpType;
PGdkInterpType = ^TGdkInterpType;
PPGdkPixbuf = ^PGdkPixbuf;
PGdkPixbuf = ^TGdkPixbuf;
PPGdkPixbufDestroyNotify = ^PGdkPixbufDestroyNotify;
PGdkPixbufDestroyNotify = ^TGdkPixbufDestroyNotify;
TGdkPixbufDestroyNotify = procedure(pixels: Pguint8; data: gpointer); cdecl;
PPGdkPixdata = ^PGdkPixdata;
PGdkPixdata = ^TGdkPixdata;
PPGdkPixbufFormat = ^PGdkPixbufFormat;
PGdkPixbufFormat = ^TGdkPixbufFormat;
PPGdkPixbufRotation = ^PGdkPixbufRotation;
PGdkPixbufRotation = ^TGdkPixbufRotation;
PPGdkPixbufSaveFunc = ^PGdkPixbufSaveFunc;
PGdkPixbufSaveFunc = ^TGdkPixbufSaveFunc;
TGdkPixbufSaveFunc = function(buf: Pgchar; count: gsize; error: PPGError; data: gpointer): gboolean; cdecl;
TGdkPixbuf = object(TGObject)
function new(colorspace: TGdkColorspace; has_alpha: gboolean; bits_per_sample: gint; width: gint; height: gint): PGdkPixbuf; cdecl; inline; static;
function new_from_data(data: Pguint8; colorspace: TGdkColorspace; has_alpha: gboolean; bits_per_sample: gint; width: gint; height: gint; rowstride: gint; destroy_fn: TGdkPixbufDestroyNotify; destroy_fn_data: gpointer): PGdkPixbuf; cdecl; inline; static;
function new_from_file(filename: Pgchar; error: PPGError): PGdkPixbuf; cdecl; inline; static;
function new_from_file_at_scale(filename: Pgchar; width: gint; height: gint; preserve_aspect_ratio: gboolean; error: PPGError): PGdkPixbuf; cdecl; inline; static;
function new_from_file_at_size(filename: Pgchar; width: gint; height: gint; error: PPGError): PGdkPixbuf; cdecl; inline; static;
function new_from_inline(data_length: gint; data: Pguint8; copy_pixels: gboolean; error: PPGError): PGdkPixbuf; cdecl; inline; static;
function new_from_resource(resource_path: Pgchar; error: PPGError): PGdkPixbuf; cdecl; inline; static;
function new_from_resource_at_scale(resource_path: Pgchar; width: gint; height: gint; preserve_aspect_ratio: gboolean; error: PPGError): PGdkPixbuf; cdecl; inline; static;
function new_from_stream(stream: PGInputStream; cancellable: PGCancellable; error: PPGError): PGdkPixbuf; cdecl; inline; static;
function new_from_stream_at_scale(stream: PGInputStream; width: gint; height: gint; preserve_aspect_ratio: gboolean; cancellable: PGCancellable; error: PPGError): PGdkPixbuf; cdecl; inline; static;
function new_from_stream_finish(async_result: PGAsyncResult; error: PPGError): PGdkPixbuf; cdecl; inline; static;
function new_from_xpm_data(data: PPgchar): PGdkPixbuf; cdecl; inline; static;
function from_pixdata(pixdata: PGdkPixdata; copy_pixels: gboolean; error: PPGError): PGdkPixbuf; cdecl; inline; static;
function get_file_info(filename: Pgchar; width: Pgint; height: Pgint): PGdkPixbufFormat; cdecl; inline; static;
function get_formats: PGSList; cdecl; inline; static;
function gettext(msgid: Pgchar): Pgchar; cdecl; inline; static;
procedure new_from_stream_async(stream: PGInputStream; cancellable: PGCancellable; callback: TGAsyncReadyCallback; user_data: gpointer); cdecl; inline; static;
procedure new_from_stream_at_scale_async(stream: PGInputStream; width: gint; height: gint; preserve_aspect_ratio: gboolean; cancellable: PGCancellable; callback: TGAsyncReadyCallback; user_data: gpointer); cdecl; inline; static;
function save_to_stream_finish(async_result: PGAsyncResult; error: PPGError): gboolean; cdecl; inline; static;
function add_alpha(substitute_color: gboolean; r: guint8; g: guint8; b: guint8): PGdkPixbuf; cdecl; inline;
function apply_embedded_orientation: PGdkPixbuf; cdecl; inline;
procedure composite(dest: PGdkPixbuf; dest_x: gint; dest_y: gint; dest_width: gint; dest_height: gint; offset_x: gdouble; offset_y: gdouble; scale_x: gdouble; scale_y: gdouble; interp_type: TGdkInterpType; overall_alpha: gint); cdecl; inline;
procedure composite_color(dest: PGdkPixbuf; dest_x: gint; dest_y: gint; dest_width: gint; dest_height: gint; offset_x: gdouble; offset_y: gdouble; scale_x: gdouble; scale_y: gdouble; interp_type: TGdkInterpType; overall_alpha: gint; check_x: gint; check_y: gint; check_size: gint; color1: guint32; color2: guint32); cdecl; inline;
function composite_color_simple(dest_width: gint; dest_height: gint; interp_type: TGdkInterpType; overall_alpha: gint; check_size: gint; color1: guint32; color2: guint32): PGdkPixbuf; cdecl; inline;
function copy: PGdkPixbuf; cdecl; inline;
procedure copy_area(src_x: gint; src_y: gint; width: gint; height: gint; dest_pixbuf: PGdkPixbuf; dest_x: gint; dest_y: gint); cdecl; inline;
procedure fill(pixel: guint32); cdecl; inline;
function flip(horizontal: gboolean): PGdkPixbuf; cdecl; inline;
function get_bits_per_sample: gint; cdecl; inline;
function get_byte_length: gsize; cdecl; inline;
function get_colorspace: TGdkColorspace; cdecl; inline;
function get_has_alpha: gboolean; cdecl; inline;
function get_height: gint; cdecl; inline;
function get_n_channels: gint; cdecl; inline;
function get_option(key: Pgchar): Pgchar; cdecl; inline;
function get_pixels: Pguint8; cdecl; inline;
function get_pixels_with_length(length: Pguint): Pguint8; cdecl; inline;
function get_rowstride: gint; cdecl; inline;
function get_width: gint; cdecl; inline;
function new_subpixbuf(src_x: gint; src_y: gint; width: gint; height: gint): PGdkPixbuf; cdecl; inline;
function rotate_simple(angle: TGdkPixbufRotation): PGdkPixbuf; cdecl; inline;
procedure saturate_and_pixelate(dest: PGdkPixbuf; saturation: gfloat; pixelate: gboolean); cdecl; inline;
//function save(filename: Pgchar; type_: Pgchar; error: PPGError; args: array of const): gboolean; cdecl; inline;
//function save_to_buffer(buffer: PPgchar; buffer_size: Pgsize; type_: Pgchar; error: PPGError; args: array of const): gboolean; cdecl; inline;
function save_to_bufferv(buffer: PPgchar; buffer_size: Pgsize; type_: Pgchar; option_keys: PPgchar; option_values: PPgchar; error: PPGError): gboolean; cdecl; inline;
//function save_to_callback(save_func: TGdkPixbufSaveFunc; user_data: gpointer; type_: Pgchar; error: PPGError; args: array of const): gboolean; cdecl; inline;
function save_to_callbackv(save_func: TGdkPixbufSaveFunc; user_data: gpointer; type_: Pgchar; option_keys: PPgchar; option_values: PPgchar; error: PPGError): gboolean; cdecl; inline;
//function save_to_stream(stream: PGOutputStream; type_: Pgchar; cancellable: PGCancellable; error: PPGError; args: array of const): gboolean; cdecl; inline;
//procedure save_to_stream_async(stream: PGOutputStream; type_: Pgchar; cancellable: PGCancellable; callback: TGAsyncReadyCallback; user_data: gpointer; args: array of const); cdecl; inline;
function savev(filename: Pgchar; type_: Pgchar; option_keys: PPgchar; option_values: PPgchar; error: PPGError): gboolean; cdecl; inline;
procedure scale(dest: PGdkPixbuf; dest_x: gint; dest_y: gint; dest_width: gint; dest_height: gint; offset_x: gdouble; offset_y: gdouble; scale_x: gdouble; scale_y: gdouble; interp_type: TGdkInterpType); cdecl; inline;
function scale_simple(dest_width: gint; dest_height: gint; interp_type: TGdkInterpType): PGdkPixbuf; cdecl; inline;
property bits_per_sample: gint read get_bits_per_sample { property is writeable but setter not declared } ;
property colorspace: TGdkColorspace read get_colorspace { property is writeable but setter not declared } ;
property has_alpha: gboolean read get_has_alpha { property is writeable but setter not declared } ;
property height: gint read get_height { property is writeable but setter not declared } ;
property n_channels: gint read get_n_channels { property is writeable but setter not declared } ;
property pixels: Pguint8 read get_pixels { property is writeable but setter not declared } ;
property rowstride: gint read get_rowstride { property is writeable but setter not declared } ;
property width: gint read get_width { property is writeable but setter not declared } ;
end;
PPGdkPixdataDumpType = ^PGdkPixdataDumpType;
PGdkPixdataDumpType = ^TGdkPixdataDumpType;
TGdkPixdata = object
magic: guint32;
length: gint32;
pixdata_type: guint32;
rowstride: guint32;
width: guint32;
height: guint32;
pixel_data: guint8;
function deserialize(stream_length: guint; stream: Pguint8; error: PPGError): gboolean; cdecl; inline;
function from_pixbuf(pixbuf: PGdkPixbuf; use_rle: gboolean): gpointer; cdecl; inline;
function serialize(stream_length_p: Pguint): Pguint8; cdecl; inline;
function to_csource(name: Pgchar; dump_type: TGdkPixdataDumpType): PGString; cdecl; inline;
end;
TGdkPixbufFormat = object
function copy: PGdkPixbufFormat; cdecl; inline;
procedure free; cdecl; inline;
function get_description: Pgchar; cdecl; inline;
function get_extensions: PPgchar; cdecl; inline;
function get_license: Pgchar; cdecl; inline;
function get_mime_types: PPgchar; cdecl; inline;
function get_name: Pgchar; cdecl; inline;
function is_disabled: gboolean; cdecl; inline;
function is_scalable: gboolean; cdecl; inline;
function is_writable: gboolean; cdecl; inline;
procedure set_disabled(disabled: gboolean); cdecl; inline;
end;
PPGdkPixbufAlphaMode = ^PGdkPixbufAlphaMode;
PGdkPixbufAlphaMode = ^TGdkPixbufAlphaMode;
PPGdkPixbufAnimation = ^PGdkPixbufAnimation;
PGdkPixbufAnimation = ^TGdkPixbufAnimation;
PPGdkPixbufAnimationIter = ^PGdkPixbufAnimationIter;
PGdkPixbufAnimationIter = ^TGdkPixbufAnimationIter;
TGdkPixbufAnimation = object(TGObject)
function new_from_file(filename: Pgchar; error: PPGError): PGdkPixbufAnimation; cdecl; inline; static;
function new_from_resource(resource_path: Pgchar; error: PPGError): PGdkPixbufAnimation; cdecl; inline; static;
function new_from_stream(stream: PGInputStream; cancellable: PGCancellable; error: PPGError): PGdkPixbufAnimation; cdecl; inline; static;
function new_from_stream_finish(async_result: PGAsyncResult; error: PPGError): PGdkPixbufAnimation; cdecl; inline; static;
procedure new_from_stream_async(stream: PGInputStream; cancellable: PGCancellable; callback: TGAsyncReadyCallback; user_data: gpointer); cdecl; inline; static;
function get_height: gint; cdecl; inline;
function get_iter(start_time: PGTimeVal): PGdkPixbufAnimationIter; cdecl; inline;
function get_static_image: PGdkPixbuf; cdecl; inline;
function get_width: gint; cdecl; inline;
function is_static_image: gboolean; cdecl; inline;
end;
TGdkPixbufAnimationIter = object(TGObject)
function advance(current_time: PGTimeVal): gboolean; cdecl; inline;
function get_delay_time: gint; cdecl; inline;
function get_pixbuf: PGdkPixbuf; cdecl; inline;
function on_currently_loading_frame: gboolean; cdecl; inline;
end;
PPGdkPixbufError = ^PGdkPixbufError;
PGdkPixbufError = ^TGdkPixbufError;
PPGdkPixbufLoader = ^PGdkPixbufLoader;
PGdkPixbufLoader = ^TGdkPixbufLoader;
TGdkPixbufLoader = object(TGObject)
priv: gpointer;
function new: PGdkPixbufLoader; cdecl; inline; static;
function new_with_mime_type(mime_type: Pgchar; error: PPGError): PGdkPixbufLoader; cdecl; inline; static;
function new_with_type(image_type: Pgchar; error: PPGError): PGdkPixbufLoader; cdecl; inline; static;
function close(error: PPGError): gboolean; cdecl; inline;
function get_animation: PGdkPixbufAnimation; cdecl; inline;
function get_format: PGdkPixbufFormat; cdecl; inline;
function get_pixbuf: PGdkPixbuf; cdecl; inline;
procedure set_size(width: gint; height: gint); cdecl; inline;
function write(buf: Pguint8; count: gsize; error: PPGError): gboolean; cdecl; inline;
end;
PPGdkPixbufLoaderClass = ^PGdkPixbufLoaderClass;
PGdkPixbufLoaderClass = ^TGdkPixbufLoaderClass;
TGdkPixbufLoaderClass = object
parent_class: TGObjectClass;
size_prepared: procedure(loader: PGdkPixbufLoader; width: gint; height: gint); cdecl;
area_prepared: procedure(loader: PGdkPixbufLoader); cdecl;
area_updated: procedure(loader: PGdkPixbufLoader; x: gint; y: gint; width: gint; height: gint); cdecl;
closed: procedure(loader: PGdkPixbufLoader); cdecl;
end;
PPGdkPixbufSimpleAnim = ^PGdkPixbufSimpleAnim;
PGdkPixbufSimpleAnim = ^TGdkPixbufSimpleAnim;
TGdkPixbufSimpleAnim = object(TGdkPixbufAnimation)
function new(width: gint; height: gint; rate: gfloat): PGdkPixbufSimpleAnim; cdecl; inline; static;
procedure add_frame(pixbuf: PGdkPixbuf); cdecl; inline;
function get_loop: gboolean; cdecl; inline;
procedure set_loop(loop: gboolean); cdecl; inline;
property loop: gboolean read get_loop write set_loop;
end;
PPGdkPixbufSimpleAnimClass = ^PGdkPixbufSimpleAnimClass;
PGdkPixbufSimpleAnimClass = ^TGdkPixbufSimpleAnimClass;
TGdkPixbufSimpleAnimClass = object
end;
PPGdkPixbufSimpleAnimIter = ^PGdkPixbufSimpleAnimIter;
PGdkPixbufSimpleAnimIter = ^TGdkPixbufSimpleAnimIter;
TGdkPixbufSimpleAnimIter = object(TGdkPixbufAnimationIter)
end;
PPGdkPixdataType = ^PGdkPixdataType;
PGdkPixdataType = ^TGdkPixdataType;
function gdk_pixbuf_add_alpha(pixbuf: PGdkPixbuf; substitute_color: gboolean; r: guint8; g: guint8; b: guint8): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_animation_get_height(animation: PGdkPixbufAnimation): gint; cdecl; external;
function gdk_pixbuf_animation_get_iter(animation: PGdkPixbufAnimation; start_time: PGTimeVal): PGdkPixbufAnimationIter; cdecl; external;
function gdk_pixbuf_animation_get_static_image(animation: PGdkPixbufAnimation): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_animation_get_type: TGType; cdecl; external;
function gdk_pixbuf_animation_get_width(animation: PGdkPixbufAnimation): gint; cdecl; external;
function gdk_pixbuf_animation_is_static_image(animation: PGdkPixbufAnimation): gboolean; cdecl; external;
function gdk_pixbuf_animation_iter_advance(iter: PGdkPixbufAnimationIter; current_time: PGTimeVal): gboolean; cdecl; external;
function gdk_pixbuf_animation_iter_get_delay_time(iter: PGdkPixbufAnimationIter): gint; cdecl; external;
function gdk_pixbuf_animation_iter_get_pixbuf(iter: PGdkPixbufAnimationIter): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_animation_iter_get_type: TGType; cdecl; external;
function gdk_pixbuf_animation_iter_on_currently_loading_frame(iter: PGdkPixbufAnimationIter): gboolean; cdecl; external;
function gdk_pixbuf_animation_new_from_file(filename: Pgchar; error: PPGError): PGdkPixbufAnimation; cdecl; external;
function gdk_pixbuf_animation_new_from_resource(resource_path: Pgchar; error: PPGError): PGdkPixbufAnimation; cdecl; external;
function gdk_pixbuf_animation_new_from_stream(stream: PGInputStream; cancellable: PGCancellable; error: PPGError): PGdkPixbufAnimation; cdecl; external;
function gdk_pixbuf_animation_new_from_stream_finish(async_result: PGAsyncResult; error: PPGError): PGdkPixbufAnimation; cdecl; external;
function gdk_pixbuf_apply_embedded_orientation(src: PGdkPixbuf): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_composite_color_simple(src: PGdkPixbuf; dest_width: gint; dest_height: gint; interp_type: TGdkInterpType; overall_alpha: gint; check_size: gint; color1: guint32; color2: guint32): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_copy(pixbuf: PGdkPixbuf): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_error_quark: TGQuark; cdecl; external;
function gdk_pixbuf_flip(src: PGdkPixbuf; horizontal: gboolean): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_format_copy(format: PGdkPixbufFormat): PGdkPixbufFormat; cdecl; external;
function gdk_pixbuf_format_get_description(format: PGdkPixbufFormat): Pgchar; cdecl; external;
function gdk_pixbuf_format_get_extensions(format: PGdkPixbufFormat): PPgchar; cdecl; external;
function gdk_pixbuf_format_get_license(format: PGdkPixbufFormat): Pgchar; cdecl; external;
function gdk_pixbuf_format_get_mime_types(format: PGdkPixbufFormat): PPgchar; cdecl; external;
function gdk_pixbuf_format_get_name(format: PGdkPixbufFormat): Pgchar; cdecl; external;
function gdk_pixbuf_format_get_type: TGType; cdecl; external;
function gdk_pixbuf_format_is_disabled(format: PGdkPixbufFormat): gboolean; cdecl; external;
function gdk_pixbuf_format_is_scalable(format: PGdkPixbufFormat): gboolean; cdecl; external;
function gdk_pixbuf_format_is_writable(format: PGdkPixbufFormat): gboolean; cdecl; external;
function gdk_pixbuf_from_pixdata(pixdata: PGdkPixdata; copy_pixels: gboolean; error: PPGError): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_get_bits_per_sample(pixbuf: PGdkPixbuf): gint; cdecl; external;
function gdk_pixbuf_get_byte_length(pixbuf: PGdkPixbuf): gsize; cdecl; external;
function gdk_pixbuf_get_colorspace(pixbuf: PGdkPixbuf): TGdkColorspace; cdecl; external;
function gdk_pixbuf_get_file_info(filename: Pgchar; width: Pgint; height: Pgint): PGdkPixbufFormat; cdecl; external;
function gdk_pixbuf_get_formats: PGSList; cdecl; external;
function gdk_pixbuf_get_has_alpha(pixbuf: PGdkPixbuf): gboolean; cdecl; external;
function gdk_pixbuf_get_height(pixbuf: PGdkPixbuf): gint; cdecl; external;
function gdk_pixbuf_get_n_channels(pixbuf: PGdkPixbuf): gint; cdecl; external;
function gdk_pixbuf_get_option(pixbuf: PGdkPixbuf; key: Pgchar): Pgchar; cdecl; external;
function gdk_pixbuf_get_pixels(pixbuf: PGdkPixbuf): Pguint8; cdecl; external;
function gdk_pixbuf_get_pixels_with_length(pixbuf: PGdkPixbuf; length: Pguint): Pguint8; cdecl; external;
function gdk_pixbuf_get_rowstride(pixbuf: PGdkPixbuf): gint; cdecl; external;
function gdk_pixbuf_get_type: TGType; cdecl; external;
function gdk_pixbuf_get_width(pixbuf: PGdkPixbuf): gint; cdecl; external;
//does not exist anymore. issue #31677 function gdk_pixbuf_gettext(msgid: Pgchar): Pgchar; cdecl; external;
function gdk_pixbuf_loader_close(loader: PGdkPixbufLoader; error: PPGError): gboolean; cdecl; external;
function gdk_pixbuf_loader_get_animation(loader: PGdkPixbufLoader): PGdkPixbufAnimation; cdecl; external;
function gdk_pixbuf_loader_get_format(loader: PGdkPixbufLoader): PGdkPixbufFormat; cdecl; external;
function gdk_pixbuf_loader_get_pixbuf(loader: PGdkPixbufLoader): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_loader_get_type: TGType; cdecl; external;
function gdk_pixbuf_loader_new: PGdkPixbufLoader; cdecl; external;
function gdk_pixbuf_loader_new_with_mime_type(mime_type: Pgchar; error: PPGError): PGdkPixbufLoader; cdecl; external;
function gdk_pixbuf_loader_new_with_type(image_type: Pgchar; error: PPGError): PGdkPixbufLoader; cdecl; external;
function gdk_pixbuf_loader_write(loader: PGdkPixbufLoader; buf: Pguint8; count: gsize; error: PPGError): gboolean; cdecl; external;
function gdk_pixbuf_new(colorspace: TGdkColorspace; has_alpha: gboolean; bits_per_sample: gint; width: gint; height: gint): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_new_from_data(data: Pguint8; colorspace: TGdkColorspace; has_alpha: gboolean; bits_per_sample: gint; width: gint; height: gint; rowstride: gint; destroy_fn: TGdkPixbufDestroyNotify; destroy_fn_data: gpointer): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_new_from_file(filename: Pgchar; error: PPGError): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_new_from_file_at_scale(filename: Pgchar; width: gint; height: gint; preserve_aspect_ratio: gboolean; error: PPGError): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_new_from_file_at_size(filename: Pgchar; width: gint; height: gint; error: PPGError): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_new_from_inline(data_length: gint; data: Pguint8; copy_pixels: gboolean; error: PPGError): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_new_from_resource(resource_path: Pgchar; error: PPGError): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_new_from_resource_at_scale(resource_path: Pgchar; width: gint; height: gint; preserve_aspect_ratio: gboolean; error: PPGError): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_new_from_stream(stream: PGInputStream; cancellable: PGCancellable; error: PPGError): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_new_from_stream_at_scale(stream: PGInputStream; width: gint; height: gint; preserve_aspect_ratio: gboolean; cancellable: PGCancellable; error: PPGError): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_new_from_stream_finish(async_result: PGAsyncResult; error: PPGError): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_new_from_xpm_data(data: PPgchar): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_new_subpixbuf(src_pixbuf: PGdkPixbuf; src_x: gint; src_y: gint; width: gint; height: gint): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_rotate_simple(src: PGdkPixbuf; angle: TGdkPixbufRotation): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_save(pixbuf: PGdkPixbuf; filename: Pgchar; type_: Pgchar; error: PPGError; args: array of const): gboolean; cdecl; external;
function gdk_pixbuf_save_to_buffer(pixbuf: PGdkPixbuf; buffer: PPgchar; buffer_size: Pgsize; type_: Pgchar; error: PPGError; args: array of const): gboolean; cdecl; external;
function gdk_pixbuf_save_to_bufferv(pixbuf: PGdkPixbuf; buffer: PPgchar; buffer_size: Pgsize; type_: Pgchar; option_keys: PPgchar; option_values: PPgchar; error: PPGError): gboolean; cdecl; external;
function gdk_pixbuf_save_to_callback(pixbuf: PGdkPixbuf; save_func: TGdkPixbufSaveFunc; user_data: gpointer; type_: Pgchar; error: PPGError; args: array of const): gboolean; cdecl; external;
function gdk_pixbuf_save_to_callbackv(pixbuf: PGdkPixbuf; save_func: TGdkPixbufSaveFunc; user_data: gpointer; type_: Pgchar; option_keys: PPgchar; option_values: PPgchar; error: PPGError): gboolean; cdecl; external;
function gdk_pixbuf_save_to_stream(pixbuf: PGdkPixbuf; stream: PGOutputStream; type_: Pgchar; cancellable: PGCancellable; error: PPGError; args: array of const): gboolean; cdecl; external;
function gdk_pixbuf_save_to_stream_finish(async_result: PGAsyncResult; error: PPGError): gboolean; cdecl; external;
function gdk_pixbuf_savev(pixbuf: PGdkPixbuf; filename: Pgchar; type_: Pgchar; option_keys: PPgchar; option_values: PPgchar; error: PPGError): gboolean; cdecl; external;
function gdk_pixbuf_scale_simple(src: PGdkPixbuf; dest_width: gint; dest_height: gint; interp_type: TGdkInterpType): PGdkPixbuf; cdecl; external;
function gdk_pixbuf_simple_anim_get_loop(animation: PGdkPixbufSimpleAnim): gboolean; cdecl; external;
function gdk_pixbuf_simple_anim_get_type: TGType; cdecl; external;
function gdk_pixbuf_simple_anim_iter_get_type: TGType; cdecl; external;
function gdk_pixbuf_simple_anim_new(width: gint; height: gint; rate: gfloat): PGdkPixbufSimpleAnim; cdecl; external;
function gdk_pixdata_deserialize(pixdata: PGdkPixdata; stream_length: guint; stream: Pguint8; error: PPGError): gboolean; cdecl; external;
function gdk_pixdata_from_pixbuf(pixdata: PGdkPixdata; pixbuf: PGdkPixbuf; use_rle: gboolean): gpointer; cdecl; external;
function gdk_pixdata_serialize(pixdata: PGdkPixdata; stream_length_p: Pguint): Pguint8; cdecl; external;
function gdk_pixdata_to_csource(pixdata: PGdkPixdata; name: Pgchar; dump_type: TGdkPixdataDumpType): PGString; cdecl; external;
procedure gdk_pixbuf_animation_new_from_stream_async(stream: PGInputStream; cancellable: PGCancellable; callback: TGAsyncReadyCallback; user_data: gpointer); cdecl; external;
procedure gdk_pixbuf_composite(src: PGdkPixbuf; dest: PGdkPixbuf; dest_x: gint; dest_y: gint; dest_width: gint; dest_height: gint; offset_x: gdouble; offset_y: gdouble; scale_x: gdouble; scale_y: gdouble; interp_type: TGdkInterpType; overall_alpha: gint); cdecl; external;
procedure gdk_pixbuf_composite_color(src: PGdkPixbuf; dest: PGdkPixbuf; dest_x: gint; dest_y: gint; dest_width: gint; dest_height: gint; offset_x: gdouble; offset_y: gdouble; scale_x: gdouble; scale_y: gdouble; interp_type: TGdkInterpType; overall_alpha: gint; check_x: gint; check_y: gint; check_size: gint; color1: guint32; color2: guint32); cdecl; external;
procedure gdk_pixbuf_copy_area(src_pixbuf: PGdkPixbuf; src_x: gint; src_y: gint; width: gint; height: gint; dest_pixbuf: PGdkPixbuf; dest_x: gint; dest_y: gint); cdecl; external;
procedure gdk_pixbuf_fill(pixbuf: PGdkPixbuf; pixel: guint32); cdecl; external;
procedure gdk_pixbuf_format_free(format: PGdkPixbufFormat); cdecl; external;
procedure gdk_pixbuf_format_set_disabled(format: PGdkPixbufFormat; disabled: gboolean); cdecl; external;
procedure gdk_pixbuf_loader_set_size(loader: PGdkPixbufLoader; width: gint; height: gint); cdecl; external;
procedure gdk_pixbuf_new_from_stream_async(stream: PGInputStream; cancellable: PGCancellable; callback: TGAsyncReadyCallback; user_data: gpointer); cdecl; external;
procedure gdk_pixbuf_new_from_stream_at_scale_async(stream: PGInputStream; width: gint; height: gint; preserve_aspect_ratio: gboolean; cancellable: PGCancellable; callback: TGAsyncReadyCallback; user_data: gpointer); cdecl; external;
procedure gdk_pixbuf_saturate_and_pixelate(src: PGdkPixbuf; dest: PGdkPixbuf; saturation: gfloat; pixelate: gboolean); cdecl; external;
procedure gdk_pixbuf_save_to_stream_async(pixbuf: PGdkPixbuf; stream: PGOutputStream; type_: Pgchar; cancellable: PGCancellable; callback: TGAsyncReadyCallback; user_data: gpointer; args: array of const); cdecl; external;
procedure gdk_pixbuf_scale(src: PGdkPixbuf; dest: PGdkPixbuf; dest_x: gint; dest_y: gint; dest_width: gint; dest_height: gint; offset_x: gdouble; offset_y: gdouble; scale_x: gdouble; scale_y: gdouble; interp_type: TGdkInterpType); cdecl; external;
procedure gdk_pixbuf_simple_anim_add_frame(animation: PGdkPixbufSimpleAnim; pixbuf: PGdkPixbuf); cdecl; external;
procedure gdk_pixbuf_simple_anim_set_loop(animation: PGdkPixbufSimpleAnim; loop: gboolean); cdecl; external;
implementation
function TGdkPixbuf.new(colorspace: TGdkColorspace; has_alpha: gboolean; bits_per_sample: gint; width: gint; height: gint): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_new(colorspace, has_alpha, bits_per_sample, width, height);
end;
function TGdkPixbuf.new_from_data(data: Pguint8; colorspace: TGdkColorspace; has_alpha: gboolean; bits_per_sample: gint; width: gint; height: gint; rowstride: gint; destroy_fn: TGdkPixbufDestroyNotify; destroy_fn_data: gpointer): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_new_from_data(data, colorspace, has_alpha, bits_per_sample, width, height, rowstride, destroy_fn, destroy_fn_data);
end;
function TGdkPixbuf.new_from_file(filename: Pgchar; error: PPGError): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_new_from_file(filename, error);
end;
function TGdkPixbuf.new_from_file_at_scale(filename: Pgchar; width: gint; height: gint; preserve_aspect_ratio: gboolean; error: PPGError): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_new_from_file_at_scale(filename, width, height, preserve_aspect_ratio, error);
end;
function TGdkPixbuf.new_from_file_at_size(filename: Pgchar; width: gint; height: gint; error: PPGError): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_new_from_file_at_size(filename, width, height, error);
end;
function TGdkPixbuf.new_from_inline(data_length: gint; data: Pguint8; copy_pixels: gboolean; error: PPGError): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_new_from_inline(data_length, data, copy_pixels, error);
end;
function TGdkPixbuf.new_from_resource(resource_path: Pgchar; error: PPGError): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_new_from_resource(resource_path, error);
end;
function TGdkPixbuf.new_from_resource_at_scale(resource_path: Pgchar; width: gint; height: gint; preserve_aspect_ratio: gboolean; error: PPGError): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_new_from_resource_at_scale(resource_path, width, height, preserve_aspect_ratio, error);
end;
function TGdkPixbuf.new_from_stream(stream: PGInputStream; cancellable: PGCancellable; error: PPGError): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_new_from_stream(stream, cancellable, error);
end;
function TGdkPixbuf.new_from_stream_at_scale(stream: PGInputStream; width: gint; height: gint; preserve_aspect_ratio: gboolean; cancellable: PGCancellable; error: PPGError): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_new_from_stream_at_scale(stream, width, height, preserve_aspect_ratio, cancellable, error);
end;
function TGdkPixbuf.new_from_stream_finish(async_result: PGAsyncResult; error: PPGError): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_new_from_stream_finish(async_result, error);
end;
function TGdkPixbuf.new_from_xpm_data(data: PPgchar): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_new_from_xpm_data(data);
end;
function TGdkPixbuf.from_pixdata(pixdata: PGdkPixdata; copy_pixels: gboolean; error: PPGError): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_from_pixdata(pixdata, copy_pixels, error);
end;
function TGdkPixbuf.get_file_info(filename: Pgchar; width: Pgint; height: Pgint): PGdkPixbufFormat; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_get_file_info(filename, width, height);
end;
function TGdkPixbuf.get_formats: PGSList; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_get_formats();
end;
function TGdkPixbuf.gettext(msgid: Pgchar): Pgchar; cdecl;
begin
Result := nil; //issue #31677 LazGdkPixbuf2.gdk_pixbuf_gettext(msgid);
end;
procedure TGdkPixbuf.new_from_stream_async(stream: PGInputStream; cancellable: PGCancellable; callback: TGAsyncReadyCallback; user_data: gpointer); cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_new_from_stream_async(stream, cancellable, callback, user_data);
end;
procedure TGdkPixbuf.new_from_stream_at_scale_async(stream: PGInputStream; width: gint; height: gint; preserve_aspect_ratio: gboolean; cancellable: PGCancellable; callback: TGAsyncReadyCallback; user_data: gpointer); cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_new_from_stream_at_scale_async(stream, width, height, preserve_aspect_ratio, cancellable, callback, user_data);
end;
function TGdkPixbuf.save_to_stream_finish(async_result: PGAsyncResult; error: PPGError): gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_save_to_stream_finish(async_result, error);
end;
function TGdkPixbuf.add_alpha(substitute_color: gboolean; r: guint8; g: guint8; b: guint8): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_add_alpha(@self, substitute_color, r, g, b);
end;
function TGdkPixbuf.apply_embedded_orientation: PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_apply_embedded_orientation(@self);
end;
procedure TGdkPixbuf.composite(dest: PGdkPixbuf; dest_x: gint; dest_y: gint; dest_width: gint; dest_height: gint; offset_x: gdouble; offset_y: gdouble; scale_x: gdouble; scale_y: gdouble; interp_type: TGdkInterpType; overall_alpha: gint); cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_composite(@self, dest, dest_x, dest_y, dest_width, dest_height, offset_x, offset_y, scale_x, scale_y, interp_type, overall_alpha);
end;
procedure TGdkPixbuf.composite_color(dest: PGdkPixbuf; dest_x: gint; dest_y: gint; dest_width: gint; dest_height: gint; offset_x: gdouble; offset_y: gdouble; scale_x: gdouble; scale_y: gdouble; interp_type: TGdkInterpType; overall_alpha: gint; check_x: gint; check_y: gint; check_size: gint; color1: guint32; color2: guint32); cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_composite_color(@self, dest, dest_x, dest_y, dest_width, dest_height, offset_x, offset_y, scale_x, scale_y, interp_type, overall_alpha, check_x, check_y, check_size, color1, color2);
end;
function TGdkPixbuf.composite_color_simple(dest_width: gint; dest_height: gint; interp_type: TGdkInterpType; overall_alpha: gint; check_size: gint; color1: guint32; color2: guint32): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_composite_color_simple(@self, dest_width, dest_height, interp_type, overall_alpha, check_size, color1, color2);
end;
function TGdkPixbuf.copy: PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_copy(@self);
end;
procedure TGdkPixbuf.copy_area(src_x: gint; src_y: gint; width: gint; height: gint; dest_pixbuf: PGdkPixbuf; dest_x: gint; dest_y: gint); cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_copy_area(@self, src_x, src_y, width, height, dest_pixbuf, dest_x, dest_y);
end;
procedure TGdkPixbuf.fill(pixel: guint32); cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_fill(@self, pixel);
end;
function TGdkPixbuf.flip(horizontal: gboolean): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_flip(@self, horizontal);
end;
function TGdkPixbuf.get_bits_per_sample: gint; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_get_bits_per_sample(@self);
end;
function TGdkPixbuf.get_byte_length: gsize; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_get_byte_length(@self);
end;
function TGdkPixbuf.get_colorspace: TGdkColorspace; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_get_colorspace(@self);
end;
function TGdkPixbuf.get_has_alpha: gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_get_has_alpha(@self);
end;
function TGdkPixbuf.get_height: gint; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_get_height(@self);
end;
function TGdkPixbuf.get_n_channels: gint; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_get_n_channels(@self);
end;
function TGdkPixbuf.get_option(key: Pgchar): Pgchar; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_get_option(@self, key);
end;
function TGdkPixbuf.get_pixels: Pguint8; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_get_pixels(@self);
end;
function TGdkPixbuf.get_pixels_with_length(length: Pguint): Pguint8; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_get_pixels_with_length(@self, length);
end;
function TGdkPixbuf.get_rowstride: gint; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_get_rowstride(@self);
end;
function TGdkPixbuf.get_width: gint; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_get_width(@self);
end;
function TGdkPixbuf.new_subpixbuf(src_x: gint; src_y: gint; width: gint; height: gint): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_new_subpixbuf(@self, src_x, src_y, width, height);
end;
function TGdkPixbuf.rotate_simple(angle: TGdkPixbufRotation): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_rotate_simple(@self, angle);
end;
procedure TGdkPixbuf.saturate_and_pixelate(dest: PGdkPixbuf; saturation: gfloat; pixelate: gboolean); cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_saturate_and_pixelate(@self, dest, saturation, pixelate);
end;
function TGdkPixbuf.save_to_bufferv(buffer: PPgchar; buffer_size: Pgsize; type_: Pgchar; option_keys: PPgchar; option_values: PPgchar; error: PPGError): gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_save_to_bufferv(@self, buffer, buffer_size, type_, option_keys, option_values, error);
end;
function TGdkPixbuf.save_to_callbackv(save_func: TGdkPixbufSaveFunc; user_data: gpointer; type_: Pgchar; option_keys: PPgchar; option_values: PPgchar; error: PPGError): gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_save_to_callbackv(@self, save_func, user_data, type_, option_keys, option_values, error);
end;
function TGdkPixbuf.savev(filename: Pgchar; type_: Pgchar; option_keys: PPgchar; option_values: PPgchar; error: PPGError): gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_savev(@self, filename, type_, option_keys, option_values, error);
end;
procedure TGdkPixbuf.scale(dest: PGdkPixbuf; dest_x: gint; dest_y: gint; dest_width: gint; dest_height: gint; offset_x: gdouble; offset_y: gdouble; scale_x: gdouble; scale_y: gdouble; interp_type: TGdkInterpType); cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_scale(@self, dest, dest_x, dest_y, dest_width, dest_height, offset_x, offset_y, scale_x, scale_y, interp_type);
end;
function TGdkPixbuf.scale_simple(dest_width: gint; dest_height: gint; interp_type: TGdkInterpType): PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_scale_simple(@self, dest_width, dest_height, interp_type);
end;
function TGdkPixdata.deserialize(stream_length: guint; stream: Pguint8; error: PPGError): gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixdata_deserialize(@self, stream_length, stream, error);
end;
function TGdkPixdata.from_pixbuf(pixbuf: PGdkPixbuf; use_rle: gboolean): gpointer; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixdata_from_pixbuf(@self, pixbuf, use_rle);
end;
function TGdkPixdata.serialize(stream_length_p: Pguint): Pguint8; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixdata_serialize(@self, stream_length_p);
end;
function TGdkPixdata.to_csource(name: Pgchar; dump_type: TGdkPixdataDumpType): PGString; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixdata_to_csource(@self, name, dump_type);
end;
function TGdkPixbufFormat.copy: PGdkPixbufFormat; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_format_copy(@self);
end;
procedure TGdkPixbufFormat.free; cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_format_free(@self);
end;
function TGdkPixbufFormat.get_description: Pgchar; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_format_get_description(@self);
end;
function TGdkPixbufFormat.get_extensions: PPgchar; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_format_get_extensions(@self);
end;
function TGdkPixbufFormat.get_license: Pgchar; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_format_get_license(@self);
end;
function TGdkPixbufFormat.get_mime_types: PPgchar; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_format_get_mime_types(@self);
end;
function TGdkPixbufFormat.get_name: Pgchar; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_format_get_name(@self);
end;
function TGdkPixbufFormat.is_disabled: gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_format_is_disabled(@self);
end;
function TGdkPixbufFormat.is_scalable: gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_format_is_scalable(@self);
end;
function TGdkPixbufFormat.is_writable: gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_format_is_writable(@self);
end;
procedure TGdkPixbufFormat.set_disabled(disabled: gboolean); cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_format_set_disabled(@self, disabled);
end;
function TGdkPixbufAnimation.new_from_file(filename: Pgchar; error: PPGError): PGdkPixbufAnimation; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_animation_new_from_file(filename, error);
end;
function TGdkPixbufAnimation.new_from_resource(resource_path: Pgchar; error: PPGError): PGdkPixbufAnimation; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_animation_new_from_resource(resource_path, error);
end;
function TGdkPixbufAnimation.new_from_stream(stream: PGInputStream; cancellable: PGCancellable; error: PPGError): PGdkPixbufAnimation; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_animation_new_from_stream(stream, cancellable, error);
end;
function TGdkPixbufAnimation.new_from_stream_finish(async_result: PGAsyncResult; error: PPGError): PGdkPixbufAnimation; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_animation_new_from_stream_finish(async_result, error);
end;
procedure TGdkPixbufAnimation.new_from_stream_async(stream: PGInputStream; cancellable: PGCancellable; callback: TGAsyncReadyCallback; user_data: gpointer); cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_animation_new_from_stream_async(stream, cancellable, callback, user_data);
end;
function TGdkPixbufAnimation.get_height: gint; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_animation_get_height(@self);
end;
function TGdkPixbufAnimation.get_iter(start_time: PGTimeVal): PGdkPixbufAnimationIter; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_animation_get_iter(@self, start_time);
end;
function TGdkPixbufAnimation.get_static_image: PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_animation_get_static_image(@self);
end;
function TGdkPixbufAnimation.get_width: gint; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_animation_get_width(@self);
end;
function TGdkPixbufAnimation.is_static_image: gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_animation_is_static_image(@self);
end;
function TGdkPixbufAnimationIter.advance(current_time: PGTimeVal): gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_animation_iter_advance(@self, current_time);
end;
function TGdkPixbufAnimationIter.get_delay_time: gint; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_animation_iter_get_delay_time(@self);
end;
function TGdkPixbufAnimationIter.get_pixbuf: PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_animation_iter_get_pixbuf(@self);
end;
function TGdkPixbufAnimationIter.on_currently_loading_frame: gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_animation_iter_on_currently_loading_frame(@self);
end;
function TGdkPixbufLoader.new: PGdkPixbufLoader; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_loader_new();
end;
function TGdkPixbufLoader.new_with_mime_type(mime_type: Pgchar; error: PPGError): PGdkPixbufLoader; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_loader_new_with_mime_type(mime_type, error);
end;
function TGdkPixbufLoader.new_with_type(image_type: Pgchar; error: PPGError): PGdkPixbufLoader; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_loader_new_with_type(image_type, error);
end;
function TGdkPixbufLoader.close(error: PPGError): gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_loader_close(@self, error);
end;
function TGdkPixbufLoader.get_animation: PGdkPixbufAnimation; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_loader_get_animation(@self);
end;
function TGdkPixbufLoader.get_format: PGdkPixbufFormat; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_loader_get_format(@self);
end;
function TGdkPixbufLoader.get_pixbuf: PGdkPixbuf; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_loader_get_pixbuf(@self);
end;
procedure TGdkPixbufLoader.set_size(width: gint; height: gint); cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_loader_set_size(@self, width, height);
end;
function TGdkPixbufLoader.write(buf: Pguint8; count: gsize; error: PPGError): gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_loader_write(@self, buf, count, error);
end;
function TGdkPixbufSimpleAnim.new(width: gint; height: gint; rate: gfloat): PGdkPixbufSimpleAnim; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_simple_anim_new(width, height, rate);
end;
procedure TGdkPixbufSimpleAnim.add_frame(pixbuf: PGdkPixbuf); cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_simple_anim_add_frame(@self, pixbuf);
end;
function TGdkPixbufSimpleAnim.get_loop: gboolean; cdecl;
begin
Result := LazGdkPixbuf2.gdk_pixbuf_simple_anim_get_loop(@self);
end;
procedure TGdkPixbufSimpleAnim.set_loop(loop: gboolean); cdecl;
begin
LazGdkPixbuf2.gdk_pixbuf_simple_anim_set_loop(@self, loop);
end;
end.
|