=head1 NAME

Gtk2::Image

=head1 HIERARCHY

  Glib::Object
  +----Glib::Object::_Unregistered::GInitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Misc
                      +----Gtk2::Image

=head1 INTERFACES

  Glib::Object::_Unregistered::AtkImplementorIface


=head1 METHODS

=head2 widget = Gtk2::Image-E<gt>B<new> 

=over

=back

=head2 widget = Gtk2::Image-E<gt>B<new_from_animation> ($animation)

=over

=over

=item * $animation (Gtk2::Gdk::PixbufAnimation) 

=back

=back

=head2 widget = Gtk2::Image-E<gt>B<new_from_file> ($filename)

=over

=over

=item * $filename (localized file name or undef) 

=back

=back

=head2 widget = Gtk2::Image-E<gt>B<new_from_icon_name> ($icon_name, $size)

=over

=over

=item * $icon_name (string) 

=item * $size (Gtk2::IconSize) 

=back

=back

=head2 widget = Gtk2::Image-E<gt>B<new_from_icon_set> ($icon_set, $size)

=over

=over

=item * $icon_set (Gtk2::IconSet) 

=item * $size (Gtk2::IconSize) 

=back

=back

=head2 widget = Gtk2::Image-E<gt>B<new_from_image> ($image, $mask)

=over

=over

=item * $image (Gtk2::Gdk::Image or undef) 

=item * $mask (Gtk2::Gdk::Bitmap or undef) 

=back

=back

=head2 widget = Gtk2::Image-E<gt>B<new_from_pixbuf> ($pixbuf)

=over

=over

=item * $pixbuf (Gtk2::Gdk::Pixbuf or undef) 

=back

=back

=head2 widget = Gtk2::Image-E<gt>B<new_from_pixmap> ($pixmap, $mask)

=over

=over

=item * $pixmap (Gtk2::Gdk::Pixmap or undef) 

=item * $mask (Gtk2::Gdk::Bitmap or undef) 

=back

=back

=head2 widget = Gtk2::Image-E<gt>B<new_from_stock> ($stock_id, $size)

=over

=over

=item * $stock_id (string) 

=item * $size (Gtk2::IconSize) 

=back

=back

=head2 pixbufanimation = $image-E<gt>B<get_animation> 

=over

=back

=head2 $image-E<gt>B<clear> 

=over

=back

=head2 $image-E<gt>B<set_from_animation> ($animation)

=over

=over

=item * $animation (Gtk2::Gdk::PixbufAnimation) 

=back

=back

=head2 $image-E<gt>B<set_from_file> ($filename)

=over

=over

=item * $filename (localized file name or undef) 

=back

=back

=head2 $image-E<gt>B<set_from_icon_name> ($icon_name, $size)

=over

=over

=item * $icon_name (string) 

=item * $size (Gtk2::IconSize) 

=back

=back

=head2 $image-E<gt>B<set_from_icon_set> ($icon_set, $size)

=over

=over

=item * $icon_set (Gtk2::IconSet) 

=item * $size (Gtk2::IconSize) 

=back

=back

=head2 $image-E<gt>B<set_from_image> ($gdk_image, $mask)

=over

=over

=item * $gdk_image (Gtk2::Gdk::Image or undef) 

=item * $mask (Gtk2::Gdk::Bitmap or undef) 

=back

=back

=head2 $image-E<gt>B<set_from_pixbuf> ($pixbuf)

=over

=over

=item * $pixbuf (Gtk2::Gdk::Pixbuf or undef) 

=back

=back

=head2 $image-E<gt>B<set_from_pixmap> ($pixmap, $mask)

=over

=over

=item * $pixmap (Gtk2::Gdk::Pixmap or undef) 

=item * $mask (Gtk2::Gdk::Bitmap or undef) 

=back

=back

=head2 $image-E<gt>B<set_from_stock> ($stock_id, $size)

