=head1 NAME

Gtk2::Image

=head1 HIERARCHY

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

=head1 INTERFACES

  Gtk2::Atk::ImplementorIface


=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<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 : writable)

Filename to load and display

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

The name of the icon from the icon theme

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

Icon set to display

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

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

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

A GdkImage to display

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

Mask bitmap to use with GdkImage or GdkPixmap

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

A GdkPixbuf to display

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

GdkPixbufAnimation to display

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

Pixel size to use for named icon

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

A GdkPixmap to display

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

Stock ID for a stock image to display

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

The representation being used for image data

=back


=head1 ENUMS AND FLAGS

=head2 flags Gtk2::Gdk::EventMask

=over

=item * 'exposure-mask' / 'GDK_EXPOSURE_MASK'

=item * 'pointer-motion-mask' / 'GDK_POINTER_MOTION_MASK'

=item * 'pointer-motion-hint-mask' / 'GDK_POINTER_MOTION_HINT_MASK'

=item * 'button-motion-mask' / 'GDK_BUTTON_MOTION_MASK'

=item * 'button1-motion-mask' / 'GDK_BUTTON1_MOTION_MASK'

=item * 'button2-motion-mask' / 'GDK_BUTTON2_MOTION_MASK'

=item * 'button3-motion-mask' / 'GDK_BUTTON3_MOTION_MASK'

=item * 'button-press-mask' / 'GDK_BUTTON_PRESS_MASK'

=item * 'button-release-mask' / 'GDK_BUTTON_RELEASE_MASK'

=item * 'key-press-mask' / 'GDK_KEY_PRESS_MASK'

=item * 'key-release-mask' / 'GDK_KEY_RELEASE_MASK'

=item * 'enter-notify-mask' / 'GDK_ENTER_NOTIFY_MASK'

=item * 'leave-notify-mask' / 'GDK_LEAVE_NOTIFY_MASK'

=item * 'focus-change-mask' / 'GDK_FOCUS_CHANGE_MASK'

=item * 'structure-mask' / 'GDK_STRUCTURE_MASK'

=item * 'property-change-mask' / 'GDK_PROPERTY_CHANGE_MASK'

=item * 'visibility-notify-mask' / 'GDK_VISIBILITY_NOTIFY_MASK'

=item * 'proximity-in-mask' / 'GDK_PROXIMITY_IN_MASK'

=item * 'proximity-out-mask' / 'GDK_PROXIMITY_OUT_MASK'

=item * 'substructure-mask' / 'GDK_SUBSTRUCTURE_MASK'

=item * 'scroll-mask' / 'GDK_SCROLL_MASK'

=item * 'all-events-mask' / 'GDK_ALL_EVENTS_MASK'

=back



=head1 SEE ALSO

L<Gtk2>, L<Glib::Object>, 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

