diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-08-10 16:25:51 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-08-10 16:25:51 +0200 |
commit | 9229a1beeb6f18805e6e25e5812170c7f9bae36b (patch) | |
tree | 3dcea6f90ea8d2e0af09b5aff3bc1f8a00da8613 /vapi | |
parent | d63d97c2f728d8c8e9d5dcdd9f092e2b607e8225 (diff) | |
download | vala-9229a1beeb6f18805e6e25e5812170c7f9bae36b.tar.gz |
gtk+-4.0: Make Gsk.Texturer.for_*() static factory methods
Diffstat (limited to 'vapi')
-rw-r--r-- | vapi/gtk+-4.0.vapi | 8 | ||||
-rw-r--r-- | vapi/metadata/Gsk-4.0.metadata | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi index cb798d1c8..7f0eb451b 100644 --- a/vapi/gtk+-4.0.vapi +++ b/vapi/gtk+-4.0.vapi @@ -6986,10 +6986,10 @@ namespace Gsk { [CCode (has_construct_function = false)] protected Texture (); public void download (uint8 data, size_t stride); - [CCode (has_construct_function = false)] - public Texture.for_data ([CCode (array_length = false, type = "const guchar*")] uint8[] data, int width, int height, int stride); - [CCode (has_construct_function = false)] - public Texture.for_pixbuf (Gdk.Pixbuf pixbuf); + [CCode (cname = "gsk_texture_new_for_data")] + public static Gsk.Texture for_data ([CCode (array_length = false, type = "const guchar*")] uint8[] data, int width, int height, int stride); + [CCode (cname = "gsk_texture_new_for_pixbuf")] + public static Gsk.Texture for_pixbuf (Gdk.Pixbuf pixbuf); public int get_height (); public int get_width (); public Gsk.RenderNode node_new (Graphene.Rect bounds); diff --git a/vapi/metadata/Gsk-4.0.metadata b/vapi/metadata/Gsk-4.0.metadata index 664731de6..c4eb479f1 100644 --- a/vapi/metadata/Gsk-4.0.metadata +++ b/vapi/metadata/Gsk-4.0.metadata @@ -11,4 +11,7 @@ repeating_linear_gradient_node_new *_node_get_* parent="Gsk.RenderNode" symbol_type="method" instance_idx=0 Texture + // Factory method + .new_for_data symbol_type="function" name="for_data" .new_for_data.data array + .new_for_pixbuf symbol_type="function" name="for_pixbuf" |