1Gtk2::Image(3) User Contributed Perl Documentation Gtk2::Image(3)
2
3
4
6 Gtk2::Image
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Misc
14 +----Gtk2::Image
15
17 Glib::Object::_Unregistered::AtkImplementorIface
18
20 widget = Gtk2::Image->new
21
22 widget = Gtk2::Image->new_from_animation ($animation)
23
24 * $animation (Gtk2::Gdk::PixbufAnimation)
25
26 widget = Gtk2::Image->new_from_file ($filename)
27
28 * $filename (localized file name or undef)
29
30 widget = Gtk2::Image->new_from_icon_name ($icon_name, $size)
31
32 * $icon_name (string)
33 * $size (Gtk2::IconSize)
34
35 widget = Gtk2::Image->new_from_icon_set ($icon_set, $size)
36
37 * $icon_set (Gtk2::IconSet)
38 * $size (Gtk2::IconSize)
39
40 widget = Gtk2::Image->new_from_image ($image, $mask)
41
42 * $image (Gtk2::Gdk::Image or undef)
43 * $mask (Gtk2::Gdk::Bitmap or undef)
44
45 widget = Gtk2::Image->new_from_pixbuf ($pixbuf)
46
47 * $pixbuf (Gtk2::Gdk::Pixbuf or undef)
48
49 widget = Gtk2::Image->new_from_pixmap ($pixmap, $mask)
50
51 * $pixmap (Gtk2::Gdk::Pixmap or undef)
52 * $mask (Gtk2::Gdk::Bitmap or undef)
53
54 widget = Gtk2::Image->new_from_stock ($stock_id, $size)
55
56 * $stock_id (string)
57 * $size (Gtk2::IconSize)
58
59 pixbufanimation = $image->get_animation
60
61 $image->clear
62
63 $image->set_from_animation ($animation)
64
65 * $animation (Gtk2::Gdk::PixbufAnimation)
66
67 $image->set_from_file ($filename)
68
69 * $filename (localized file name or undef)
70
71 $image->set_from_icon_name ($icon_name, $size)
72
73 * $icon_name (string)
74 * $size (Gtk2::IconSize)
75
76 $image->set_from_icon_set ($icon_set, $size)
77
78 * $icon_set (Gtk2::IconSet)
79 * $size (Gtk2::IconSize)
80
81 $image->set_from_image ($gdk_image, $mask)
82
83 * $gdk_image (Gtk2::Gdk::Image or undef)
84 * $mask (Gtk2::Gdk::Bitmap or undef)
85
86 $image->set_from_pixbuf ($pixbuf)
87
88 * $pixbuf (Gtk2::Gdk::Pixbuf or undef)
89
90 $image->set_from_pixmap ($pixmap, $mask)
91
92 * $pixmap (Gtk2::Gdk::Pixmap or undef)
93 * $mask (Gtk2::Gdk::Bitmap or undef)
94
95 $image->set_from_stock ($stock_id, $size)
96
97 * $stock_id (string)
98 * $size (Gtk2::IconSize)
99
100 (icon_name, size) = $image->get_icon_name
101
102 (icon_set, size) = $image->get_icon_set
103
104 (gdk_image, mask) = $image->get_image
105
106 pixbuf = $image->get_pixbuf
107
108 integer = $image->get_pixel_size
109
110 $image->set_pixel_size ($pixel_size)
111
112 * $pixel_size (integer)
113
114 (pixmap, mask) = $image->get_pixmap
115
116 (stock_id, icon_size) = $image->get_stock
117
118 imagetype = $image->get_storage_type
119
121 'file' (string : readable / writable / private)
122 Filename to load and display
123
124 'icon-name' (string : readable / writable / private)
125 The name of the icon from the icon theme
126
127 'icon-set' (Gtk2::IconSet : readable / writable / private)
128 Icon set to display
129
130 'icon-size' (integer : readable / writable / private)
131 Symbolic size to use for stock icon, icon set or named icon
132
133 'image' (Gtk2::Gdk::Image : readable / writable / private)
134 A GdkImage to display
135
136 'mask' (Gtk2::Gdk::Pixmap : readable / writable / private)
137 Mask bitmap to use with GdkImage or GdkPixmap
138
139 'pixbuf' (Gtk2::Gdk::Pixbuf : readable / writable / private)
140 A GdkPixbuf to display
141
142 'pixbuf-animation' (Gtk2::Gdk::PixbufAnimation : readable / writable /
143 private)
144 GdkPixbufAnimation to display
145
146 'pixel-size' (integer : readable / writable / private)
147 Pixel size to use for named icon
148
149 'pixmap' (Gtk2::Gdk::Pixmap : readable / writable / private)
150 A GdkPixmap to display
151
152 'stock' (string : readable / writable / private)
153 Stock ID for a stock image to display
154
155 'storage-type' (Gtk2::ImageType : readable / private)
156 The representation being used for image data
157
159 enum Gtk2::IconSize
160
161 * 'invalid' / 'GTK_ICON_SIZE_INVALID'
162 * 'menu' / 'GTK_ICON_SIZE_MENU'
163 * 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
164 * 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
165 * 'button' / 'GTK_ICON_SIZE_BUTTON'
166 * 'dnd' / 'GTK_ICON_SIZE_DND'
167 * 'dialog' / 'GTK_ICON_SIZE_DIALOG'
168
169 enum Gtk2::ImageType
170
171 * 'empty' / 'GTK_IMAGE_EMPTY'
172 * 'pixmap' / 'GTK_IMAGE_PIXMAP'
173 * 'image' / 'GTK_IMAGE_IMAGE'
174 * 'pixbuf' / 'GTK_IMAGE_PIXBUF'
175 * 'stock' / 'GTK_IMAGE_STOCK'
176 * 'icon-set' / 'GTK_IMAGE_ICON_SET'
177 * 'animation' / 'GTK_IMAGE_ANIMATION'
178 * 'icon-name' / 'GTK_IMAGE_ICON_NAME'
179
181 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
182 Gtk2::Misc
183
185 Copyright (C) 2003-2007 by the gtk2-perl team.
186
187 This software is licensed under the LGPL. See Gtk2 for a full notice.
188
189
190
191perl v5.8.8 2007-03-18 Gtk2::Image(3)