1 /* GTK - The GIMP Toolkit 2 * Copyright (C) 2015 Benjamin Otte <otte@gnome.org> 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef __GTK_IMAGE_DEFINITION_H__ 19 #define __GTK_IMAGE_DEFINITION_H__ 20 21 #include "gtk/gtkimage.h" 22 #include "gtk/gtktypes.h" 23 24 G_BEGIN_DECLS 25 26 typedef union _GtkImageDefinition GtkImageDefinition; 27 28 GtkImageDefinition * gtk_image_definition_new_empty (void); 29 GtkImageDefinition * gtk_image_definition_new_pixbuf (GdkPixbuf *pixbuf, 30 int scale); 31 GtkImageDefinition * gtk_image_definition_new_stock (const char *stock_id); 32 GtkImageDefinition * gtk_image_definition_new_icon_set (GtkIconSet *icon_set); 33 GtkImageDefinition * gtk_image_definition_new_animation (GdkPixbufAnimation *animation, 34 int scale); 35 GtkImageDefinition * gtk_image_definition_new_icon_name (const char *icon_name); 36 GtkImageDefinition * gtk_image_definition_new_gicon (GIcon *gicon); 37 GtkImageDefinition * gtk_image_definition_new_surface (cairo_surface_t *surface); 38 39 GtkImageDefinition * gtk_image_definition_ref (GtkImageDefinition *def); 40 void gtk_image_definition_unref (GtkImageDefinition *def); 41 42 GtkImageType gtk_image_definition_get_storage_type (const GtkImageDefinition *def); 43 gint gtk_image_definition_get_scale (const GtkImageDefinition *def); 44 GdkPixbuf * gtk_image_definition_get_pixbuf (const GtkImageDefinition *def); 45 const gchar * gtk_image_definition_get_stock (const GtkImageDefinition *def); 46 GtkIconSet * gtk_image_definition_get_icon_set (const GtkImageDefinition *def); 47 GdkPixbufAnimation * gtk_image_definition_get_animation (const GtkImageDefinition *def); 48 const gchar * gtk_image_definition_get_icon_name (const GtkImageDefinition *def); 49 GIcon * gtk_image_definition_get_gicon (const GtkImageDefinition *def); 50 cairo_surface_t * gtk_image_definition_get_surface (const GtkImageDefinition *def); 51 52 53 G_END_DECLS 54 55 #endif /* __GTK_IMAGE_DEFINITION_H__ */ 56