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_icon_name (const char *icon_name); |
30 | GtkImageDefinition * gtk_image_definition_new_gicon (GIcon *gicon); |
31 | GtkImageDefinition * gtk_image_definition_new_paintable (GdkPaintable *paintable); |
32 | |
33 | GtkImageDefinition * gtk_image_definition_ref (GtkImageDefinition *def); |
34 | void gtk_image_definition_unref (GtkImageDefinition *def); |
35 | |
36 | GtkImageType gtk_image_definition_get_storage_type (const GtkImageDefinition *def); |
37 | int gtk_image_definition_get_scale (const GtkImageDefinition *def); |
38 | const char * gtk_image_definition_get_icon_name (const GtkImageDefinition *def); |
39 | GIcon * gtk_image_definition_get_gicon (const GtkImageDefinition *def); |
40 | GdkPaintable * gtk_image_definition_get_paintable (const GtkImageDefinition *def); |
41 | |
42 | |
43 | G_END_DECLS |
44 | |
45 | #endif /* __GTK_IMAGE_DEFINITION_H__ */ |
46 | |