summaryrefslogtreecommitdiff
path: root/gdk/gdkmemorytexture.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-04-28 16:20:19 -0400
committerMatthias Clasen <mclasen@redhat.com>2018-04-28 16:22:29 -0400
commit059a181f7d80d8d073cc61052089acf6d1df42fe (patch)
tree7c8e2a9ea4164a2627aeace663c5ffc15cebffe0 /gdk/gdkmemorytexture.c
parenta0f591297a40167422ce40725432276ddbaf98fd (diff)
downloadgtk+-059a181f7d80d8d073cc61052089acf6d1df42fe.tar.gz
Document GdkMemoryTexture
Diffstat (limited to 'gdk/gdkmemorytexture.c')
-rw-r--r--gdk/gdkmemorytexture.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdk/gdkmemorytexture.c b/gdk/gdkmemorytexture.c
index 7a84e3962f..08215820b5 100644
--- a/gdk/gdkmemorytexture.c
+++ b/gdk/gdkmemorytexture.c
@@ -105,6 +105,20 @@ gdk_memory_texture_init (GdkMemoryTexture *self)
{
}
+/**
+ * gdk_memory_texture_new:
+ * @width: the width of the texture
+ * @height: the height of the texture
+ * @format: the format of the data
+ * @bytes: the #GBytes containing the pixel data
+ * @stride: rowstride for the data
+ *
+ * Creates a new texture for a blob of image data.
+ * The #GBytes must contain @stride x @height pixels
+ * in the given format.
+ *
+ * Returns: A newly-created #GdkTexture
+ */
GdkTexture *
gdk_memory_texture_new (int width,
int height,