Image Class Reference

Inheritance diagram for Image:

Misc List of all members.

Detailed Description

A widget to load, contain and display an image.


Public Member Functions

 this ()
 creates a new image
 this (Pixmap pixmap, Bitmap mask)
 creates a new image from a pixmap and a mask
 this (Image image, Bitmap mask, bit dummy)
 creates a new image from and image and a mask
 this (char[] filename)
 Creates a new image from a file.
 this (Pixbuf pixbuf)
 creates a new image from a pixbuf
 this (Stock stockID, IconSize size)
 creates a new image from the stock of images (same as the stock of buttons...)
 this (GtkIconSet *icon_set, IconSize size)
 Creates a new Image from and icon set with a size.
 this (GdkPixbufAnimation *animation, bit dummy)
 Create a new Image from an animation.
void setFromPixmap (Pixmap pixmap, Bitmap mask)
 Sets this image from a pixmap and a mask.
void setFromImage (GdkImage *gdk_image, Bitmap mask)
 setFromImage
void setFromFile (char[] filename)
 setFromFile
void setFromPixbuf (Pixbuf pixbuf)
 setFromPixbuf
void setFromStock (Stock stockID, IconSize size)
 setFromStock
void setFromIconSet (GtkIconSet *icon_set, IconSize size)
 setFromIconSet
void setFromAnimation (GdkPixbufAnimation *animation)
 setFromAnimation
GtkImageType getStorageType ()
 getStorageType
void getPixmap (GdkPixmap **pixmap, GdkBitmap **mask)
 getPixmap
void getImage (GdkImage **gdk_image, GdkBitmap **mask)
 getImage
Pixbuf getPixbuf ()
void getStock (gchar **stock_id, IconSize *size)
void getIconSet (GtkIconSet **icon_set, IconSize *size)
 getIconSet
GdkPixbufAnimation * getAnimation ()
 getAnimation

Static Public Member Functions

GType getType ()
 Gets this class type.


Member Function Documentation

GdkPixbufAnimation* Image.getAnimation  ) 
 

getAnimation

Returns:

void Image.getIconSet GtkIconSet **  icon_set,
IconSize *  size
 

getIconSet

Parameters:
icon_set 
size 

void Image.getImage GdkImage **  gdk_image,
GdkBitmap **  mask
 

getImage

Parameters:
gdk_image 
mask 

Pixbuf Image.getPixbuf  ) 
 

Returns:

void Image.getPixmap GdkPixmap **  pixmap,
GdkBitmap **  mask
 

getPixmap

Parameters:
pixmap 
mask 

void Image.getStock gchar **  stock_id,
IconSize *  size
 

Parameters:
stock_id 
size 

GtkImageType Image.getStorageType  ) 
 

getStorageType

Returns:

GType Image.getType  )  [static]
 

Gets this class type.

Returns:
this class type

Reimplemented from Misc.

void Image.setFromAnimation GdkPixbufAnimation *  animation  ) 
 

setFromAnimation

Parameters:
animation 

void Image.setFromFile char[]  filename  ) 
 

setFromFile

Parameters:
filename 

void Image.setFromIconSet GtkIconSet *  icon_set,
IconSize  size
 

setFromIconSet

Parameters:
icon_set 
size 

void Image.setFromImage GdkImage *  gdk_image,
Bitmap  mask
 

setFromImage

Parameters:
gdk_image 
mask 

void Image.setFromPixbuf Pixbuf  pixbuf  ) 
 

setFromPixbuf

Parameters:
pixbuf 

void Image.setFromPixmap Pixmap  pixmap,
Bitmap  mask
 

Sets this image from a pixmap and a mask.

Parameters:
pixmap 
mask 

void Image.setFromStock Stock  stockID,
IconSize  size
 

setFromStock

Parameters:
stockID 
size 

Image.this GdkPixbufAnimation *  animation,
bit  dummy
 

Create a new Image from an animation.

Parameters:
animation 
dummy not used

Image.this GtkIconSet *  icon_set,
IconSize  size
 

Creates a new Image from and icon set with a size.

Parameters:
icon_set 
size 

Image.this Stock  stockID,
IconSize  size
 

creates a new image from the stock of images (same as the stock of buttons...)

Parameters:
stockID the stockID
size the icon size

Image.this Pixbuf  pixbuf  ) 
 

creates a new image from a pixbuf

Image.this char[]  filename  ) 
 

Creates a new image from a file.

Parameters:
filename 

Image.this Image  image,
Bitmap  mask,
bit  dummy
 

creates a new image from and image and a mask

Image.this Pixmap  pixmap,
Bitmap  mask
 

creates a new image from a pixmap and a mask

Image.this  ) 
 

creates a new image


SourceForge.net Logo DSource.org Logo digitalmars.com Logo