File: classGdk_1_1PixbufLoader.html

package info (click to toggle)
gtkmm2.4 1%3A2.12.7-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 97,528 kB
  • ctags: 33,749
  • sloc: xml: 121,487; cpp: 17,100; sh: 8,982; makefile: 1,150; perl: 161
file content (732 lines) | stat: -rw-r--r-- 46,765 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>gtkmm 2.4: Gdk::PixbufLoader Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%">
<tr>
    <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td>
    <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td>
</tr>
</table>
<center>
  <a class="qindex" href="../../index.html">Main Page</a> &nbsp;
  <a href="group__Widgets.html">Widgets</a> &nbsp;
  <a class="qindex" href="namespaces.html"> Namespaces</a> &nbsp;
  <a href="../../tutorial/html/index.html"> Book</a> &nbsp;
</center>
<hr width="100%"/>
<!-- begin main content -->
<div id="content">
<!-- Generated by Doxygen 1.5.1 -->
<div class="nav">
<a class="el" href="namespaceGdk.html">Gdk</a>::<a class="el" href="classGdk_1_1PixbufLoader.html">PixbufLoader</a></div>
<h1>Gdk::PixbufLoader Class Reference</h1><!-- doxytag: class="Gdk::PixbufLoader" --><!-- doxytag: inherits="Glib::Object" -->Inheritance diagram for Gdk::PixbufLoader:<p><center><img src="classGdk_1_1PixbufLoader__inherit__graph.png" border="0" usemap="#Gdk_1_1PixbufLoader__inherit__map" alt="Inheritance graph"></center>
<map name="Gdk_1_1PixbufLoader__inherit__map">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1Object.html" shape="rect" coords="27,161,120,188" alt="">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html" shape="rect" coords="11,84,136,111" alt="">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classsigc_1_1trackable.html" shape="rect" coords="17,7,129,33" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGdk_1_1PixbufLoader-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#9512407e3feac5405a6ac6e12ef23bfd">close</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Informs a pixbuf loader that no further writes with <a class="el" href="classGdk_1_1PixbufLoader.html#90ce41040208597527cf2251631aad45">write()</a> will occur, so that it can free its internal loading structures.  <a href="#9512407e3feac5405a6ac6e12ef23bfd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a>&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#9e69e076ec80ee35b0acaaf6824a3570">get_animation</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Queries the <a class="el" href="classGdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a> that a pixbuf loader is currently creating.  <a href="#9e69e076ec80ee35b0acaaf6824a3570"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGdk_1_1PixbufFormat.html">PixbufFormat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#530e5a4ebb39640e268e7548fc45aae9">get_format</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Obtains the available information about the format of the currently loading image file.  <a href="#530e5a4ebb39640e268e7548fc45aae9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#4aa818981d7690da1fd23a10f5cde21a">get_pixbuf</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Queries the <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> that a pixbuf loader is currently creating.  <a href="#4aa818981d7690da1fd23a10f5cde21a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GdkPixbufLoader*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#815ce842889fe717ecf5b794c81a69a1">gobj</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C GObject.  <a href="#815ce842889fe717ecf5b794c81a69a1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdkPixbufLoader*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#68a692fc8f18fac87659cb9ce4219df6">gobj</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C GObject.  <a href="#68a692fc8f18fac87659cb9ce4219df6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdkPixbufLoader*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#b86dda7f88d82cf1374617ad978466c7">gobj_copy</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.  <a href="#b86dda7f88d82cf1374617ad978466c7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#295cd5abb9e14975a6836f1bb568db58">set_size</a> (int width, int height)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Causes the image to be scaled while it is loaded.  <a href="#295cd5abb9e14975a6836f1bb568db58"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>&lt;void&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#511c0929d1e481cd98faf77bd2d579c6">signal_area_prepared</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This signal is emitted when the pixbuf loader has allocated the pixbuf in the desired size.  <a href="#511c0929d1e481cd98faf77bd2d579c6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy4.html">Glib::SignalProxy4</a>&lt; void,<br>
 int, int, int, int &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#d816c3154d7abe8519633aa2727eb5ba">signal_area_updated</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This signal is emitted when a significant area of the image being loaded has been updated.  <a href="#d816c3154d7abe8519633aa2727eb5ba"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>&lt;void&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#2d72e897acfb0c56eaaf72f046db134f">signal_closed</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This signal is emitted when <a class="el" href="classGdk_1_1PixbufLoader.html#9512407e3feac5405a6ac6e12ef23bfd">close()</a> is called.  <a href="#2d72e897acfb0c56eaaf72f046db134f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy2.html">Glib::SignalProxy2</a>&lt; void,<br>
 int, int &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#26f567bc1828c59a8b8a710115e86b2f">signal_size_prepared</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This signal is emitted when the pixbuf loader has been fed the initial amount of data that is required to figure out the size of the image that it will create.  <a href="#26f567bc1828c59a8b8a710115e86b2f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#90ce41040208597527cf2251631aad45">write</a> (const guint8* buf, gsize count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This will cause a pixbuf loader to parse the next <em>count</em> bytes of an image.  <a href="#90ce41040208597527cf2251631aad45"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#d84541e46f4e048fa8b8bc7eb2774dc0">~PixbufLoader</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1PixbufLoader.html">PixbufLoader</a>&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#5d0a2be7c289b8b83e3ee9c8570b37ff">create</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; image_type, bool mime_type=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a pixbuf loader object for a specific image type.  <a href="#5d0a2be7c289b8b83e3ee9c8570b37ff"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1PixbufLoader.html">PixbufLoader</a>&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#e671a5fd6f63039b761f5d78475a3f92">create</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new pixbuf loader object.  <a href="#e671a5fd6f63039b761f5d78475a3f92"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#291dd42961d273faf6589f7400e30c29">on_area_prepared</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#16df36c7bc304ff980973924133342e7">on_area_updated</a> (int x, int y, int width, int height)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#de3595deb97cad8b7c569f9a66bfe03f">on_closed</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#8bb93227a052da0b9db5c51372a75351">PixbufLoader</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; image_type, bool mime_type=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a pixbuf loader object for a specific image type.  <a href="#8bb93227a052da0b9db5c51372a75351"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#373c249cdae4df4563736169f68915f7">PixbufLoader</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a pixbuf loader object.  <a href="#373c249cdae4df4563736169f68915f7"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1PixbufLoader.html">Gdk::PixbufLoader</a>&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#b9193291650c2cca2b9367be62217339">wrap</a> (GdkPixbufLoader* object, bool take_copy=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object.  <a href="#b9193291650c2cca2b9367be62217339"></a><br></td></tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="d84541e46f4e048fa8b8bc7eb2774dc0"></a><!-- doxytag: member="Gdk::PixbufLoader::~PixbufLoader" ref="d84541e46f4e048fa8b8bc7eb2774dc0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gdk::PixbufLoader::~PixbufLoader           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="373c249cdae4df4563736169f68915f7"></a><!-- doxytag: member="Gdk::PixbufLoader::PixbufLoader" ref="373c249cdae4df4563736169f68915f7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gdk::PixbufLoader::PixbufLoader           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs a pixbuf loader object. 
