Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.Image

Class Image

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Misc.Misc
                                dui.Image.Image

Implemented interfaces:


public class

Image



A widget to load, contain and display an image.

Constructor Summary
package (GtkWidget* gtkWidget)
          
()
          creates a new image
(Pixmap pixmap, Bitmap mask)
          creates a new image from a pixmap and a mask
(Image image, Bitmap mask, bit dummy)
          creates a new image from and image and a mask
(char filename)
          Creates a new image from a file
(String filename)
          
(Pixbuf pixbuf)
          creates a new image from a pixbuf
(Stock stockID, IconSize size)
          creates a new image from the stock of images (same as the stock of buttons.
(GtkIconSet* icon_set, IconSize size)
          Creates a new Image from and icon set with a size
(GdkPixbufAnimation* animation, bit dummy)
          Create a new Image from an animation

Methods Summary
public static GType getType()
          Gets this class type
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 setFromFile(String filename)
          
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




package ctor(Image)(GtkWidget* gtkWidget)

getType

public static GType getType()
Gets this class type

Returns:
this class type



ctor(Image)()
creates a new image



ctor(Image)(Pixmap pixmap, Bitmap mask)
creates a new image from a pixmap and a mask



ctor(Image)(Image image, Bitmap mask, bit dummy)
creates a new image from and image and a mask



ctor(Image)(char filename)
Creates a new image from a file

Parameters:
filename -



ctor(Image)(String filename)



ctor(Image)(Pixbuf pixbuf)
creates a new image from a pixbuf



ctor(Image)(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



ctor(Image)(GtkIconSet* icon_set, IconSize size)
Creates a new Image from and icon set with a size

Parameters:
icon_set -
size -



ctor(Image)(GdkPixbufAnimation* animation, bit dummy)
Create a new Image from an animation

Parameters:
animation -
dummy - not used

setFromPixmap

void setFromPixmap(Pixmap pixmap, Bitmap mask)
Sets this image from a pixmap and a mask

Parameters:
pixmap -
mask -

setFromImage

void setFromImage(GdkImage* gdk_image, Bitmap mask)
setFromImage

Parameters:
gdk_image -
mask -

setFromFile

void setFromFile(char filename)
setFromFile

Parameters:
filename -

setFromFile

void setFromFile(String filename)

setFromPixbuf

void setFromPixbuf(Pixbuf pixbuf)
setFromPixbuf

Parameters:
pixbuf -

setFromStock

void setFromStock(Stock stockID, IconSize size)
setFromStock

Parameters:
stockID -
size -

setFromIconSet

void setFromIconSet(GtkIconSet* icon_set, IconSize size)
setFromIconSet

Parameters:
icon_set -
size -

setFromAnimation

void setFromAnimation(GdkPixbufAnimation* animation)
setFromAnimation

Parameters:
animation -

getStorageType

GtkImageType getStorageType()
getStorageType

Returns:

getPixmap

void getPixmap(GdkPixmap** pixmap, GdkBitmap** mask)
getPixmap

Parameters:
pixmap -
mask -

getImage

void getImage(GdkImage** gdk_image, GdkBitmap** mask)
getImage

Parameters:
gdk_image -
mask -

getPixbuf

Pixbuf getPixbuf()

Returns:

getStock

void getStock(gchar** stock_id, IconSize* size)

Parameters:
stock_id -
size -

getIconSet

void getIconSet(GtkIconSet** icon_set, IconSize* size)
getIconSet

Parameters:
icon_set -
size -

getAnimation

GdkPixbufAnimation* getAnimation()
getAnimation

Returns: