File: classGFC_1_1Gtk_1_1Image.html

package info (click to toggle)
gfcui 2.3.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 43,420 kB
  • ctags: 18,023
  • sloc: cpp: 53,967; sh: 31,555; makefile: 1,322; perl: 108
file content (1172 lines) | stat: -rw-r--r-- 64,502 bytes parent folder | download | duplicates (3)
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
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>GTK+ Foundation Classes</title>
  <link href="gfc.css" rel="stylesheet" type="text/css">
  <meta content="The GFC Development Team" name="author">
  <meta content="Core Library Reference Manual" name="description">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(243, 244, 248);"
 alink="#000099" link="#000099" vlink="#990099">
<table style="text-align: left; width: 1227px; height: 117px;"
 border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td
 style="text-align: center; background-color: rgb(255, 255, 255); width: 220px; vertical-align: top;"><img
 alt="GFC Logo" src="../images/gfc.png"
 style="width: 207px; height: 92px;"></td>
      <td
 style="text-align: center; background-color: rgb(87, 107, 152); vertical-align: middle;"><img
 alt="GFC Title Logo" src="../images/gfc-title.png"
 style="width: 418px; height: 76px;"><br>
      </td>
    </tr>
    <tr>
      <td
 style="text-align: center; background-color: rgb(65, 77, 104); vertical-align: middle;"><big><span
 style="color: rgb(255, 255, 153); font-weight: bold;">Reference Manual</span></big><br>
      </td>
      <td
 style="text-align: center; background-color: rgb(148, 164, 200); vertical-align: middle;"><small
 style="font-family: helvetica,arial,sans-serif;"><a
 href="../html/index.html">Main Page</a>&nbsp; |&nbsp; <a
 href="../html/namespaces.html">Namespace List</a>&nbsp; |&nbsp; <a
 href="classes.html">Alphabetical List</a>&nbsp; |&nbsp; <a
 href="../html/annotated.html">Class List</a>&nbsp; |&nbsp; <a
 href="../html/files.html">File List</a></small><br>
      </td>
    </tr>
  </tbody>
