diff options
author | Benjamin Otte <otte@redhat.com> | 2023-02-14 07:33:46 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2023-02-15 00:39:18 +0100 |
commit | c9f54ca37105cfe248717a5b4122ec8fd8ebe598 (patch) | |
tree | db77353a452e28eba3673bd9640d1e30838c6cbc /gdk/gdktexture.h | |
parent | ce0123ea584dd6052331962182f4360cdccceb29 (diff) | |
download | gtk+-c9f54ca37105cfe248717a5b4122ec8fd8ebe598.tar.gz |
texture: Export gdk_texture_get_format()
The API docs outline why quite well.
This should make it possible to do saving of textures to image files
without any private API with the same featureset that GTK uses.
Also remove the gsktextureprivate.h include where
gdk_texture_get_format() was the only reason for it.
Diffstat (limited to 'gdk/gdktexture.h')
-rw-r--r-- | gdk/gdktexture.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/gdktexture.h b/gdk/gdktexture.h index 8ce4bae5b2..5a28f55ad0 100644 --- a/gdk/gdktexture.h +++ b/gdk/gdktexture.h @@ -24,6 +24,7 @@ #endif #include <gdk/gdkversionmacros.h> +#include <gdk/gdkenums.h> #include <gdk/gdktypes.h> #include <gdk-pixbuf/gdk-pixbuf.h> @@ -82,6 +83,8 @@ GDK_AVAILABLE_IN_ALL int gdk_texture_get_width (GdkTexture *texture) G_GNUC_PURE; GDK_AVAILABLE_IN_ALL int gdk_texture_get_height (GdkTexture *texture) G_GNUC_PURE; +GDK_AVAILABLE_IN_4_10 +GdkMemoryFormat gdk_texture_get_format (GdkTexture *self) G_GNUC_PURE; GDK_AVAILABLE_IN_ALL void gdk_texture_download (GdkTexture *texture, |