Gtk.Image Members

The members of Gtk.Image are listed below.

See Also: Inherited members from Gtk.Misc

Public Constructors

Default parameterless constructor.
This constructor is used to create an instance of Gtk.Image containing the Gdk.Pixbuf passed to it.
This constructor is used to create an instance of k.Image containing the Gdk.PixbufAnimation passed to it.
Internal constructor
Loads an image from a System.IO.Stream.
This constructor is used to create an instance of Gtk.Image containing the image stored in the filename whose path is given by the 'filename' parameter.
This constructor is used to create an instance of Gtk.Image containing the Gdk.Image passed to it, masked by the given Gdk.Pixmap.
This constructor is used to create an instance of Gtk.Image containing the Gdk.Pixmap passed to it, masked by the given k.Pixmap.
This constructor is used to create an instance of Gtk.Image containing the Gtk.IconSet and using the Gtk.IconSize passed to it.
Loads an image embedded in an assembly
This constructor is used to create an instance of Gtk.Image containing the Gtk.Stock represented by the string passed to it and with the size represented by the Gtk.IconSize passed.

Protected Constructors

Protected Constructor.

Public Properties

[read-only]
AnimationGdk.PixbufAnimation. Get the animation for this image.
Filestring. The file this image was loaded from.
[write-only]
FromAnimationGdk.PixbufAnimation. Causes the Image object to display the given animation (or display nothing, if you set the animation to null).
[write-only]
FromFilestring. Creates a new Gtk.Image displaying the file filename If the file isn't found or can't be loaded, the resulting Image will display a "broken image" icon. This function never returns null, it always returns a valid Image widget. If the file contains an animation, the image will contain an animation. If you need to detect failures to load the file, use Gdk.Pixbuf to load the file yourself, then create the Image from the pixbuf. (Or for animations, use Gdk.PixbufAnimation). The storage type (Image.StorageType) of the returned image is not defined, it will be whatever is appropriate for displaying the file.
[write-only]
FromPixbufGdk.Pixbuf. Creates a Gtk.Image displaying Gdk.Pixbuf.
[read-only]
static
GTypeGLib.GType. GType Property.
IconNamestring. Documentation for this section has not yet been entered.
IconSetIconSet. Gets or sets the Gtk.Iconset associated to the Image.
IconSizeint. The size (dimension on a side) for a square icon.
ImagePropGdk.Image. Gets or sets the Gdk.Image associated with the Image.
MaskGdk.Pixmap. Mask bitmap to use with Gdk.Image or Gdk.Pixmap
PixbufGdk.Pixbuf. Gets or sets the Gdk.Pixbuf associated to the Image.
PixbufAnimationGdk.PixbufAnimation. Gets or sets the Gdk.PixbufAnimation associated to the Image.
PixelSizeint. Documentation for this section has not yet been entered.
PixmapGdk.Pixmap. Gets or sets the Gdk.Pixmap associated to the Image.
Stockstring. A stock item name, if this is a stock image.
[read-only]
StorageTypeImageType. The type of representation being used by the Gtk.Image to store image data. If the Image has no image data, the return value will be ImageType.Empty.

Public Methods

Clear()
Resets the image to be empty.
Get(Gdk.Image, Gdk.Pixmap)
Gets the Gdk.Image and mask being displayed by the Gtk.Image.
GetIconName(out string, out IconSize)
Documentation for this section has not yet been entered.
GetIconSet(out IconSet, out IconSize)
Get the icon set and size, if this image is using an icon set
GetImage(out Gdk.Image, out Gdk.Pixmap)
Get the image data and mask for an image
GetPixmap(out Gdk.Pixmap, out Gdk.Pixmap)
Get the pixmap and mask for an image
GetStock(out string, out IconSize)
Get the stock item name and size, if this is a stock image
static
LoadFromResource(string) : Image
Loads an image from a resource file.
static
NewFromIconName(string, IconSize) : Image
Documentation for this section has not yet been entered.
Set(Gdk.Image, Gdk.Pixmap)
Same functionality as Image.SetFromImage.
SetFromIconName(string, IconSize)
Documentation for this section has not yet been entered.
SetFromIconSet(IconSet, IconSize)
Creates a Gtk.Image displaying an Gtk.IconSet.
SetFromImage(Gdk.Image, Gdk.Pixmap)
Creates a Gtk.Image widget displaying an image with a mask.
SetFromPixmap(Gdk.Pixmap, Gdk.Pixmap)
Creates a Gtk.Image widget displaying an image with a mask.
SetFromStock(string, IconSize)
Creates a Gtk.Image displaying a stock icon.