Merge branch 'bilelmoussaoui/missing-since-annotations' into 'master'

since annotations cleanup

See merge request GNOME/gtk!4086
This commit is contained in:
Matthias Clasen
2021-10-26 17:53:06 +00:00
5 changed files with 25 additions and 9 deletions

View File

@@ -616,6 +616,8 @@ gdk_texture_new_from_bytes (GBytes *bytes,
* while loading a big image.
*
* Return value: A newly-created `GdkTexture`
*
* Since: 4.6
*/
GdkTexture *
gdk_texture_new_from_filename (const char *path,

View File

@@ -334,26 +334,26 @@ typedef enum
* @GDK_MEMORY_A8B8G8R8: 4 bytes; for alpha, blue, green, red.
* @GDK_MEMORY_R8G8B8: 3 bytes; for red, green, blue. The data is opaque.
* @GDK_MEMORY_B8G8R8: 3 bytes; for blue, green, red. The data is opaque.
* @GDK_MEMORY_R16G16B16: 3 guint16 values; for red, green, blue. Since 4.6
* @GDK_MEMORY_R16G16B16: 3 guint16 values; for red, green, blue. Since: 4.6
* @GDK_MEMORY_R16G16B16A16_PREMULTIPLIED: 4 guint16 values; for red, green,
* blue, alpha. The color values are premultiplied with the alpha value.
* Since 4.6
* Since: 4.6
* @GDK_MEMORY_R16G16B16A16: 4 guint16 values; for red, green, blue, alpha.
* Since 4.6
* Since: 4.6
* @GDK_MEMORY_R16G16B16_FLOAT: 3 half-float values; for red, green, blue.
* The data is opaque. Since 4.6
* The data is opaque. Since: 4.6
* @GDK_MEMORY_R16G16B16A16_FLOAT_PREMULTIPLIED: 4 half-float values; for
* red, green, blue and alpha. The color values are premultiplied with
* the alpha value. Since 4.6
* the alpha value. Since: 4.6
* @GDK_MEMORY_R16G16B16A16_FLOAT: 4 half-float values; for red, green,
* blue and alpha. Since 4.6
* blue and alpha. Since: 4.6
* @GDK_MEMORY_B32G32R32_FLOAT: 3 float values; for blue, green, red.
* The data is opaque. Since 4.6
* The data is opaque. Since: 4.6
* @GDK_MEMORY_R32G32B32A32_FLOAT_PREMULTIPLIED: 4 float values; for
* red, green, blue and alpha. The color values are premultiplied with
* the alpha value. Since 4.6
* the alpha value. Since: 4.6
* @GDK_MEMORY_R32G32B32A32_FLOAT: 4 float values; for red, green, blue and
* alpha. Since 4.6
* alpha. Since: 4.6
* @GDK_MEMORY_N_FORMATS: The number of formats. This value will change as
* more formats get added, so do not rely on its concrete integer.
*

View File

@@ -629,6 +629,8 @@ gsk_render_node_deserialize (GBytes *bytes,
* Stores the given `GskRenderNode` inside `value`.
*
* The `GValue` will acquire a reference to the `node`.
*
* Since: 4.6
*/
void
gsk_value_set_render_node (GValue *value,
@@ -663,6 +665,8 @@ gsk_value_set_render_node (GValue *value,
* Stores the given `GskRenderNode` inside `value`.
*
* This function transfers the ownership of the `node` to the `GValue`.
*
* Since: 4.6
*/
void
gsk_value_take_render_node (GValue *value,
@@ -696,6 +700,8 @@ gsk_value_take_render_node (GValue *value,
* Retrieves the `GskRenderNode` stored inside the given `value`.
*
* Returns: (transfer none) (nullable): a `GskRenderNode`
*
* Since: 4.6
*/
GskRenderNode *
gsk_value_get_render_node (const GValue *value)
@@ -713,6 +719,8 @@ gsk_value_get_render_node (const GValue *value)
* a reference to it.
*
* Returns: (transfer full) (nullable): a `GskRenderNode`
*
* Since: 4.6
*/
GskRenderNode *
gsk_value_dup_render_node (const GValue *value)

View File

@@ -1142,6 +1142,8 @@ typedef enum {
* [vfunc.GtkSymbolicPaintable.snapshot_symbolic].
*
* More values may be added over time.
*
* Since: 4.6
*/
typedef enum {
GTK_SYMBOLIC_COLOR_FOREGROUND = 0,

View File

@@ -38,6 +38,8 @@
* and success information in that order.
*
* More colors may be added in the future.
*
* Since: 4.6
*/
G_DEFINE_INTERFACE (GtkSymbolicPaintable, gtk_symbolic_paintable, GDK_TYPE_PAINTABLE)
@@ -72,6 +74,8 @@ gtk_symbolic_paintable_default_init (GtkSymbolicPaintableInterface *iface)
*
* If less than 4 colors are provided, GTK will pad the array with default
* colors.
*
* Since: 4.6
*/
void
gtk_symbolic_paintable_snapshot_symbolic (GtkSymbolicPaintable *paintable,