-/* GDK - The GTK Scene Kit
+/* gdktexture.c
*
* Copyright 2016 Benjamin Otte
*
/**
* SECTION:GdkTexture
* @Title: GdkTexture
- * @Short_description: Pixel data uploaded to a #GdkRenderer
+ * @Short_description: Pixel data
*
* #GdkTexture is the basic element used to refer to pixel data.
* It is primarily mean for pixel data that will not change over
gobject_class->dispose = gdk_texture_dispose;
/**
- * GdkRenderer:width:
+ * GdkTexture:width:
*
* The width of the texture.
*
G_PARAM_EXPLICIT_NOTIFY);
/**
- * GdkRenderer:height:
+ * GdkTexture:height:
*
* The height of the texture.
*
* The data is assumed to be in CAIRO_FORMAT_ARGB32 format.
*
* Returns: a new #GdkTexture
+ *
+ * Since: 3.94
*/
GdkTexture *
gdk_texture_new_for_data (const guchar *data,
* @surface must be an image surface with format CAIRO_FORMAT_ARGB32.
*
* Returns: a new #GdkTexture
+ *
+ * Since: 3.94
*/
GdkTexture *
gdk_texture_new_for_surface (cairo_surface_t *surface)
* Creates a new texture object representing the GdkPixbuf.
*
* Returns: a new #GdkTexture
+ *
+ * Since: 3.94
*/
GdkTexture *
gdk_texture_new_for_pixbuf (GdkPixbuf *pixbuf)
}
/**
- * gdk_pixbuf_new_from_file:
+ * gdk_texture_new_from_file:
* @file: #GFile to load
* @error: Return location for an error
*
* cairo_image_surface_get_stride (surface));
* cairo_surface_mark_dirty (surface);
* ]|
+ *
+ * Since: 3.94
**/
void
gdk_texture_download (GdkTexture *texture,