man Gtk2::Image () - Gtk2::Image

NAME

Gtk2::Image

HIERARCHY

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

INTERFACES

  Gtk2::Atk::ImplementorIface

METHODS

widget = Gtk2::Image->new

widget = Gtk2::Image->new_from_animation ($animation)

widget = Gtk2::Image->new_from_file ($filename)

widget = Gtk2::Image->new_from_pixbuf ($pixbuf)

$image->clear

$image->set_from_animation ($animation)

$image->set_from_file ($filename)

$image->set_from_pixbuf ($pixbuf)

$image->set_pixel_size ($pixel_size)

PROPERTIES

'file' (string : readable / writable / private)
Filename to load and display
'icon-name' (string : readable / writable / private)
The name of the icon from the icon theme
'icon-set' (Gtk2::IconSet : readable / writable / private)
Icon set to display
'icon-size' (integer : readable / writable / private)
Symbolic size to use for stock icon, icon set or named icon
'image' (Gtk2::Gdk::Image : readable / writable / private)
A GdkImage to display
'mask' (Gtk2::Gdk::Pixmap : readable / writable / private)
Mask bitmap to use with GdkImage or GdkPixmap
'pixbuf' (Gtk2::Gdk::Pixbuf : readable / writable / private)
A GdkPixbuf to display
'pixbuf-animation' (Gtk2::Gdk::PixbufAnimation : readable / writable / private)
GdkPixbufAnimation to display
'pixel-size' (integer : readable / writable / private)
Pixel size to use for named icon
'pixmap' (Gtk2::Gdk::Pixmap : readable / writable / private)
A GdkPixmap to display
'stock' (string : readable / writable / private)
Stock ID for a stock image to display
'storage-type' (Gtk2::ImageType : readable / private)
The representation being used for image data

ENUMS AND FLAGS

enum Gtk2::IconSize

* 'invalid' / 'GTK_ICON_SIZE_INVALID'
* 'menu' / 'GTK_ICON_SIZE_MENU'
* 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
* 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
* 'button' / 'GTK_ICON_SIZE_BUTTON'
* 'dnd' / 'GTK_ICON_SIZE_DND'
* 'dialog' / 'GTK_ICON_SIZE_DIALOG'

enum Gtk2::ImageType

* 'empty' / 'GTK_IMAGE_EMPTY'
* 'pixmap' / 'GTK_IMAGE_PIXMAP'
* 'image' / 'GTK_IMAGE_IMAGE'
* 'pixbuf' / 'GTK_IMAGE_PIXBUF'
* 'stock' / 'GTK_IMAGE_STOCK'
* 'icon-set' / 'GTK_IMAGE_ICON_SET'
* 'animation' / 'GTK_IMAGE_ANIMATION'
* 'icon-name' / 'GTK_IMAGE_ICON_NAME'

SEE ALSO

Gtk2, Glib::Object, Glib::Object::_Unregistered::GInitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Misc

COPYRIGHT

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

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