Ardour  9.0-pre0-582-g084a23a80d
gtkimage.h File Reference
#include <gio/gio.h>
#include <gtk/gtkmisc.h>
Include dependency graph for gtkimage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _GtkImagePixmapData
 
struct  _GtkImageImageData
 
struct  _GtkImagePixbufData
 
struct  _GtkImageStockData
 
struct  _GtkImageIconSetData
 
struct  _GtkImageAnimationData
 
struct  _GtkImageIconNameData
 
struct  _GtkImageGIconData
 
struct  _GtkImage
 
struct  _GtkImageClass
 

Macros

#define GTK_TYPE_IMAGE   (gtk_image_get_type ())
 
#define GTK_IMAGE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IMAGE, GtkImage))
 
#define GTK_IMAGE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IMAGE, GtkImageClass))
 
#define GTK_IS_IMAGE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IMAGE))
 
#define GTK_IS_IMAGE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMAGE))
 
#define GTK_IMAGE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IMAGE, GtkImageClass))
 

Typedefs

typedef struct _GtkImage GtkImage
 
typedef struct _GtkImageClass GtkImageClass
 
typedef struct _GtkImagePixmapData GtkImagePixmapData
 
typedef struct _GtkImageImageData GtkImageImageData
 
typedef struct _GtkImagePixbufData GtkImagePixbufData
 
typedef struct _GtkImageStockData GtkImageStockData
 
typedef struct _GtkImageIconSetData GtkImageIconSetData
 
typedef struct _GtkImageAnimationData GtkImageAnimationData
 
typedef struct _GtkImageIconNameData GtkImageIconNameData
 
typedef struct _GtkImageGIconData GtkImageGIconData
 

Enumerations

enum  GtkImageType {
  GTK_IMAGE_EMPTY , GTK_IMAGE_PIXMAP , GTK_IMAGE_IMAGE , GTK_IMAGE_PIXBUF ,
  GTK_IMAGE_STOCK , GTK_IMAGE_ICON_SET , GTK_IMAGE_ANIMATION , GTK_IMAGE_ICON_NAME ,
  GTK_IMAGE_GICON
}
 

Functions

GType gtk_image_get_type (void) G_GNUC_CONST
 
GtkWidgetgtk_image_new (void)
 
GtkWidgetgtk_image_new_from_pixmap (GdkPixmap *pixmap, GdkBitmap *mask)
 
GtkWidgetgtk_image_new_from_image (GdkImage *image, GdkBitmap *mask)
 
GtkWidgetgtk_image_new_from_file (const gchar *filename)
 
GtkWidgetgtk_image_new_from_pixbuf (GdkPixbuf *pixbuf)
 
GtkWidgetgtk_image_new_from_stock (const gchar *stock_id, GtkIconSize size)
 
GtkWidgetgtk_image_new_from_icon_set (GtkIconSet *icon_set, GtkIconSize size)
 
GtkWidgetgtk_image_new_from_animation (GdkPixbufAnimation *animation)
 
GtkWidgetgtk_image_new_from_icon_name (const gchar *icon_name, GtkIconSize size)
 
GtkWidgetgtk_image_new_from_gicon (GIcon *icon, GtkIconSize size)
 
void gtk_image_clear (GtkImage *image)
 
void gtk_image_set_from_pixmap (GtkImage *image, GdkPixmap *pixmap, GdkBitmap *mask)
 
void gtk_image_set_from_image (GtkImage *image, GdkImage *gdk_image, GdkBitmap *mask)
 
void gtk_image_set_from_file (GtkImage *image, const gchar *filename)
 
void gtk_image_set_from_pixbuf (GtkImage *image, GdkPixbuf *pixbuf)
 
void gtk_image_set_from_stock (GtkImage *image, const gchar *stock_id, GtkIconSize size)
 
void gtk_image_set_from_icon_set (GtkImage *image, GtkIconSet *icon_set, GtkIconSize size)
 
void gtk_image_set_from_animation (GtkImage *image, GdkPixbufAnimation *animation)
 
void gtk_image_set_from_icon_name (GtkImage *image, const gchar *icon_name, GtkIconSize size)
 
void gtk_image_set_from_gicon (GtkImage *image, GIcon *icon, GtkIconSize size)
 
void gtk_image_set_pixel_size (GtkImage *image, gint pixel_size)
 
GtkImageType gtk_image_get_storage_type (GtkImage *image)
 
void gtk_image_get_pixmap (GtkImage *image, GdkPixmap **pixmap, GdkBitmap **mask)
 
void gtk_image_get_image (GtkImage *image, GdkImage **gdk_image, GdkBitmap **mask)
 
GdkPixbuf * gtk_image_get_pixbuf (GtkImage *image)
 
void gtk_image_get_stock (GtkImage *image, gchar **stock_id, GtkIconSize *size)
 
void gtk_image_get_icon_set (GtkImage *image, GtkIconSet **icon_set, GtkIconSize *size)
 
