![]() | ![]() | ![]() | GTK+ Reference Manual | ![]() |
---|
GtkPixmap — a widget displaying a graphical image or icon.
#include <gtk/gtk.h> struct GtkPixmap; GtkWidget* gtk_pixmap_new (GdkPixmap *pixmap,GdkBitmap *mask); void gtk_pixmap_set (GtkPixmap *pixmap,GdkPixmap *val,GdkBitmap *mask); void gtk_pixmap_get (GtkPixmap *pixmap,GdkPixmap **val,GdkBitmap **mask); void gtk_pixmap_set_build_insensitive (GtkPixmap *pixmap,gboolean build);
GtkPixmap implements
The GtkPixmap widget displays a graphical image or icon.
The icon is typically created using
The pixels in a GtkPixmap cannot be manipulated by the application after
creation, since under the X Window system the pixel data is stored on the
X server and so is not available to the client application.
If you want to create graphical images which can be manipulated by the
application, look at GtkImage and
struct GtkPixmap;
GtkPixmap is deprecated and should not be used in newly-written code.
The GtkPixmap struct contains private data only, and should be accessed using the functions below.
GtkWidget* gtk_pixmap_new (GdkPixmap *pixmap,GdkBitmap *mask);
gtk_pixmap_new is deprecated and should not be used in newly-written code.
Creates a new GtkPixmap, using the given GDK pixmap and mask.
pixmap : | a |
mask : | a |
Returns : | a new GtkPixmap. |
void gtk_pixmap_set (GtkPixmap *pixmap,GdkPixmap *val,GdkBitmap *mask);
gtk_pixmap_set is deprecated and should not be used in newly-written code.
Sets the
pixmap : | a GtkPixmap. |
val : | a |
mask : | a |
void gtk_pixmap_get (GtkPixmap *pixmap,GdkPixmap **val,GdkBitmap **mask);
gtk_pixmap_get is deprecated and should not be used in newly-written code.
Gets the current
pixmap : | a GtkPixmap. |
val : | returns the current |
mask : | returns the current |
void gtk_pixmap_set_build_insensitive (GtkPixmap *pixmap,gboolean build);
gtk_pixmap_set_build_insensitive is deprecated and should not be used in newly-written code.
Sets wether an extra pixmap should be automatically created and used when the pixmap is insensitive. The default value is TRUE.
pixmap : | a GtkPixmap. |
build : | set to TRUE if an extra pixmap should be automatically created to use when the pixmap is insensitive. |
<< GtkListItem | GtkProgress >> |