</table>
<small> </small>
</body>
</html>
<!-- Generated by Doxygen 1.3.8 -->
<h1>GFC::Gtk::Image Class Reference</h1>A GtkImage C++ wrapper class.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="gtk_2image_8hh-source.html">gfc/gtk/image.hh</a>&gt;</code>
<p>
<p>Inheritance diagram for GFC::Gtk::Image:
<p><center><img src="classGFC_1_1Gtk_1_1Image.png" usemap="#GFC::Gtk::Image_map" border="0" alt=""></center>
<map name="GFC::Gtk::Image_map">
<area href="classGFC_1_1Gtk_1_1Misc.html" alt="GFC::Gtk::Misc" shape="rect" coords="73,280,210,304">
<area href="classGFC_1_1Gtk_1_1Widget.html" alt="GFC::Gtk::Widget" shape="rect" coords="73,224,210,248">
<area href="classGFC_1_1Gtk_1_1Object.html" alt="GFC::Gtk::Object" shape="rect" coords="0,168,137,192">
<area href="classGFC_1_1Atk_1_1Implementor.html" alt="GFC::Atk::Implementor" shape="rect" coords="147,168,284,192">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html" alt="GFC::G::Object" shape="rect" coords="0,112,137,136">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInterface.html" alt="GFC::G::TypeInterface" shape="rect" coords="147,112,284,136">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInstance.html" alt="GFC::G::TypeInstance" shape="rect" coords="0,56,137,80">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInstance.html" alt="GFC::G::TypeInstance" shape="rect" coords="147,56,284,80">
<area doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html" alt="GFC::Trackable" shape="rect" coords="0,0,137,24">
<area doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html" alt="GFC::Trackable" shape="rect" coords="147,0,284,24">
</map>
<a href="classGFC_1_1Gtk_1_1Image-members.html">List of all members.</a><h2>Public Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="anchor" name="z596_0" doxytag="GFC::Gtk::Image::Image" ></a>
<a class="el" href="classGFC_1_1Gtk_1_1Image.html#z596_0">Image</a> ()
<dl class="el"><dd class="mdescRight">Construct an empty <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. <br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Image.html#z596_1">Image</a> (<a class="el" href="classGFC_1_1Gdk_1_1Pixmap.html">Gdk::Pixmap</a> *pixmap, <a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> *mask)
<dl class="el"><dd class="mdescRight">Constructs an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> widget displaying a pixmap with a mask.  <a href="#z596_1"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Image.html#z596_2">Image</a> (<a class="el" href="classGFC_1_1Gdk_1_1Image.html">Gdk::Image</a> *image, <a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> *mask)
<dl class="el"><dd class="mdescRight">Construct an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> widget displaying a image with a mask.  <a href="#z596_2"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Image.html#z596_4">Image</a> (const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;filename)
<dl class="el"><dd class="mdescRight">Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> displaying the file <em>filename</em>.  <a href="#z596_4"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Image.html#z596_5">Image</a> (<a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> *pixbuf)
<dl class="el"><dd class="mdescRight">Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> displaying pixbuf.  <a href="#z596_5"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Image.html#z596_6">Image</a> (const char **xpm_data)
<dl class="el"><dd class="mdescRight">Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> by parsing XPM data in memory.  <a href="#z596_6"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Image.html#z596_7">Image</a> (const <a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> &amp;stock_id, <a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a> size)
<dl class="el"><dd class="mdescRight">Construct an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> displaying a stock icon.  <a href="#z596_7"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Image.html#z596_8">Image</a> (<a class="el" href="classGFC_1_1Gtk_1_1IconSet.html">IconSet</a> *icon_set, <a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a> size)
<dl class="el"><dd class="mdescRight">Construct an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> displaying an icon set.  <a href="#z596_8"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Image.html#z596_9">Image</a> (<a class="el" href="classGFC_1_1Gdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a> &amp;animation)
<dl class="el"><dd class="mdescRight">Constrcut an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> displaying the given animation.  <a href="#z596_9"></a><br></dl><li><a class="anchor" name="z596_10" doxytag="GFC::Gtk::Image::~Image" ></a>
virtual <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z596_10">~Image</a> ()
<dl class="el"><dd class="mdescRight">Destructor. <br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<ul>
<li><a class="anchor" name="z597_0" doxytag="GFC::Gtk::Image::gtk_image" ></a>
GtkImage * <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_0">gtk_image</a> () const
<dl class="el"><dd class="mdescRight">Get a pointer to the GtkImage structure. <br></dl><li><a class="anchor" name="z597_1" doxytag="GFC::Gtk::Image::operator GtkImage *" ></a>
<a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_1">operator GtkImage *</a> () const
<dl class="el"><dd class="mdescRight">Conversion operator; safely converts an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> to a GtkImage pointer. <br></dl><li><a class="el" href="namespaceGFC_1_1Gtk.html#a352">ImageType</a> <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_2">get_storage_type</a> () const
<dl class="el"><dd class="mdescRight">Gets the type of representation being used by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> to store image data.  <a href="#z597_2"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_3">get_pixmap</a> (<a class="el" href="classGFC_1_1Gdk_1_1Pixmap.html">Gdk::Pixmap</a> **pixmap, <a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> **mask) const
<dl class="el"><dd class="mdescRight">Gets the pixmap and mask being displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>.  <a href="#z597_3"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_4">get_image</a> (<a class="el" href="classGFC_1_1Gdk_1_1Image.html">Gdk::Image</a> **gdk_image, <a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> **mask) const
<dl class="el"><dd class="mdescRight">Gets the <a class="el" href="classGFC_1_1Gdk_1_1Image.html">Gdk::Image</a> and mask being displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>.  <a href="#z597_4"></a><br></dl><li><a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> * <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_5">get_pixbuf</a> () const
<dl class="el"><dd class="mdescRight">Gets the <a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> being displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>.  <a href="#z597_5"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_6">get_stock</a> (<a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> *stock_id, <a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a> *size) const
<dl class="el"><dd class="mdescRight">Gets the stock icon name and size being displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>.  <a href="#z597_6"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_7">get_icon_set</a> (<a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>&lt; <a class="el" href="classGFC_1_1Gtk_1_1IconSet.html">IconSet</a> &gt; *icon_set, <a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a> *size) const
<dl class="el"><dd class="mdescRight">Gets the icon set and size being displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>.  <a href="#z597_7"></a><br></dl><li><a class="el" href="classGFC_1_1Gdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a> * <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_8">get_animation</a> () const
<dl class="el"><dd class="mdescRight">Gets the <a class="el" href="classGFC_1_1Gdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a> being displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>.  <a href="#z597_8"></a><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Methods</div></td></tr>
<ul>
<li>void <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z598_0">set</a> (<a class="el" href="classGFC_1_1Gdk_1_1Pixmap.html">Gdk::Pixmap</a> *pixmap, <a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> *mask)
<dl class="el"><dd class="mdescRight">Set the pixmap and mask to be displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>.  <a href="#z598_0"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z598_1">set</a> (<a class="el" href="classGFC_1_1Gdk_1_1Image.html">Gdk::Image</a> *image, <a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> *mask)
<dl class="el"><dd class="mdescRight">Set the image and mask to be displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>.  <a href="#z598_1"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z598_3">set</a> (const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;filename)
<dl class="el"><dd class="mdescRight">Set the file to be displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>.  <a href="#z598_3"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z598_4">set</a> (<a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> *pixbuf)
<dl class="el"><dd class="mdescRight">Set the pixbuf to be displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>.  <a href="#z598_4"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z598_5">set</a> (const <a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> &amp;stock_id, <a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a> size)
<dl class="el"><dd class="mdescRight">Set the stock icon name and size to be displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>.  <a href="#z598_5"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z598_6">set</a> (<a class="el" href="classGFC_1_1Gtk_1_1IconSet.html">Gtk::IconSet</a> *icon_set, <a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a> size)
<dl class="el"><dd class="mdescRight">Set the icon set and icon size to be displayed by the image.  <a href="#z598_6"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z598_7">set</a> (<a class="el" href="classGFC_1_1Gdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a> &amp;animation)
<dl class="el"><dd class="mdescRight">Set the animation to be displayed by the image.  <a href="#z598_7"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z598_8">reset</a> ()
<dl class="el"><dd class="mdescRight">Clears the image and resets its size to zero width and height.  <a href="#z598_8"></a><br></dl></ul>
<h2>Protected Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="el" href="classGFC_1_1Gtk_1_1Image.html#z595_0">Image</a> (GtkImage *image, bool <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html#z143_1">owns_reference</a>=false)
<dl class="el"><dd class="mdescRight">Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> from an existing GtkImage.  <a href="#z595_0"></a><br></dl></ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A GtkImage C++ wrapper class. 
<p>
The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> widget displays an image. Various kinds of objects can be displayed as an image; most typically, you would load a <a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> from a file, and then display that. There's a convenience constructor to do this, used as follows: <div class="fragment"><pre>    Gtk::Image *image = <span class="keyword">new</span> Gtk::Image(<span class="stringliteral">"myfile.png"</span>);
</pre></div><p>
If the file isn't loaded successfully, the image will contain a "broken image" icon similar to that used in many web browsers. If you want to handle errors in loading the file yourself, for example by displaying an error message, then load the image as a <a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a>, then create the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> with the pixbuf, like this: <div class="fragment"><pre>    G::Error error;
    Pointer&lt;Gdk::Pixbuf&gt; pixbuf = <span class="keyword">new</span> Gdk::Pixbuf(<span class="stringliteral">"myfile.png"</span>, &amp;error);
    <span class="keywordflow">if</span> (error.get())
    {
        display_some_message();
    }
    <span class="keywordflow">else</span>
    {
        Gtk::Image *image = <span class="keyword">new</span> Gtk::Image(pixbuf);
    }
</pre></div><p>
A <a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> smart pointer is used because the new pixbuf must be unreferecned. You don't need to hold on to a reference, the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will do that.<p>
The image file may contain an animation, if so the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will display an animation (<a class="el" href="classGFC_1_1Gdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a>) instead of a static image. <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> is a subclass of <a class="el" href="classGFC_1_1Gtk_1_1Misc.html">Misc</a>, which implies that you can align it (center, left, right) and add padding to it, using <a class="el" href="classGFC_1_1Gtk_1_1Misc.html">Misc</a> methods. <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> is a "no window" widget (has no <a class="el" href="classGFC_1_1Gdk_1_1Window.html">Gdk::Window</a> of its own), so by default does not receive events. If you want to receive events on the image, such as button clicks, place the image inside an <a class="el" href="classGFC_1_1Gtk_1_1EventBox.html">EventBox</a>, then connect to the event signals on the event box.<p>
<b>Example:</b> Handling button press events on an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. <div class="fragment"><pre><span class="preprocessor">    #include &lt;gfc/main.h&gt;</span>
<span class="preprocessor">    #include &lt;gfc/gtk/image.h&gt;</span>
<span class="preprocessor">    #include &lt;gfc/gtk/eventbox.h&gt;</span>
<span class="preprocessor">    #include &lt;gfc/gtk/window.h&gt;</span>
<span class="preprocessor">    #include &lt;gfc/bind.h&gt;</span>
   
    <span class="keyword">using</span> <span class="keyword">namespace </span>GFC;
   
    <span class="keyword">class </span>Window : <span class="keyword">public</span> Gtk::Window
    {
    <span class="keyword">protected</span>:
        <span class="keywordtype">bool</span> on_image_button_press(GdkEventButton *event, Gtk::Image *image);
    <span class="keyword">public</span>:
        Window();
    };
   
    Window::Window()
    {
        set_title(<span class="stringliteral">"Basic Window"</span>);
   
        <span class="comment">// Create the event box and image.</span>
        Gtk::EventBox *event_box = <span class="keyword">new</span> Gtk::EventBox;
        Gtk::Image *image = <span class="keyword">new</span> Gtk::Image(<span class="stringliteral">"myfile.png"</span>);
   
        <span class="comment">// If you have more than one image you could bind the new image to the slot, like this.</span>
        event_box-&gt;sig_button_press_event().connect(bind(slot(<span class="keyword">this</span>, &amp;Window::on_image_button_press), image));
   
        <span class="comment">// Add the image to the event box and then the event box to the window.</span>
        event_box-&gt;add(*image);
        add(*event_box);
   
        event_box-&gt;show_all();
        show();
    }
   
    <span class="keywordtype">bool</span>
    Window::on_image_button_press(GdkEventButton *event, Gtk::Image *image)
    {
        g_print (<span class="stringliteral">"Event box clicked at coordinates %.0f,%.0f\n"</span>, event-&gt;x, event-&gt;y);
   
        <span class="comment">// The event was handled so return true to stop any further signal emission.</span>
        <span class="keywordflow">return</span> <span class="keyword">true</span>;
    }
   
    <span class="keywordtype">int</span> main (<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])
    {
        <span class="keyword">using</span> <span class="keyword">namespace </span>Main;
   
        <a class="code" href="namespaceGFC_1_1Main.html#a2">init</a>(&amp;argc, &amp;argv);
   
        Window window;
        window.sig_destroy().connect(slot(&amp;GFC::Main::quit));
   
        <a class="code" href="namespaceGFC_1_1Main.html#a11">run</a>();
        <span class="keywordflow">return</span> 0;
    }
</pre></div><p>
When handling events on the event box, keep in mind that coordinates in the image may be different from event box coordinates due to the alignment and padding settings on the image (see <a class="el" href="classGFC_1_1Gtk_1_1Misc.html">Misc</a>). The simplest way to solve this is to set the alignment to 0.0 (left/top), and set the padding to zero. Then the origin of the image will be the same as the origin of the event box.<p>
Sometimes an application will want to avoid depending on external data files, such as image files. GTK+ comes with a program to avoid this, called gdk-pixbuf-csource. This program allows you to convert an image into a C variable declaration, which can then be passed to the <a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> constructor: <div class="fragment"><pre>    Pixbuf(<span class="keywordtype">int</span> stream_length, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *stream, <span class="keywordtype">bool</span> copy_pixels, G::Error *error = 0);
</pre></div>
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="z595_0" doxytag="GFC::Gtk::Image::Image" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Image::Image           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">GtkImage *&nbsp;</td>
          <td class="mdname" nowrap> <em>image</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>owns_reference</em> = <code>false</code></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [explicit, protected]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> from an existing GtkImage. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>image</em>&nbsp;</td><td>A pointer to a GtkImage. </td></tr>
    <tr><td></td><td valign=top><em>owns_reference</em>&nbsp;</td><td>Set false if the initial reference count is floating, set true if it's not.</td></tr>
  </table>
</dl>
<br>
The <em>image</em> can be a newly created GtkImage or an existing GtkImage (see <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html#z68_0">G::Object::Object</a>).     </td>
  </tr>
</table>
<a class="anchor" name="z596_1" doxytag="GFC::Gtk::Image::Image" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Image::Image           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Pixmap.html">Gdk::Pixmap</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>pixmap</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>mask</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructs an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> widget displaying a pixmap with a mask. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>pixmap</em>&nbsp;</td><td>A <a class="el" href="classGFC_1_1Gdk_1_1Pixmap.html">Gdk::Pixmap</a>, or null. </td></tr>
    <tr><td></td><td valign=top><em>mask</em>&nbsp;</td><td>A <a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a>, or null.</td></tr>
  </table>
</dl>
<br>
The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> does not assume a reference to the pixmap or mask; you still need to unref them if you own references. <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will add its own reference rather than adopting yours.     </td>
  </tr>
</table>
<a class="anchor" name="z596_2" doxytag="GFC::Gtk::Image::Image" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Image::Image           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Image.html">Gdk::Image</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>image</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>mask</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> widget displaying a image with a mask. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>image</em>&nbsp;</td><td>A <a class="el" href="classGFC_1_1Gdk_1_1Image.html">Gdk::Image</a>, or null. </td></tr>
    <tr><td></td><td valign=top><em>mask</em>&nbsp;</td><td>A <a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a>, or null.</td></tr>
  </table>
</dl>
<br>
An <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> is a client-side image buffer in the pixel format of the current display. The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> does not assume a reference to the image or mask; you still need to unref them if you own references. <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will add its own reference rather than adopting yours.     </td>
  </tr>
</table>
<a class="anchor" name="z596_4" doxytag="GFC::Gtk::Image::Image" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Image::Image           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>filename</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [explicit]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> displaying the file <em>filename</em>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>filename</em>&nbsp;</td><td>A filename.</td></tr>
  </table>
</dl>
<br>
If the file isn't found or can't be loaded, the resulting <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will display a "broken image" icon. If the file contains an animation, the image will contain an animation. If you need to detect failures to load the file, use <a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> to load the file yourself, then create the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> from the pixbuf. (Or for animations, use <a class="el" href="classGFC_1_1Gdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a>. The storage type (<a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_2">get_storage_type()</a>) of the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> is not defined, it will be whatever is appropriate for displaying the file.     </td>
  </tr>
</table>
<a class="anchor" name="z596_5" doxytag="GFC::Gtk::Image::Image" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Image::Image           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>pixbuf</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [explicit]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> displaying pixbuf. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>pixbuf</em>&nbsp;</td><td>A <a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a>, or null.</td></tr>
  </table>
</dl>
<br>
The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> does not assume a reference to the pixbuf; you still need to unref it if you own references. <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will add its own reference rather than adopting yours. Note that this method just creates an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> from the pixbuf. The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> created will not react to state changes. Should you want that, you should use an <a class="el" href="classGFC_1_1Gtk_1_1IconSet.html">IconSet</a>.     </td>
  </tr>
</table>
<a class="anchor" name="z596_6" doxytag="GFC::Gtk::Image::Image" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Image::Image           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char **&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>xpm_data</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [explicit]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> by parsing XPM data in memory. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>xpm_data</em>&nbsp;</td><td>A pointer to inline XPM data.</td></tr>
  </table>
</dl>
<br>
The xpm_data is commonly the result of including an XPM file into a program's C source. This method creates a new GdkPixbuf by parsing XPM data in memory and then constructs the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> from the pixbuf.     </td>
  </tr>
</table>
<a class="anchor" name="z596_7" doxytag="GFC::Gtk::Image::Image" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Image::Image           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>stock_id</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>size</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> displaying a stock icon. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>stock_id</em>&nbsp;</td><td>A stock icon ID. </td></tr>
    <tr><td></td><td valign=top><em>size</em>&nbsp;</td><td>A stock icon size.</td></tr>
  </table>
</dl>
<br>
Sample stock icon names are Gtk:StockId::OPEN, Gtk:StockId::EXIT. Sample stock sizes are ICON_SIZE_MENU, ICON_SIZE_SMALL_TOOLBAR. If the stock icon name isn't known, a "broken image" icon will be displayed instead. You can register your own stock icon names, see <a class="el" href="classGFC_1_1Gtk_1_1IconFactory.html#z577_2">Gtk::IconFactory::add_default()</a> and <a class="el" href="classGFC_1_1Gtk_1_1IconFactory.html#z577_0">Gtk::IconFactory::add()</a>.     </td>
  </tr>
</table>
<a class="anchor" name="z596_8" doxytag="GFC::Gtk::Image::Image" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Image::Image           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gtk_1_1IconSet.html">IconSet</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>icon_set</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>size</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> displaying an icon set. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>icon_set</em>&nbsp;</td><td>An <a class="el" href="classGFC_1_1Gtk_1_1IconSet.html">IconSet</a>. </td></tr>
    <tr><td></td><td valign=top><em>size</em>&nbsp;</td><td>A stock icon size.</td></tr>
  </table>
</dl>
<br>
Sample stock sizes are ICON_SIZE_MENU, ICON_SIZE_SMALL_TOOLBAR. Instead of using this method, usually it's better to create an <a class="el" href="classGFC_1_1Gtk_1_1IconFactory.html">IconFactory</a>, put your icon sets in the icon factory, add the icon factory to the list of default factories with <a class="el" href="classGFC_1_1Gtk_1_1IconFactory.html#z577_2">Gtk::IconFactory::add_default()</a>, and then contruct the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> from the stock ID and icon size. This will allow themes to override the icon you ship with your application. The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> does not assume a reference to the icon set; you still need to unref it if you own references. <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will add its own reference rather than adopting yours.     </td>
  </tr>
</table>
<a class="anchor" name="z596_9" doxytag="GFC::Gtk::Image::Image" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Image::Image           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>animation</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [explicit]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constrcut an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> displaying the given animation. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>animation</em>&nbsp;</td><td>An animation.</td></tr>
  </table>
</dl>
<br>
The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> does not assume a reference to the animation; you still need to unref it if you own references. <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will add its own reference rather than adopting yours.     </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="z597_8" doxytag="GFC::Gtk::Image::get_animation" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a>* GFC::Gtk::Image::get_animation           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the <a class="el" href="classGFC_1_1Gdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a> being displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The displayed animation, or null if the image is empty.</dd></dl>
<br>
The storage type of the image must be IMAGE_EMPTY or IMAGE_ANIMATION (see <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_2">get_storage_type()</a>). The caller of this method does not own a reference to the returned animation.     </td>
  </tr>
</table>
<a class="anchor" name="z597_7" doxytag="GFC::Gtk::Image::get_icon_set" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Image::get_icon_set           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>&lt; <a class="el" href="classGFC_1_1Gtk_1_1IconSet.html">IconSet</a> &gt; *&nbsp;</td>
          <td class="mdname" nowrap> <em>icon_set</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>size</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the icon set and size being displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>icon_set</em>&nbsp;</td><td>An <a class="el" href="classGFC_1_1Gtk_1_1IconSet.html">IconSet</a> smart pointer to store a pointer to the <a class="el" href="classGFC_1_1Gtk_1_1IconSet.html">IconSet</a>. </td></tr>
    <tr><td></td><td valign=top><em>size</em>&nbsp;</td><td>The location to store a stock icon size.</td></tr>
  </table>
</dl>
<br>
The storage type of the image must be IMAGE_EMPTY or IMAGE_ICON_SET (see <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_2">get_storage_type()</a>).     </td>
  </tr>
</table>
<a class="anchor" name="z597_4" doxytag="GFC::Gtk::Image::get_image" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Image::get_image           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Image.html">Gdk::Image</a> **&nbsp;</td>
          <td class="mdname" nowrap> <em>gdk_image</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> **&nbsp;</td>
          <td class="mdname" nowrap> <em>mask</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the <a class="el" href="classGFC_1_1Gdk_1_1Image.html">Gdk::Image</a> and mask being displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>gdk_image</em>&nbsp;</td><td>The return location for the <a class="el" href="classGFC_1_1Gdk_1_1Image.html">Gdk::Image</a>. </td></tr>
    <tr><td></td><td valign=top><em>mask</em>&nbsp;</td><td>The return location for the <a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a>.</td></tr>
  </table>
</dl>
<br>
 The storage type of the image must be IMAGE_EMPTY or IMAGE_IMAGE (see <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_2">get_storage_type()</a>). The caller of this method does not own a reference to the returned image and mask.     </td>
  </tr>
</table>
<a class="anchor" name="z597_5" doxytag="GFC::Gtk::Image::get_pixbuf" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a>* GFC::Gtk::Image::get_pixbuf           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the <a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> being displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The displayed pixbuf, or null if the image is empty.</dd></dl>
<br>
The storage type of the image must be IMAGE_EMPTY or IMAGE_PIXBUF (see <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_2">get_storage_type()</a>). The caller of this function does not own a reference to the returned pixbuf.     </td>
  </tr>
</table>
<a class="anchor" name="z597_3" doxytag="GFC::Gtk::Image::get_pixmap" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Image::get_pixmap           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Pixmap.html">Gdk::Pixmap</a> **&nbsp;</td>
          <td class="mdname" nowrap> <em>pixmap</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> **&nbsp;</td>
          <td class="mdname" nowrap> <em>mask</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the pixmap and mask being displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>pixmap</em>&nbsp;</td><td>The location to store the pixmap, or null. </td></tr>
    <tr><td></td><td valign=top><em>mask</em>&nbsp;</td><td>The location to store the mask, or null.</td></tr>
  </table>
</dl>
<br>
The storage type of the image must be IMAGE_EMPTY or IMAGE_PIXMAP (see <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_2">get_storage_type()</a>). The caller of this function does not own a reference to the returned pixmap and mask.     </td>
  </tr>
</table>
<a class="anchor" name="z597_6" doxytag="GFC::Gtk::Image::get_stock" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Image::get_stock           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>stock_id</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>size</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the stock icon name and size being displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>stock_id</em>&nbsp;</td><td>The place to store the stock icon ID. </td></tr>
    <tr><td></td><td valign=top><em>size</em>&nbsp;</td><td>The place to store the stock icon size.</td></tr>
  </table>
</dl>
<br>
The storage type of the image must be IMAGE_EMPTY or IMAGE_STOCK (see <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_2">get_storage_type()</a>). In the version of this function that sets a char* string, the string is owned by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> and should not be freed.     </td>
  </tr>
</table>
<a class="anchor" name="z597_2" doxytag="GFC::Gtk::Image::get_storage_type" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="namespaceGFC_1_1Gtk.html#a352">ImageType</a> GFC::Gtk::Image::get_storage_type           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the type of representation being used by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> to store image data. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The image representation being used.</dd></dl>
<br>
If the GtkImage has no image data, the return value will be IMAGE_EMPTY.     </td>
  </tr>
</table>
<a class="anchor" name="z598_8" doxytag="GFC::Gtk::Image::reset" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Image::reset           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Clears the image and resets its size to zero width and height. 
<p>
After calling this this method the actual image size will be the xpad and ypad values set by calling <a class="el" href="classGFC_1_1Gtk_1_1Misc.html#z668_1">Gtk::Misc::set_padding()</a>.     </td>
  </tr>
</table>
<a class="anchor" name="z598_7" doxytag="GFC::Gtk::Image::set" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Image::set           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>animation</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the animation to be displayed by the image. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>animation</em>&nbsp;</td><td>An animation.</td></tr>
  </table>
</dl>
<br>
The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> does not assume a reference to the animation; you still need to unref it if you own references. <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will add its own reference rather than adopting yours.     </td>
  </tr>
</table>
<a class="anchor" name="z598_6" doxytag="GFC::Gtk::Image::set" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Image::set           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gtk_1_1IconSet.html">Gtk::IconSet</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>icon_set</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>size</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the icon set and icon size to be displayed by the image. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>icon_set</em>&nbsp;</td><td>An <a class="el" href="classGFC_1_1Gtk_1_1IconSet.html">IconSet</a>. </td></tr>
    <tr><td></td><td valign=top><em>size</em>&nbsp;</td><td>A stock icon size.</td></tr>
  </table>
</dl>
<br>
Sample stock sizes are ICON_SIZE_MENU, ICON_SIZE_SMALL_TOOLBAR. Instead of using this method, usually it's better to create an <a class="el" href="classGFC_1_1Gtk_1_1IconFactory.html">IconFactory</a>, put your icon sets in the icon factory, add the icon factory to the list of default factories with <a class="el" href="classGFC_1_1Gtk_1_1IconFactory.html#z577_2">Gtk::IconFactory::add_default()</a>, and then contruct the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> from the stock ID and icon size. This will allow themes to override the icon you ship with your application. The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> does not assume a reference to the icon set; you still need to unref it if you own references. <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will add its own reference rather than adopting yours.     </td>
  </tr>
</table>
<a class="anchor" name="z598_5" doxytag="GFC::Gtk::Image::set" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Image::set           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>stock_id</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gtk.html#a325">IconSize</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>size</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the stock icon name and size to be displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>stock_id</em>&nbsp;</td><td>The stock icon ID. </td></tr>
    <tr><td></td><td valign=top><em>size</em>&nbsp;</td><td>The stock icon size.</td></tr>
  </table>
</dl>
<br>
The storage type of the image must be IMAGE_EMPTY or IMAGE_STOCK (see <a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_2">get_storage_type()</a>).     </td>
  </tr>
</table>
<a class="anchor" name="z598_4" doxytag="GFC::Gtk::Image::set" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Image::set           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>pixbuf</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the pixbuf to be displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>pixbuf</em>&nbsp;</td><td>A <a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a>, or null.</td></tr>
  </table>
</dl>
<br>
The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> does not assume a reference to the pixbuf; you still need to unref it if you own references. <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will add its own reference rather than adopting yours. Note that this method just creates an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> from the pixbuf. The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> created will not react to state changes. Should you want that, you should use an <a class="el" href="classGFC_1_1Gtk_1_1IconSet.html">IconSet</a>.     </td>
  </tr>
</table>
<a class="anchor" name="z598_3" doxytag="GFC::Gtk::Image::set" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Image::set           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>filename</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the file to be displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>filename</em>&nbsp;</td><td>The name of the file to display.</td></tr>
  </table>
</dl>
<br>
If the file isn't found or can't be loaded, the resulting <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will display a "broken image" icon. If the file contains an animation, the image will contain an animation. If you need to detect failures to load the file, use <a class="el" href="classGFC_1_1Gdk_1_1Pixbuf.html">Gdk::Pixbuf</a> to load the file yourself, then create the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> from the pixbuf. (Or for animations, use <a class="el" href="classGFC_1_1Gdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a>. The storage type (<a class="el" href="classGFC_1_1Gtk_1_1Image.html#z597_2">get_storage_type()</a>) of the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> is not defined, it will be whatever is appropriate for displaying the file.     </td>
  </tr>
</table>
<a class="anchor" name="z598_1" doxytag="GFC::Gtk::Image::set" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Image::set           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Image.html">Gdk::Image</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>image</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>mask</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the image and mask to be displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>image</em>&nbsp;</td><td>A <a class="el" href="classGFC_1_1Gdk_1_1Image.html">Gdk::Image</a>, or null. </td></tr>
    <tr><td></td><td valign=top><em>mask</em>&nbsp;</td><td>A <a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a>, or null.</td></tr>
  </table>
</dl>
<br>
An <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> is a client-side image buffer in the pixel format of the current display. The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> does not assume a reference to the image or mask; you still need to unref them if you own references. <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will add its own reference rather than adopting yours.     </td>
  </tr>
</table>
<a class="anchor" name="z598_0" doxytag="GFC::Gtk::Image::set" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Image::set           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Pixmap.html">Gdk::Pixmap</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>pixmap</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>mask</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the pixmap and mask to be displayed by the <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>pixmap</em>&nbsp;</td><td>A <a class="el" href="classGFC_1_1Gdk_1_1Pixmap.html">Gdk::Pixmap</a>, or null. </td></tr>
    <tr><td></td><td valign=top><em>mask</em>&nbsp;</td><td>A <a class="el" href="classGFC_1_1Gdk_1_1Bitmap.html">Gdk::Bitmap</a>, or null.</td></tr>
  </table>
</dl>
<br>
The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> does not assume a reference to the pixmap or mask; you still need to unref them if you own references. <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> will add its own reference rather than adopting yours.     </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="gtk_2image_8hh-source.html">gtk/image.hh</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Aug 24 00:34:40 2004 for GFC-UI by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>