<p>

</div>
</div><p>
<a class="anchor" name="8bb93227a052da0b9db5c51372a75351"></a><!-- doxytag: member="Gdk::PixbufLoader::PixbufLoader" ref="8bb93227a052da0b9db5c51372a75351" args="(const Glib::ustring &amp;image_type, bool mime_type=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gdk::PixbufLoader::PixbufLoader           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>image_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>mime_type</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [explicit, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs a pixbuf loader object for a specific image type. 
<p>
Constructs a new pixbuf loader object that always attempts to parse image data as if it were an image of type <em>image_type</em>, instead of identifying the type automatically. Useful if you want an error if the image isn't the expected type, for loading image formats that can't be reliably identified by looking at the data, or if the user manually forces a specific type.<p>
The image_type can be one of the types returned by <a class="el" href="classGdk_1_1Pixbuf.html#97b60f81707d0e61f55fa83596a8c1f9">Gdk::Pixbuf::get_formats()</a>, or a MIME type.<p>
Common MIME Types are listed here <a href="http://www.iana.org/assignments/media-types/">http://www.iana.org/assignments/media-types/</a> and here: <a href="http://www.freedesktop.org/Software/shared-mime-info">http://www.freedesktop.org/Software/shared-mime-info</a><p>
The list of non-mime-type image formats depends on what image loaders are installed, but typically "png", "jpeg", "gif", "tiff" and "xpm" are among the supported formats. To obtain the full list of supported image formats, call <a class="el" href="classGdk_1_1PixbufFormat.html#42e1ecac32640c16e309b6481a0e0b2b">PixbufFormat::get_name()</a> on each of the PixbufFormats returned by <a class="el" href="classGdk_1_1Pixbuf.html#97b60f81707d0e61f55fa83596a8c1f9">Gdk::Pixbuf::get_formats()</a>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>image_type</em>&nbsp;</td><td>Name of the image format to be loaded with the image. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mime_type</em>&nbsp;</td><td>If this is true then the image_type is a MIME type. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classGdk_1_1PixbufError.html">Gdk::PixbufError</a></em>&nbsp;</td><td></td></tr>
  </table>
</dl>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="9512407e3feac5405a6ac6e12ef23bfd"></a><!-- doxytag: member="Gdk::PixbufLoader::close" ref="9512407e3feac5405a6ac6e12ef23bfd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::PixbufLoader::close           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Informs a pixbuf loader that no further writes with <a class="el" href="classGdk_1_1PixbufLoader.html#90ce41040208597527cf2251631aad45">write()</a> will occur, so that it can free its internal loading structures. 
<p>
Also, tries to parse any data that hasn't yet been parsed; if the remaining data is partial or corrupt, an error will be returned. If <code>false</code> is returned, <em>error</em> will be set to an error from the Gdk::PIXBUF_ERROR or G::FILE_ERROR domains. If you're just cancelling a load rather than expecting it to be finished, passing <code>0</code> for <em>error</em> to ignore it is reasonable. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>error</em>&nbsp;</td><td>Return location for a <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/group__Markup.html#gg7d0403c76601e7d3ba4641737e094e77">G::Error</a>, or <code>0</code> to ignore errors. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if all image data written so far was successfully passed out via the update_area signal. </dd></dl>

</div>
</div><p>
<a class="anchor" name="5d0a2be7c289b8b83e3ee9c8570b37ff"></a><!-- doxytag: member="Gdk::PixbufLoader::create" ref="5d0a2be7c289b8b83e3ee9c8570b37ff" args="(const Glib::ustring &amp;image_type, bool mime_type=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1PixbufLoader.html">PixbufLoader</a>&gt; Gdk::PixbufLoader::create           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>image_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>mime_type</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs a pixbuf loader object for a specific image type. 
<p>
Constructs a new pixbuf loader object that always attempts to parse image data as if it were an image of type <em>image_type</em>, instead of identifying the type automatically. Useful if you want an error if the image isn't the expected type, for loading image formats that can't be reliably identified by looking at the data, or if the user manually forces a specific type.<p>
The image_type can be one of the types returned by <a class="el" href="classGdk_1_1Pixbuf.html#97b60f81707d0e61f55fa83596a8c1f9">Gdk::Pixbuf::get_formats()</a>, or a MIME type.<p>
Common MIME Types are listed here <a href="http://www.iana.org/assignments/media-types/">http://www.iana.org/assignments/media-types/</a> and here: <a href="http://www.freedesktop.org/Software/shared-mime-info">http://www.freedesktop.org/Software/shared-mime-info</a><p>
The list of non-mime-type image formats depends on what image loaders are installed, but typically "png", "jpeg", "gif", "tiff" and "xpm" are among the supported formats. To obtain the full list of supported image formats, call <a class="el" href="classGdk_1_1PixbufFormat.html#42e1ecac32640c16e309b6481a0e0b2b">PixbufFormat::get_name()</a> on each of the PixbufFormats returned by <a class="el" href="classGdk_1_1Pixbuf.html#97b60f81707d0e61f55fa83596a8c1f9">Gdk::Pixbuf::get_formats()</a>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>image_type</em>&nbsp;</td><td>Name of the image format to be loaded with the image. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mime_type</em>&nbsp;</td><td>If this is true then the image_type is a MIME type. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classGdk_1_1PixbufError.html">Gdk::PixbufError</a></em>&nbsp;</td><td></td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="e671a5fd6f63039b761f5d78475a3f92"></a><!-- doxytag: member="Gdk::PixbufLoader::create" ref="e671a5fd6f63039b761f5d78475a3f92" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1PixbufLoader.html">PixbufLoader</a>&gt; Gdk::PixbufLoader::create           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new pixbuf loader object. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A newly-created pixbuf loader. </dd></dl>

