Document GdkMemoryTexture
authorMatthias Clasen <mclasen@redhat.com>
Sat, 28 Apr 2018 20:20:19 +0000 (16:20 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Apr 2018 20:22:29 +0000 (16:22 -0400)
docs/reference/gdk/gdk4-sections.txt
gdk/gdkmemorytexture.c
gdk/gdkmemorytexture.h

index ab95d6d6b56b64a1ae1e1c06e123fbb6ddbec636..3ca6c13862914a70269107ffbeb8cd30da48022d 100644 (file)
@@ -725,7 +725,7 @@ gdk_texture_get_height
 gdk_texture_download
 gdk_texture_save_to_png
 GdkMemoryFormat
-GDK_MEMORY_FORMAT_DEFAULT
+GDK_MEMORY_DEFAULT
 gdk_memory_texture_new
 gdk_gl_texture_new
 gdk_gl_texture_release
index 7a84e3962f1fcff19c6b71de9a706d9fcf1a73e2..08215820b550873f75c8ff310a4c475b881ac073 100644 (file)
@@ -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,
index c02fc784d42098c41e387c8b408581c000d236ff..067f164baa9b49f2adc85be67ccd31d81c888db7 100644 (file)
@@ -28,7 +28,7 @@
 
 G_BEGIN_DECLS
 
-/*
+/**
  * GdkMemoryFormat:
  * @GDK_MEMORY_B8G8R8A8_PREMULTIPLIED: 4 bytes; for blue, green, red, alpha.
  *     The color values are premultiplied with the alpha value.