GdkPixbufAnimation * gtk_image_get_animation (GtkImage *image)
 
void gtk_image_get_icon_name (GtkImage *image, const gchar **icon_name, GtkIconSize *size)
 
void gtk_image_get_gicon (GtkImage *image, GIcon **gicon, GtkIconSize *size)
 
gint gtk_image_get_pixel_size (GtkImage *image)
 
void gtk_image_set (GtkImage *image, GdkImage *val, GdkBitmap *mask)
 
void gtk_image_get (GtkImage *image, GdkImage **val, GdkBitmap **mask)
 

Variables

GtkImagePixmapData pixmap
 
GtkImageImageData image
 
GtkImagePixbufData pixbuf
 
GtkImageStockData stock
 
GtkImageIconSetData icon_set
 
GtkImageAnimationData anim
 
GtkImageIconNameData name
 
GtkImageGIconData gicon
 

Macro Definition Documentation

◆ GTK_IMAGE

#define GTK_IMAGE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IMAGE, GtkImage))

Definition at line 42 of file gtkimage.h.

◆ GTK_IMAGE_CLASS

#define GTK_IMAGE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IMAGE, GtkImageClass))

Definition at line 43 of file gtkimage.h.

◆ GTK_IMAGE_GET_CLASS

#define GTK_IMAGE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IMAGE, GtkImageClass))

Definition at line 46 of file gtkimage.h.

◆ GTK_IS_IMAGE

#define GTK_IS_IMAGE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IMAGE))

Definition at line 44 of file gtkimage.h.

◆ GTK_IS_IMAGE_CLASS

#define GTK_IS_IMAGE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMAGE))

Definition at line 45 of file gtkimage.h.

◆ GTK_TYPE_IMAGE

#define GTK_TYPE_IMAGE   (gtk_image_get_type ())

Definition at line 41 of file gtkimage.h.

Typedef Documentation

◆ GtkImage

typedef struct _GtkImage GtkImage

Definition at line 39 of file gtkimage.h.

◆ GtkImageAnimationData

Definition at line 39 of file gtkimage.h.

◆ GtkImageClass

typedef struct _GtkImageClass GtkImageClass

Definition at line 39 of file gtkimage.h.

◆ GtkImageGIconData

Definition at line 39 of file gtkimage.h.

◆ GtkImageIconNameData

Definition at line 39 of file gtkimage.h.

◆ GtkImageIconSetData

Definition at line 39 of file gtkimage.h.

◆ GtkImageImageData

Definition at line 39 of file gtkimage.h.

◆ GtkImagePixbufData

Definition at line 39 of file gtkimage.h.

◆ GtkImagePixmapData

Definition at line 39 of file gtkimage.h.

◆ GtkImageStockData

Definition at line 39 of file gtkimage.h.

Enumeration Type Documentation

◆ GtkImageType

GtkImageType:

Parameters
GTK_IMAGE_EMPTYthere is no image displayed by the widget
GTK_IMAGE_PIXMAPthe widget contains a GdkPixmap
GTK_IMAGE_IMAGEthe widget contains a GdkImage
GTK_IMAGE_PIXBUFthe widget contains a GdkPixbuf
GTK_IMAGE_STOCKthe widget contains a stock icon name
GTK_IMAGE_ICON_SETthe widget contains a GtkIconSet
GTK_IMAGE_ANIMATIONthe widget contains a GdkPixbufAnimation
GTK_IMAGE_ICON_NAMEthe widget contains a named icon. This image type was added in GTK+ 2.6
GTK_IMAGE_GICONthe widget contains a GIcon. This image type was added in GTK+ 2.14

Describes the image data representation used by a GtkImage. If you want to get the image from the widget, you can only get the currently-stored representation. e.g. if the gtk_image_get_storage_type() returns GTK_IMAGE_PIXBUF, then you can call gtk_image_get_pixbuf() but not gtk_image_get_stock(). For empty images, you can request any storage type (call any of the "get" functions), but they will all return NULL values.

Enumerator
GTK_IMAGE_EMPTY 
GTK_IMAGE_PIXMAP 
GTK_IMAGE_IMAGE 
GTK_IMAGE_PIXBUF 
GTK_IMAGE_STOCK 
GTK_IMAGE_ICON_SET 
GTK_IMAGE_ANIMATION 
GTK_IMAGE_ICON_NAME 
GTK_IMAGE_GICON 

Definition at line 129 of file gtkimage.h.

Function Documentation

◆ gtk_image_clear()

void gtk_image_clear ( GtkImage image)

◆ gtk_image_get()

void gtk_image_get ( GtkImage image,
GdkImage **  val,
GdkBitmap **  mask 
)

◆ gtk_image_get_animation()

GdkPixbufAnimation* gtk_image_get_animation ( GtkImage image)

◆ gtk_image_get_gicon()

void gtk_image_get_gicon ( GtkImage image,
GIcon **  gicon,
GtkIconSize size 
)

