1/* GTK - The GIMP Toolkit
2 * Copyright (C) 2016 Red Hat, Inc.
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 __GDK_PIXBUF_UTILS_PRIVATE_H__
19#define __GDK_PIXBUF_UTILS_PRIVATE_H__
20
21#include <gdk/gdk.h>
22
23G_BEGIN_DECLS
24
25GdkPixbuf *_gdk_pixbuf_new_from_stream (GInputStream *stream,
26 GCancellable *cancellable,
27 GError **error);
28GdkPixbuf *_gdk_pixbuf_new_from_stream_at_scale (GInputStream *stream,
29 int width,
30 int height,
31 gboolean aspect,
32 GCancellable *cancellable,
33 GError **error);
34GdkPixbuf *_gdk_pixbuf_new_from_stream_scaled (GInputStream *stream,
35 double scale,
36 GCancellable *cancellable,
37 GError **error);
38GdkPixbuf *_gdk_pixbuf_new_from_resource (const char *resource_path,
39 GError **error);
40GdkPixbuf *_gdk_pixbuf_new_from_resource_at_scale (const char *resource_path,
41 int width,
42 int height,
43 gboolean preserve_aspect,
44 GError **error);
45GdkPixbuf *_gdk_pixbuf_new_from_resource_scaled (const char *resource_path,
46 double scale,
47 GError **error);
48
49GdkPixbuf *gtk_make_symbolic_pixbuf_from_data (const char *data,
50 gsize len,
51 int width,
52 int height,
53 double scale,
54 const char *debug_output_to,
55 GError **error);
56GdkPixbuf *gtk_make_symbolic_pixbuf_from_file (GFile *file,
57 int width,
58 int height,
59 double scale,
60 GError **error);
61GdkPixbuf *gtk_make_symbolic_pixbuf_from_path (const char *path,
62 int width,
63 int height,
64 double scale,
65 GError **error);
66GdkPixbuf *gtk_make_symbolic_pixbuf_from_resource (const char *path,
67 int width,
68 int height,
69 double scale,
70 GError **error);
71GdkTexture *gtk_load_symbolic_texture_from_file (GFile *file);
72GdkTexture *gtk_make_symbolic_texture_from_file (GFile *file,
73 int width,
74 int height,
75 double scale,
76 GError **error);
77GdkTexture *gtk_load_symbolic_texture_from_resource (const char *data);
78GdkTexture *gtk_make_symbolic_texture_from_resource (const char *path,
79 int width,
80 int height,
81 double scale,
82 GError **error);
83
84GdkPaintable *gdk_paintable_new_from_bytes_scaled (GBytes *bytes,
85 int scale_factor);
86GdkPaintable *gdk_paintable_new_from_path_scaled (const char *path,
87 int scale_factor);
88GdkPaintable *gdk_paintable_new_from_resource_scaled (const char *path,
89 int scale_factor);
90GdkPaintable *gdk_paintable_new_from_file_scaled (GFile *file,
91 int scale_factor);
92
93G_END_DECLS
94
95#endif /* __GDK_PIXBUF_UTILS_PRIVATE_H__ */
96

source code of gtk/gtk/gdkpixbufutilsprivate.h