Name
GtkImage -- A widget displaying a graphical image
Synopsis
#include <gtk/gtk.h>
struct GtkImage;
void gtk_image_get_icon_set (GtkImage *image,
GtkIconSet **icon_set,
gchar **size);
void gtk_image_get_image (GtkImage *image,
GdkImage **gdk_image,
GdkBitmap **mask);
GdkPixbuf* gtk_image_get_pixbuf (GtkImage *image);
void gtk_image_get_pixmap (GtkImage *image,
GdkPixmap **pixmap,
GdkBitmap **mask);
void gtk_image_get_stock (GtkImage *image,
gchar **stock_id,
gchar **size);
GtkImageType gtk_image_get_storage_type (GtkImage *image);
GtkWidget* gtk_image_new_from_file (const gchar *filename);
GtkWidget* gtk_image_new_from_icon_set (GtkIconSet *icon_set,
const gchar *size);
GtkWidget* gtk_image_new_from_image (GdkImage *image,
GdkBitmap *mask);
GtkWidget* gtk_image_new_from_pixbuf (GdkPixbuf *pixbuf);
GtkWidget* gtk_image_new_from_pixmap (GdkPixmap *pixmap,
GdkBitmap *mask);
GtkWidget* gtk_image_new_from_stock (const gchar *stock_id,
const gchar *size);
void gtk_image_set_from_file (GtkImage *image,
const gchar *filename);
void gtk_image_set_from_icon_set (GtkImage *image,
GtkIconSet *icon_set,
const gchar *size);
void gtk_image_set_from_image (GtkImage *image,
GdkImage *gdk_image,
GdkBitmap *mask);
void gtk_image_set_from_pixbuf (GtkImage *image,
GdkPixbuf *pixbuf);
void gtk_image_set_from_pixmap (GtkImage *image,
GdkPixmap *pixmap,
GdkBitmap *mask);
void gtk_image_set_from_stock (GtkImage *image,
const gchar *stock_id,
const gchar *size);
GtkWidget* gtk_image_new (GdkImage *val,
GdkBitmap *mask);
void gtk_image_set (GtkImage *image,
GdkImage *val,
GdkBitmap *mask);
void gtk_image_get (GtkImage *image,
GdkImage **val,
GdkBitmap **mask);
|
Description
The GtkImage widget displays a graphical image. The image is typically created
using gdk_image_new.
The pixels in a GtkImage may be manipulated by the application after creation,
as GtkImage store the pixel data on the client side. If you wish to store the
pixel data on the server side (thus not allowing manipulation of the data after
creation) you should use GtkPixmap.
Details
struct GtkImage
This struct contain private data only and should be accessed by the functions
below.
gtk_image_get_icon_set ()
gtk_image_get_storage_type ()
GtkImageType gtk_image_get_storage_type (GtkImage *image); |
gtk_image_new_from_file ()
gtk_image_new_from_icon_set ()
gtk_image_new_from_image ()
gtk_image_new_from_pixbuf ()
gtk_image_new_from_pixmap ()
gtk_image_new_from_stock ()
gtk_image_set_from_file ()
void gtk_image_set_from_file (GtkImage *image,
const gchar *filename); |
gtk_image_set_from_icon_set ()
gtk_image_set_from_image ()
gtk_image_set_from_pixbuf ()
gtk_image_set_from_pixmap ()
gtk_image_set_from_stock ()
void gtk_image_set_from_stock (GtkImage *image,
const gchar *stock_id,
const gchar *size); |
gtk_image_new ()
Creates the new GtkImage using the value and the mask.
gtk_image_set ()
Sets the GtkImage
gtk_image_get ()
Gets the GtkImage