</div>
</div><p>
<a class="anchor" name="9e69e076ec80ee35b0acaaf6824a3570"></a><!-- doxytag: member="Gdk::PixbufLoader::get_animation" ref="9e69e076ec80ee35b0acaaf6824a3570" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a>&gt; Gdk::PixbufLoader::get_animation           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Queries the <a class="el" href="classGdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a> that a pixbuf loader is currently creating. 
<p>
In general it only makes sense to call this function after the "area_prepared" signal has been emitted by the loader. If the loader doesn't have enough bytes yet (hasn't emitted the "area_prepared" signal) this function will return <code>0</code>. <dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a> that the loader is loading, or <code>0</code> if not enough data has been read to determine the information. </dd></dl>

</div>
</div><p>
<a class="anchor" name="530e5a4ebb39640e268e7548fc45aae9"></a><!-- doxytag: member="Gdk::PixbufLoader::get_format" ref="530e5a4ebb39640e268e7548fc45aae9" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGdk_1_1PixbufFormat.html">PixbufFormat</a> Gdk::PixbufLoader::get_format           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Obtains the available information about the format of the currently loading image file. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGdk_1_1PixbufFormat.html">Gdk::PixbufFormat</a> or <code>0</code>. The return value is owned by GdkPixbuf and should not be freed.</dd></dl>
<dl compact><dt><b><a class="el" href="newin2p2s.html#_newin2p2s000059">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>

</div>
</div><p>
<a class="anchor" name="4aa818981d7690da1fd23a10f5cde21a"></a><!-- doxytag: member="Gdk::PixbufLoader::get_pixbuf" ref="4aa818981d7690da1fd23a10f5cde21a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>&gt; Gdk::PixbufLoader::get_pixbuf           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Queries the <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> that a pixbuf loader is currently creating. 
<p>
In general it only makes sense to call this function after the "area_prepared" signal has been emitted by the loader; this means that enough data has been read to know the size of the image that will be allocated. If the loader has not received enough data via <a class="el" href="classGdk_1_1PixbufLoader.html#90ce41040208597527cf2251631aad45">write()</a>, then this function returns <code>0</code>. The returned pixbuf will be the same in all future calls to the loader, so simply calling Glib::object_ref() should be sufficient to continue using it. Additionally, if the loader is an animation, it will return the "static image" of the animation (see <a class="el" href="classGdk_1_1PixbufAnimation.html#4efed6e73f1034242e787b454f485566">Gdk::PixbufAnimation::get_static_image()</a>). <dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> that the loader is creating, or <code>0</code> if not enough data has been read to determine how to create the image buffer. </dd></dl>

</div>
</div><p>
<a class="anchor" name="815ce842889fe717ecf5b794c81a69a1"></a><!-- doxytag: member="Gdk::PixbufLoader::gobj" ref="815ce842889fe717ecf5b794c81a69a1" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GdkPixbufLoader* Gdk::PixbufLoader::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides access to the underlying C GObject. 
<p>

<p>
Reimplemented from <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html#2b7010748d60e770e9e0b3d65c100cf2">Glib::ObjectBase</a>.
</div>
</div><p>
<a class="anchor" name="68a692fc8f18fac87659cb9ce4219df6"></a><!-- doxytag: member="Gdk::PixbufLoader::gobj" ref="68a692fc8f18fac87659cb9ce4219df6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdkPixbufLoader* Gdk::PixbufLoader::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides access to the underlying C GObject. 
<p>

<p>
Reimplemented from <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html#4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.
</div>
</div><p>
<a class="anchor" name="b86dda7f88d82cf1374617ad978466c7"></a><!-- doxytag: member="Gdk::PixbufLoader::gobj_copy" ref="b86dda7f88d82cf1374617ad978466c7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdkPixbufLoader* Gdk::PixbufLoader::gobj_copy           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. 
<p>

</div>
</div><p>
<a class="anchor" name="291dd42961d273faf6589f7400e30c29"></a><!-- doxytag: member="Gdk::PixbufLoader::on_area_prepared" ref="291dd42961d273faf6589f7400e30c29" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gdk::PixbufLoader::on_area_prepared           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="16df36c7bc304ff980973924133342e7"></a><!-- doxytag: member="Gdk::PixbufLoader::on_area_updated" ref="16df36c7bc304ff980973924133342e7" args="(int x, int y, int width, int height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gdk::PixbufLoader::on_area_updated           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>height</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="de3595deb97cad8b7c569f9a66bfe03f"></a><!-- doxytag: member="Gdk::PixbufLoader::on_closed" ref="de3595deb97cad8b7c569f9a66bfe03f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gdk::PixbufLoader::on_closed           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="295cd5abb9e14975a6836f1bb568db58"></a><!-- doxytag: member="Gdk::PixbufLoader::set_size" ref="295cd5abb9e14975a6836f1bb568db58" args="(int width, int height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::PixbufLoader::set_size           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>height</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Causes the image to be scaled while it is loaded. 
<p>
The desired image size can be determined relative to the original size of the image by calling <a class="el" href="classGdk_1_1PixbufLoader.html#295cd5abb9e14975a6836f1bb568db58">set_size()</a> from a signal handler for the size_prepared signal.<p>
Attempts to set the desired image size are ignored after the emission of the size_prepared signal.<p>
<dl compact><dt><b><a class="el" href="newin2p2s.html#_newin2p2s000058">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>The desired width of the image being loaded. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>The desired height of the image being loaded. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="511c0929d1e481cd98faf77bd2d579c6"></a><!-- doxytag: member="Gdk::PixbufLoader::signal_area_prepared" ref="511c0929d1e481cd98faf77bd2d579c6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>&lt; void &gt; Gdk::PixbufLoader::signal_area_prepared           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This signal is emitted when the pixbuf loader has allocated the pixbuf in the desired size. 
<p>
After this signal is emitted, applications can call <a class="el" href="classGdk_1_1PixbufLoader.html#4aa818981d7690da1fd23a10f5cde21a">get_pixbuf()</a> to fetch the partially-loaded pixbuf.<p>
<dl class="user" compact><dt><b>Prototype:</b></dt><dd><code>void on_my_area_prepared()</code> </dd></dl>

</div>
</div><p>
<a class="anchor" name="d816c3154d7abe8519633aa2727eb5ba"></a><!-- doxytag: member="Gdk::PixbufLoader::signal_area_updated" ref="d816c3154d7abe8519633aa2727eb5ba" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy4.html">Glib::SignalProxy4</a>&lt; void,int,int,int,int &gt; Gdk::PixbufLoader::signal_area_updated           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This signal is emitted when a significant area of the image being loaded has been updated. 
<p>
Normally it means that a complete scanline has been read in, but it could be a different area as well. Applications can use this signal to know when to repaint areas of an image that is being loaded.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>X</em>&nbsp;</td><td>offset of upper-left corner of the updated area. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>Y offset of upper-left corner of the updated area. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>Width of updated area. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>Height of updated area.</td></tr>
  </table>
</dl>
<dl class="user" compact><dt><b>Prototype:</b></dt><dd><code>void on_my_area_updated(int x, int y, int width, int height)</code> </dd></dl>

</div>
</div><p>
<a class="anchor" name="2d72e897acfb0c56eaaf72f046db134f"></a><!-- doxytag: member="Gdk::PixbufLoader::signal_closed" ref="2d72e897acfb0c56eaaf72f046db134f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>&lt; void &gt; Gdk::PixbufLoader::signal_closed           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This signal is emitted when <a class="el" href="classGdk_1_1PixbufLoader.html#9512407e3feac5405a6ac6e12ef23bfd">close()</a> is called. 
<p>
It can be used by different parts of an application to receive notification when an image loader is closed by the code that drives it.<p>
<dl class="user" compact><dt><b>Prototype:</b></dt><dd><code>void on_my_closed()</code> </dd></dl>

</div>
</div><p>
<a class="anchor" name="26f567bc1828c59a8b8a710115e86b2f"></a><!-- doxytag: member="Gdk::PixbufLoader::signal_size_prepared" ref="26f567bc1828c59a8b8a710115e86b2f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1SignalProxy2.html">Glib::SignalProxy2</a>&lt; void,int,int &gt; Gdk::PixbufLoader::signal_size_prepared           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This signal is emitted when the pixbuf loader has been fed the initial amount of data that is required to figure out the size of the image that it will create. 
<p>
Applications can call <a class="el" href="classGdk_1_1PixbufLoader.html#295cd5abb9e14975a6836f1bb568db58">set_size()</a> in response to this signal to set the desired size to which the image should be scaled.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>The original width of the image. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>The original height of the image</td></tr>
  </table>
</dl>
<dl class="user" compact><dt><b>Prototype:</b></dt><dd><code>void on_my_size_prepared(int width, int height)</code> </dd></dl>

</div>
</div><p>
<a class="anchor" name="90ce41040208597527cf2251631aad45"></a><!-- doxytag: member="Gdk::PixbufLoader::write" ref="90ce41040208597527cf2251631aad45" args="(const guint8 *buf, gsize count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::PixbufLoader::write           </td>
          <td>(</td>
          <td class="paramtype">const guint8 *&nbsp;</td>
          <td class="paramname"> <em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gsize&nbsp;</td>
          <td class="paramname"> <em>count</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This will cause a pixbuf loader to parse the next <em>count</em> bytes of an image. 
<p>
It will return <code>true</code> if the data was loaded successfully, and <code>false</code> if an error occurred. In the latter case, the loader will be closed, and will not accept further writes. If <code>false</code> is returned, <em>error</em> will be set to an error from the Gdk::PIXBUF_ERROR or G::FILE_ERROR domains. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>buf</em>&nbsp;</td><td>Pointer to image data. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>Length of the <em>buf</em> buffer in bytes. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>error</em>&nbsp;</td><td>Return location for errors. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the write was successful, or <code>false</code> if the loader cannot parse the buffer. </dd></dl>

</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="b9193291650c2cca2b9367be62217339"></a><!-- doxytag: member="Gdk::PixbufLoader::wrap" ref="b9193291650c2cca2b9367be62217339" args="(GdkPixbufLoader *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1PixbufLoader.html">Gdk::PixbufLoader</a>&gt; wrap           </td>
          <td>(</td>
          <td class="paramtype">GdkPixbufLoader *&nbsp;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&nbsp;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&nbsp;</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="pixbufloader_8h.html">pixbufloader.h</a></ul>
</div>
<!-- end main content -->

<hr><address><small>
Generated for gtkmm 2.4 by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.5.1 &copy;&nbsp;1997-2001</small></address>
</body>
</html>