summaryrefslogtreecommitdiff
path: root/gtk/gdkpixbufutilsprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-05-16 21:53:55 -0400
committerMatthias Clasen <mclasen@redhat.com>2023-05-16 21:56:22 -0400
commit847739aed7cf6f6cf5f745fdef0a976980089ea9 (patch)
tree842200a552f46896a8be1644342480236d102d5c /gtk/gdkpixbufutilsprivate.h
parent4d66598f315d32a4798b5f67cb0cbc32d05b983c (diff)
downloadgtk+-847739aed7cf6f6cf5f745fdef0a976980089ea9.tar.gz
Reduce pixbuf helpers
Concentrate pixbuf handling in gdkpixbufutils.c.
Diffstat (limited to 'gtk/gdkpixbufutilsprivate.h')
-rw-r--r--gtk/gdkpixbufutilsprivate.h38
1 files changed, 18 insertions, 20 deletions
diff --git a/gtk/gdkpixbufutilsprivate.h b/gtk/gdkpixbufutilsprivate.h
index 10801722e4..77e21a4c75 100644
--- a/gtk/gdkpixbufutilsprivate.h
+++ b/gtk/gdkpixbufutilsprivate.h
@@ -21,49 +21,48 @@
G_BEGIN_DECLS
-GdkPixbuf *_gdk_pixbuf_new_from_stream (GInputStream *stream,
+GdkPixbuf *gtk_make_symbolic_pixbuf_from_data (const char *data,
+ gsize len,
+ int width,
+ int height,
+ double scale,
+ const char *debug_output_to,
+ GError **error);
+
+GdkTexture *gdk_texture_new_from_stream (GInputStream *stream,
GCancellable *cancellable,
GError **error);
-GdkPixbuf *_gdk_pixbuf_new_from_stream_at_scale (GInputStream *stream,
+GdkTexture *gdk_texture_new_from_stream_at_scale (GInputStream *stream,
int width,
int height,
gboolean aspect,
GCancellable *cancellable,
GError **error);
-GdkPixbuf *_gdk_pixbuf_new_from_resource_at_scale (const char *resource_path,
+GdkTexture *gdk_texture_new_from_resource_at_scale (const char *path,
int width,
int height,
- gboolean preserve_aspect,
+ gboolean aspect,
GError **error);
-GdkPixbuf *gtk_make_symbolic_pixbuf_from_data (const char *data,
- gsize len,
+
+GdkTexture *gdk_texture_new_from_path_symbolic (const char *path,
int width,
int height,
double scale,
- const char *debug_output_to,
GError **error);
-GdkPixbuf *gtk_make_symbolic_pixbuf_from_path (const char *path,
+GdkTexture *gdk_texture_new_from_file_symbolic (GFile *file,
int width,
int height,
double scale,
GError **error);
-GdkPixbuf *gtk_make_symbolic_pixbuf_from_resource (const char *path,
+GdkTexture *gdk_texture_new_from_resource_symbolic (const char *path,
int width,
int height,
double scale,
GError **error);
+
GdkTexture *gtk_load_symbolic_texture_from_file (GFile *file);
-GdkTexture *gtk_make_symbolic_texture_from_file (GFile *file,
- int width,
- int height,
- double scale,
- GError **error);
GdkTexture *gtk_load_symbolic_texture_from_resource (const char *data);
-GdkTexture *gtk_make_symbolic_texture_from_resource (const char *path,
- int width,
- int height,
- double scale,
- GError **error);
+
GdkPaintable *gdk_paintable_new_from_path_scaled (const char *path,
int scale_factor);
GdkPaintable *gdk_paintable_new_from_resource_scaled (const char *path,
@@ -72,4 +71,3 @@ GdkPaintable *gdk_paintable_new_from_file_scaled (GFile *file,
int scale_factor);
G_END_DECLS
-