=over

=over

=item * $stock_id (string) 

=item * $size (Gtk2::IconSize) 

=back

=back

=head2 (icon_name, size) = $image-E<gt>B<get_icon_name> 

=over

=back

=head2 (icon_set, size) = $image-E<gt>B<get_icon_set> 

=over

=back

=head2 (gdk_image, mask) = $image-E<gt>B<get_image> 

=over

=back

=head2 pixbuf = $image-E<gt>B<get_pixbuf> 

=over

=back

=head2 integer = $image-E<gt>B<get_pixel_size> 

=over

=back

=head2 $image-E<gt>B<set_pixel_size> ($pixel_size)

=over

=over

=item * $pixel_size (integer) 

=back

=back

=head2 (pixmap, mask) = $image-E<gt>B<get_pixmap> 

=over

=back

=head2 (stock_id, icon_size) = $image->B<get_stock>

=over



=back

=head2 imagetype = $image-E<gt>B<get_storage_type> 

=over

=back


=head1 PROPERTIES

=over

=item 'file' (string : readable / writable / private)

Filename to load and display

=item 'icon-name' (string : readable / writable / private)

The name of the icon from the icon theme

=item 'icon-set' (Gtk2::IconSet : readable / writable / private)

Icon set to display

=item 'icon-size' (integer : readable / writable / private)

Symbolic size to use for stock icon, icon set or named icon

=item 'image' (Gtk2::Gdk::Image : readable / writable / private)

A GdkImage to display

=item 'mask' (Gtk2::Gdk::Pixmap : readable / writable / private)

Mask bitmap to use with GdkImage or GdkPixmap

=item 'pixbuf' (Gtk2::Gdk::Pixbuf : readable / writable / private)

A GdkPixbuf to display

=item 'pixbuf-animation' (Gtk2::Gdk::PixbufAnimation : readable / writable / private)

GdkPixbufAnimation to display

=item 'pixel-size' (integer : readable / writable / private)

Pixel size to use for named icon

=item 'pixmap' (Gtk2::Gdk::Pixmap : readable / writable / private)

A GdkPixmap to display

=item 'stock' (string : readable / writable / private)

Stock ID for a stock image to display

=item 'storage-type' (Gtk2::ImageType : readable / private)

The representation being used for image data

=back


=head1 ENUMS AND FLAGS

=head2 enum Gtk2::IconSize

=over

=item * 'invalid' / 'GTK_ICON_SIZE_INVALID'

=item * 'menu' / 'GTK_ICON_SIZE_MENU'

=item * 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'

=item * 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'

=item * 'button' / 'GTK_ICON_SIZE_BUTTON'

=item * 'dnd' / 'GTK_ICON_SIZE_DND'

=item * 'dialog' / 'GTK_ICON_SIZE_DIALOG'

=back


=head2 enum Gtk2::ImageType

=over

=item * 'empty' / 'GTK_IMAGE_EMPTY'

=item * 'pixmap' / 'GTK_IMAGE_PIXMAP'

=item * 'image' / 'GTK_IMAGE_IMAGE'

=item * 'pixbuf' / 'GTK_IMAGE_PIXBUF'

=item * 'stock' / 'GTK_IMAGE_STOCK'

=item * 'icon-set' / 'GTK_IMAGE_ICON_SET'

=item * 'animation' / 'GTK_IMAGE_ANIMATION'

=item * 'icon-name' / 'GTK_IMAGE_ICON_NAME'

=back



=head1 SEE ALSO

L<Gtk2>, L<Glib::Object>, L<Glib::Object::_Unregistered::GInitiallyUnowned>, L<Gtk2::Object>, L<Gtk2::Widget>, L<Gtk2::Misc>

=head1 COPYRIGHT

Copyright (C) 2003-2005 by the gtk2-perl team.

This software is licensed under the LGPL.  See L<Gtk2> for a full notice.


=cut

