~canonical-dx-team/ubuntu/maverick/gtk+2.0/menuproxy

« back to all changes in this revision

Viewing changes to gdk-pixbuf/GdkPixbuf-2.0.gir

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-06-11 12:19:30 UTC
  • mfrom: (1.11.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 175.
  • Revision ID: james.westby@ubuntu.com-20100611121930-n4pklvkoqdsg12vm
Tags: 2.21.2-1
* New upstream development release:
  + debian/rules,
    debian/libgtk2.0-0.symbols:
    - Update for new API symbols.
  + debian/patches/070_mandatory-relibtoolize.patch:
    - Regenerated for the new version.
  + debian/control.in:
    - Update GLib (build-) dependency to >= 2.25.8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    <constant name="MAJOR" value="2">
54
54
      <type name="int"/>
55
55
    </constant>
56
 
    <constant name="MICRO" value="1">
 
56
    <constant name="MICRO" value="2">
57
57
      <type name="int"/>
58
58
    </constant>
59
59
    <constant name="MINOR" value="21">
205
205
      </constructor>
206
206
      <constructor name="new_from_data"
207
207
                   c:identifier="gdk_pixbuf_new_from_data"
208
 
                   doc="drops to zero, or %NULL if the data should not be freed
209
 
Creates a new #GdkPixbuf out of in-memory image data.  Currently only RGB
 
208
                   doc="Creates a new #GdkPixbuf out of in-memory image data.  Currently only RGB
210
209
images with 8 bits per sample are supported.">
211
210
        <return-value transfer-ownership="full">
212
211
          <type name="Pixbuf" c:type="GdkPixbuf*"/>
238
237
          <parameter name="destroy_fn"
239
238
                     transfer-ownership="none"
240
239
                     scope="call"
241
 
                     closure="8">
 
240
                     closure="8"
 
241
                     doc=" drops to zero, or %NULL if the data should not be freed">
242
242
            <type name="PixbufDestroyNotify" c:type="GdkPixbufDestroyNotify"/>
243
243
          </parameter>
244
244
          <parameter name="destroy_fn_data" transfer-ownership="none">
263
263
      </constructor>
264
264
      <constructor name="new_from_inline"
265
265
                   c:identifier="gdk_pixbuf_new_from_inline"
266
 
                   doc="disable length checks
267
 
Create a #GdkPixbuf from a flat representation that is suitable for
 
266
                   doc="Create a #GdkPixbuf from a flat representation that is suitable for
268
267
storing as inline data in a program. This is useful if you want to
269
268
ship a program with images, but don&apos;t want to depend on any
270
269
external files.
296
295
          <type name="Pixbuf" c:type="GdkPixbuf*"/>
297
296
        </return-value>
298
297
        <parameters>
299
 
          <parameter name="data_length" transfer-ownership="none">
 
298
          <parameter name="data_length"
 
299
                     transfer-ownership="none"
 
300
                     doc=" disable length checks">
300
301
            <type name="int" c:type="gint"/>
301
302
          </parameter>
302
303
          <parameter name="data" transfer-ownership="none">
400
401
          <parameter name="filename" transfer-ownership="none">
401
402
            <type name="utf8" c:type="gchar*"/>
402
403
          </parameter>
403
 
          <parameter name="width" direction="out" transfer-ownership="full">
 
404
          <parameter name="width"
 
405
                     direction="out"
 
406
                     caller-allocates="0"
 
407
                     transfer-ownership="full">
404
408
            <type name="int" c:type="gint*"/>
405
409
          </parameter>
406
 
          <parameter name="height" direction="out" transfer-ownership="full">
 
410
          <parameter name="height"
 
411
                     direction="out"
 
412
                     caller-allocates="0"
 
413
                     transfer-ownership="full">
407
414
            <type name="int" c:type="gint*"/>
408
415
          </parameter>
409
416
        </parameters>
410
417
      </function>
411
418
      <function name="from_pixdata"
412
419
                c:identifier="gdk_pixbuf_from_pixdata"
413
 
                doc="pixel data is always copied.
414
 
Converts a #GdkPixdata to a #GdkPixbuf. If @copy_pixels is %TRUE or
 
420
                doc="Converts a #GdkPixdata to a #GdkPixbuf. If @copy_pixels is %TRUE or
415
421
if the pixel data is run-length-encoded, the pixel data is copied into
416
422
newly-allocated memory; otherwise it is reused."
417
423
                throws="1">
422
428
          <parameter name="pixdata" transfer-ownership="none">
423
429
            <type name="Pixdata" c:type="GdkPixdata*"/>
424
430
          </parameter>
425
 
          <parameter name="copy_pixels" transfer-ownership="none">
 
431
          <parameter name="copy_pixels"
 
432
                     transfer-ownership="none"
 
433
                     doc=" pixel data is always copied.">
426
434
            <type name="boolean" c:type="gboolean"/>
427
435
          </parameter>
428
436
        </parameters>
516
524
      </method>
517
525
      <method name="fill"
518
526
              c:identifier="gdk_pixbuf_fill"
519
 
              doc="(0xffffffff is opaque white, 0x00000000 transparent black)
520
 
Clears a pixbuf to the given RGBA value, converting the RGBA value into
 
527
              doc="Clears a pixbuf to the given RGBA value, converting the RGBA value into
521
528
the pixbuf&apos;s pixel format. The alpha will be ignored if the pixbuf
522
529
doesn&apos;t have an alpha channel.">
523
530
        <return-value transfer-ownership="none">
524
531
          <type name="none" c:type="void"/>
525
532
        </return-value>
526
533
        <parameters>
527
 
          <parameter name="pixel" transfer-ownership="none">
 
534
          <parameter name="pixel"
 
535
                     transfer-ownership="none"
 
536
                     doc=" (0xffffffff is opaque white, 0x00000000 transparent black)">
528
537
            <type name="uint32" c:type="guint32"/>
529
538
          </parameter>
530
539
        </parameters>
633
642
      </method>
634
643
      <method name="save_to_callback"
635
644
              c:identifier="gdk_pixbuf_save_to_callback"
636
 
              doc="the save routine generates.
637
 
Saves pixbuf in format @type by feeding the produced data to a
 
645
              doc="Saves pixbuf in format @type by feeding the produced data to a
638
646
callback. Can be used when you want to store the image to something
639
647
other than a file, such as an in-memory buffer or a socket.
640
648
If @error is set, %FALSE will be returned. Possible errors
649
657
          <parameter name="save_func"
650
658
                     transfer-ownership="none"
651
659
                     scope="call"
652
 
                     closure="2">
 
660
                     closure="2"
 
661
                     doc=" the save routine generates.">
653
662
            <type name="PixbufSaveFunc" c:type="GdkPixbufSaveFunc"/>
654
663
          </parameter>
655
664
          <parameter name="user_data" transfer-ownership="none">
672
681
      </method>
673
682
      <method name="save_to_callbackv"
674
683
              c:identifier="gdk_pixbuf_save_to_callbackv"
675
 
              doc="the save routine generates.
676
 
Saves pixbuf to a callback in format @type, which is currently &quot;jpeg&quot;,
 
684
              doc="Saves pixbuf to a callback in format @type, which is currently &quot;jpeg&quot;,
677
685
&quot;png&quot;, &quot;tiff&quot;, &quot;ico&quot; or &quot;bmp&quot;.  If @error is set, %FALSE will be returned. See
678
686
gdk_pixbuf_save_to_callback () for more details."
679
687
              version="2.4"
685
693
          <parameter name="save_func"
686
694
                     transfer-ownership="none"
687
695
                     scope="call"
688
 
                     closure="2">
 
696
                     closure="2"
 
697
                     doc=" the save routine generates.">
689
698
            <type name="PixbufSaveFunc" c:type="GdkPixbufSaveFunc"/>
690
699
          </parameter>
691
700
          <parameter name="user_data" transfer-ownership="none">
728
737
          </parameter>
729
738
          <parameter name="buffer_size"
730
739
                     direction="out"
 
740
                     caller-allocates="0"
731
741
                     transfer-ownership="full">
732
742
            <type name="size_t" c:type="gsize*"/>
733
743
          </parameter>
764
774
          </parameter>
765
775
          <parameter name="buffer_size"
766
776
                     direction="out"
 
777
                     caller-allocates="0"
767
778
                     transfer-ownership="full">
768
779
            <type name="size_t" c:type="gsize*"/>
769
780
          </parameter>
809
820
      </method>
810
821
      <method name="add_alpha"
811
822
              c:identifier="gdk_pixbuf_add_alpha"
812
 
              doc="is %FALSE, then the (@r, @g, @b) arguments will be ignored.
813
 
Takes an existing pixbuf and adds an alpha channel to it.
 
823
              doc="Takes an existing pixbuf and adds an alpha channel to it.
814
824
If the existing pixbuf already had an alpha channel, the channel
815
825
values are copied from the original; otherwise, the alpha channel
816
826
is initialized to 255 (full opacity).
821
831
          <type name="Pixbuf" c:type="GdkPixbuf*"/>
822
832
        </return-value>
823
833
        <parameters>
824
 
          <parameter name="substitute_color" transfer-ownership="none">
 
834
          <parameter name="substitute_color"
 
835
                     transfer-ownership="none"
 
836
                     doc=" is %FALSE, then the (@r, @g, @b) arguments will be ignored.">
825
837
            <type name="boolean" c:type="gboolean"/>
826
838
          </parameter>
827
839
          <parameter name="r" transfer-ownership="none">
1286
1298
          <type name="none" c:type="void"/>
1287
1299
        </return-value>
1288
1300
        <parameters>
1289
 
          <parameter name="width" direction="out" transfer-ownership="full">
 
1301
          <parameter name="width"
 
1302
                     direction="out"
 
1303
                     caller-allocates="0"
 
1304
                     transfer-ownership="full">
1290
1305
            <type name="int" c:type="int*"/>
1291
1306
          </parameter>
1292
 
          <parameter name="height" direction="out" transfer-ownership="full">
 
1307
          <parameter name="height"
 
1308
                     direction="out"
 
1309
                     caller-allocates="0"
 
1310
                     transfer-ownership="full">
1293
1311
            <type name="int" c:type="int*"/>
1294
1312
          </parameter>
1295
1313
        </parameters>
1439
1457
            <parameter name="anim" transfer-ownership="none">
1440
1458
              <type name="PixbufAnimation" c:type="GdkPixbufAnimation*"/>
1441
1459
            </parameter>
1442
 
            <parameter name="width" direction="out" transfer-ownership="full">
 
1460
            <parameter name="width"
 
1461
                       direction="out"
 
1462
                       caller-allocates="0"
 
1463
                       transfer-ownership="full">
1443
1464
              <type name="int" c:type="int*"/>
1444
1465
            </parameter>
1445
 
            <parameter name="height" direction="out" transfer-ownership="full">
 
1466
            <parameter name="height"
 
1467
                       direction="out"
 
1468
                       caller-allocates="0"
 
1469
                       transfer-ownership="full">
1446
1470
              <type name="int" c:type="int*"/>
1447
1471
            </parameter>
1448
1472
          </parameters>
2177
2201
        <type name="none" c:type="void"/>
2178
2202
      </return-value>
2179
2203
      <parameters>
2180
 
        <parameter name="width" direction="out" transfer-ownership="full">
 
2204
        <parameter name="width"
 
2205
                   direction="out"
 
2206
                   caller-allocates="0"
 
2207
                   transfer-ownership="full">
2181
2208
          <type name="int" c:type="gint*"/>
2182
2209
        </parameter>
2183
 
        <parameter name="height" direction="out" transfer-ownership="full">
 
2210
        <parameter name="height"
 
2211
                   direction="out"
 
2212
                   caller-allocates="0"
 
2213
                   transfer-ownership="full">
2184
2214
          <type name="int" c:type="gint*"/>
2185
2215
        </parameter>
2186
2216
        <parameter name="user_data" transfer-ownership="none" closure="2">
2350
2380
    </class>
2351
2381
    <record name="Pixdata"
2352
2382
            c:type="GdkPixdata"
2353
 
            doc="#GDK_PIXBUF_MAGIC_NUMBER here.
2354
 
#GDK_PIXDATA_HEADER_LENGTH + length of @pixel_data.
2355
 
encoding, in a #GdkPixdataType.
2356
 
and @rowstride.
2357
 
A #GdkPixdata contains pixbuf information in a form suitable for
 
2383
            doc="A #GdkPixdata contains pixbuf information in a form suitable for
2358
2384
serialization and streaming.">
2359
2385
      <field name="magic" writable="1">
2360
2386
        <type name="uint32" c:type="guint32"/>
2392
2418
        <parameters>
2393
2419
          <parameter name="stream_length_p"
2394
2420
                     direction="out"
 
2421
                     caller-allocates="0"
2395
2422
                     transfer-ownership="full">
2396
2423
            <type name="uint" c:type="guint*"/>
2397
2424
          </parameter>
2442
2469
      </method>
2443
2470
      <method name="to_csource"
2444
2471
              c:identifier="gdk_pixdata_to_csource"
2445
 
              doc="source to be generated.
2446
 
Generates C source code suitable for compiling images directly
 
2472
              doc="Generates C source code suitable for compiling images directly
2447
2473
into programs.
2448
2474
GTK+ ships with a program called &lt;command&gt;gdk-pixbuf-csource&lt;/command&gt;
2449
2475
which offers a command line interface to this function.
2455
2481
          <parameter name="name" transfer-ownership="none">
2456
2482
            <type name="utf8" c:type="gchar*"/>
2457
2483
          </parameter>
2458
 
          <parameter name="dump_type" transfer-ownership="none">
 
2484
          <parameter name="dump_type"
 
2485
                     transfer-ownership="none"
 
2486
                     doc=" source to be generated.">
2459
2487
            <type name="PixdataDumpType" c:type="GdkPixdataDumpType"/>
2460
2488
          </parameter>
2461
2489
        </parameters>
2482
2510
              c:identifier="GDK_PIXDATA_DUMP_RLE_DECODER"/>
2483
2511
    </bitfield>
2484
2512
    <bitfield name="PixdataType"
2485
 
              doc="and an alpha value.
2486
 
be up to 127 bytes long; their length is stored in a single byte
2487
 
preceding the pixel data for the run. If a run is constant, its length
2488
 
byte has the high bit set and the pixel data consists of a single pixel
2489
 
which must be repeated.
2490
 
An enumeration containing three sets of flags for a #GdkPixdata struct:
 
2513
              doc="An enumeration containing three sets of flags for a #GdkPixdata struct:
2491
2514
one for the used colorspace, one for the width of the samples and one
2492
2515
for the encoding of the pixel data."
2493
2516
              c:type="GdkPixdataType">
2516
2539
              value="251658240"
2517
2540
              c:identifier="GDK_PIXDATA_ENCODING_MASK"/>
2518
2541
    </bitfield>
2519
 
    <constant name="VERSION" value="2.21.1">
 
2542
    <constant name="VERSION" value="2.21.2">
2520
2543
      <type name="utf8"/>
2521
2544
    </constant>
2522
2545
  </namespace>