◆ gtk_image_get_icon_name()

void gtk_image_get_icon_name ( GtkImage image,
const gchar **  icon_name,
GtkIconSize size 
)

◆ gtk_image_get_icon_set()

void gtk_image_get_icon_set ( GtkImage image,
GtkIconSet **  icon_set,
GtkIconSize size 
)

◆ gtk_image_get_image()

void gtk_image_get_image ( GtkImage image,
GdkImage **  gdk_image,
GdkBitmap **  mask 
)

◆ gtk_image_get_pixbuf()

GdkPixbuf* gtk_image_get_pixbuf ( GtkImage image)

◆ gtk_image_get_pixel_size()

gint gtk_image_get_pixel_size ( GtkImage image)

◆ gtk_image_get_pixmap()

void gtk_image_get_pixmap ( GtkImage image,
GdkPixmap **  pixmap,
GdkBitmap **  mask 
)

◆ gtk_image_get_stock()

void gtk_image_get_stock ( GtkImage image,
gchar **  stock_id,
GtkIconSize size 
)

◆ gtk_image_get_storage_type()

GtkImageType gtk_image_get_storage_type ( GtkImage image)

◆ gtk_image_get_type()

GType gtk_image_get_type ( void  )

◆ gtk_image_new()

GtkWidget* gtk_image_new ( void  )

◆ gtk_image_new_from_animation()

GtkWidget* gtk_image_new_from_animation ( GdkPixbufAnimation *  animation)

◆ gtk_image_new_from_file()

GtkWidget* gtk_image_new_from_file ( const gchar *  filename)

◆ gtk_image_new_from_gicon()

GtkWidget* gtk_image_new_from_gicon ( GIcon *  icon,
GtkIconSize  size 
)

◆ gtk_image_new_from_icon_name()

GtkWidget* gtk_image_new_from_icon_name ( const gchar *  icon_name,
GtkIconSize  size 
)

◆ gtk_image_new_from_icon_set()

GtkWidget* gtk_image_new_from_icon_set ( GtkIconSet icon_set,
GtkIconSize  size 
)

◆ gtk_image_new_from_image()

GtkWidget* gtk_image_new_from_image ( GdkImage image,
GdkBitmap mask 
)

◆ gtk_image_new_from_pixbuf()

GtkWidget* gtk_image_new_from_pixbuf ( GdkPixbuf *  pixbuf)

◆ gtk_image_new_from_pixmap()

GtkWidget* gtk_image_new_from_pixmap ( GdkPixmap pixmap,
GdkBitmap mask 
)

◆ gtk_image_new_from_stock()

GtkWidget* gtk_image_new_from_stock ( const gchar *  stock_id,
GtkIconSize  size 
)

◆ gtk_image_set()

void gtk_image_set ( GtkImage image,
GdkImage val,
GdkBitmap mask 
)

◆ gtk_image_set_from_animation()

void gtk_image_set_from_animation ( GtkImage image,
GdkPixbufAnimation *  animation 
)

◆ gtk_image_set_from_file()

void gtk_image_set_from_file ( GtkImage image,
const gchar *  filename 
)

◆ gtk_image_set_from_gicon()

void gtk_image_set_from_gicon ( GtkImage image,
GIcon *  icon,
GtkIconSize  size 
)

◆ gtk_image_set_from_icon_name()

void gtk_image_set_from_icon_name ( GtkImage image,
const gchar *  icon_name,
GtkIconSize  size 
)

◆ gtk_image_set_from_icon_set()

void gtk_image_set_from_icon_set ( GtkImage image,
GtkIconSet icon_set,
GtkIconSize  size 
)

◆ gtk_image_set_from_image()

void gtk_image_set_from_image ( GtkImage image,
GdkImage gdk_image,
GdkBitmap mask 
)

◆ gtk_image_set_from_pixbuf()

void gtk_image_set_from_pixbuf ( GtkImage image,
GdkPixbuf *  pixbuf 
)

◆ gtk_image_set_from_pixmap()

void gtk_image_set_from_pixmap ( GtkImage image,
GdkPixmap pixmap,
GdkBitmap mask 
)

◆ gtk_image_set_from_stock()

void gtk_image_set_from_stock ( GtkImage image,
const gchar *  stock_id,
GtkIconSize  size 
)

◆ gtk_image_set_pixel_size()

void gtk_image_set_pixel_size ( GtkImage image,
gint  pixel_size 
)

Variable Documentation

◆ anim

Definition at line 5 of file gtkimage.h.

◆ gicon

Definition at line 7 of file gtkimage.h.

◆ icon_set

Definition at line 4 of file gtkimage.h.

◆ image

Definition at line 1 of file gtkimage.h.

◆ name

Definition at line 6 of file gtkimage.h.

◆ pixbuf

Definition at line 2 of file gtkimage.h.

◆ pixmap

Definition at line 0 of file gtkimage.h.

◆ stock

Definition at line 3 of file gtkimage.h.