diff options
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" |