From 8adebae76605ca90a93d1e94f7fe13a34933b82e Mon Sep 17 00:00:00 2001 From: lenemter Date: Wed, 21 Jan 2026 22:07:27 +0300 Subject: [PATCH 1/2] Update CI --- .github/workflows/main.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a1a6bd689..135cadb9c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -91,9 +91,4 @@ jobs: - uses: actions/checkout@v6 - name: Lint run: | - io.elementary.vala-lint -d daemon - io.elementary.vala-lint -d daemon-gtk3 - io.elementary.vala-lint -d lib - io.elementary.vala-lint -d plugins - io.elementary.vala-lint -d src - io.elementary.vala-lint -d tests + io.elementary.vala-lint From b2056082bf78a255caa9c4fc4c06fb78ed1bb941 Mon Sep 17 00:00:00 2001 From: lenemter Date: Wed, 21 Jan 2026 22:07:32 +0300 Subject: [PATCH 2/2] Fix CI --- config.vala.in | 8 +- vapi/Clutter-13-custom.vala | 96 +++++------ vapi/Clutter-14-custom.vala | 44 +++--- vapi/Clutter-15-custom.vala | 6 +- vapi/Cogl-13-custom.vala | 308 ++++++++++++++++++------------------ vapi/Cogl-14-custom.vala | 182 ++++++++++----------- vapi/Cogl-15-custom.vala | 126 +++++++-------- vapi/Cogl-16-custom.vala | 126 +++++++-------- vapi/Cogl-17-custom.vala | 126 +++++++-------- 9 files changed, 511 insertions(+), 511 deletions(-) diff --git a/config.vala.in b/config.vala.in index d9aeb2bff..9c4c13105 100644 --- a/config.vala.in +++ b/config.vala.in @@ -6,8 +6,8 @@ */ namespace Config { - public const string GETTEXT_PACKAGE = "@GETTEXT_PACKAGE@"; - public const string LOCALEDIR = "@LOCALEDIR@"; - public const string VERSION = "@VERSION@"; - public const string PLUGINDIR = "@PLUGINDIR@"; + public const string GETTEXT_PACKAGE = "@GETTEXT_PACKAGE@"; + public const string LOCALEDIR = "@LOCALEDIR@"; + public const string VERSION = "@VERSION@"; + public const string PLUGINDIR = "@PLUGINDIR@"; } diff --git a/vapi/Clutter-13-custom.vala b/vapi/Clutter-13-custom.vala index e5c71c2d8..7875e0cad 100644 --- a/vapi/Clutter-13-custom.vala +++ b/vapi/Clutter-13-custom.vala @@ -1,53 +1,53 @@ namespace Clutter { - public struct Color { - [CCode (cname = "_vala_clutter_color_from_hls")] - public static Clutter.Color? from_hls (float hue, float luminance, float saturation) { - var color = Clutter.Color.alloc (); - color.init_from_hls (hue, luminance, saturation); - return color; - } - [CCode (cname = "_vala_clutter_color_from_pixel")] - public static Clutter.Color? from_pixel (uint32 pixel) { - var color = Clutter.Color.alloc (); - color.init_from_pixel (pixel); - return color; - } - [CCode (cname = "_vala_clutter_color_from_string")] - public static Clutter.Color? from_string (string str) { - var color = Clutter.Color.alloc (); - color.init_from_string (str); - return color; - } - [CCode (cname = "clutter_color_from_string")] - public bool parse_string (string str); - } + public struct Color { + [CCode (cname = "_vala_clutter_color_from_hls")] + public static Clutter.Color? from_hls (float hue, float luminance, float saturation) { + var color = Clutter.Color.alloc (); + color.init_from_hls (hue, luminance, saturation); + return color; + } + [CCode (cname = "_vala_clutter_color_from_pixel")] + public static Clutter.Color? from_pixel (uint32 pixel) { + var color = Clutter.Color.alloc (); + color.init_from_pixel (pixel); + return color; + } + [CCode (cname = "_vala_clutter_color_from_string")] + public static Clutter.Color? from_string (string str) { + var color = Clutter.Color.alloc (); + color.init_from_string (str); + return color; + } + [CCode (cname = "clutter_color_from_string")] + public bool parse_string (string str); + } - public interface Container : GLib.Object { - public void add (params Clutter.Actor[] actors); - [CCode (cname = "clutter_container_class_find_child_property")] - public class unowned GLib.ParamSpec find_child_property (string property_name); - [CCode (cname = "clutter_container_class_list_child_properties")] - public class unowned GLib.ParamSpec[] list_child_properties (); - } + public interface Container : GLib.Object { + public void add (params Clutter.Actor[] actors); + [CCode (cname = "clutter_container_class_find_child_property")] + public class unowned GLib.ParamSpec find_child_property (string property_name); + [CCode (cname = "clutter_container_class_list_child_properties")] + public class unowned GLib.ParamSpec[] list_child_properties (); + } - public struct Units { - [CCode (cname = "clutter_units_from_cm")] - public Units.from_cm (float cm); - [CCode (cname = "clutter_units_from_em")] - public Units.from_em (float em); - [CCode (cname = "clutter_units_from_em_for_font")] - public Units.from_em_for_font (string font_name, float em); - [CCode (cname = "clutter_units_from_mm")] - public Units.from_mm (float mm); - [CCode (cname = "clutter_units_from_pixels")] - public Units.from_pixels (int px); - [CCode (cname = "clutter_units_from_pt")] - public Units.from_pt (float pt); - [CCode (cname = "clutter_units_from_string")] - public Units.from_string (string str); - } + public struct Units { + [CCode (cname = "clutter_units_from_cm")] + public Units.from_cm (float cm); + [CCode (cname = "clutter_units_from_em")] + public Units.from_em (float em); + [CCode (cname = "clutter_units_from_em_for_font")] + public Units.from_em_for_font (string font_name, float em); + [CCode (cname = "clutter_units_from_mm")] + public Units.from_mm (float mm); + [CCode (cname = "clutter_units_from_pixels")] + public Units.from_pixels (int px); + [CCode (cname = "clutter_units_from_pt")] + public Units.from_pt (float pt); + [CCode (cname = "clutter_units_from_string")] + public Units.from_string (string str); + } - [CCode (cheader_filename = "clutter/clutter.h", has_copy_function = false, has_destroy_function = false, has_type_id = false)] - public struct Capture { - } + [CCode (cheader_filename = "clutter/clutter.h", has_copy_function = false, has_destroy_function = false, has_type_id = false)] + public struct Capture { + } } diff --git a/vapi/Clutter-14-custom.vala b/vapi/Clutter-14-custom.vala index 94010f0cd..ab5f1c5ba 100644 --- a/vapi/Clutter-14-custom.vala +++ b/vapi/Clutter-14-custom.vala @@ -1,24 +1,24 @@ namespace Clutter { - public struct Color { - [CCode (cname = "_vala_clutter_color_from_hls")] - public static Clutter.Color? from_hls (float hue, float luminance, float saturation) { - var color = Clutter.Color.alloc (); - color.init_from_hls (hue, luminance, saturation); - return color; - } - [CCode (cname = "_vala_clutter_color_from_pixel")] - public static Clutter.Color? from_pixel (uint32 pixel) { - var color = Clutter.Color.alloc (); - color.init_from_pixel (pixel); - return color; - } - [CCode (cname = "_vala_clutter_color_from_string")] - public static Clutter.Color? from_string (string str) { - var color = Clutter.Color.alloc (); - color.init_from_string (str); - return color; - } - [CCode (cname = "clutter_color_from_string")] - public bool parse_string (string str); - } + public struct Color { + [CCode (cname = "_vala_clutter_color_from_hls")] + public static Clutter.Color? from_hls (float hue, float luminance, float saturation) { + var color = Clutter.Color.alloc (); + color.init_from_hls (hue, luminance, saturation); + return color; + } + [CCode (cname = "_vala_clutter_color_from_pixel")] + public static Clutter.Color? from_pixel (uint32 pixel) { + var color = Clutter.Color.alloc (); + color.init_from_pixel (pixel); + return color; + } + [CCode (cname = "_vala_clutter_color_from_string")] + public static Clutter.Color? from_string (string str) { + var color = Clutter.Color.alloc (); + color.init_from_string (str); + return color; + } + [CCode (cname = "clutter_color_from_string")] + public bool parse_string (string str); + } } diff --git a/vapi/Clutter-15-custom.vala b/vapi/Clutter-15-custom.vala index fd012031f..4a3acfbc3 100644 --- a/vapi/Clutter-15-custom.vala +++ b/vapi/Clutter-15-custom.vala @@ -1,5 +1,5 @@ namespace Clutter { - [CCode (cheader_filename = "clutter/clutter.h", has_copy_function = false, has_destroy_function = false, has_type_id = false)] - public struct Capture { - } + [CCode (cheader_filename = "clutter/clutter.h", has_copy_function = false, has_destroy_function = false, has_type_id = false)] + public struct Capture { + } } diff --git a/vapi/Cogl-13-custom.vala b/vapi/Cogl-13-custom.vala index f6034717c..5ad9e216c 100644 --- a/vapi/Cogl-13-custom.vala +++ b/vapi/Cogl-13-custom.vala @@ -1,161 +1,161 @@ namespace Cogl { - public struct Color { - [Version (since = "1.4")] - [CCode (cname="cogl_color_init_from_4f")] - public Color.from_4f (float red, float green, float blue, float alpha); - [Version (since = "1.4")] - [CCode (cname="cogl_color_init_from_4fv")] - public Color.from_4fv (float color_array); - [Version (since = "1.4")] - [CCode (cname="cogl_color_init_from_4ub")] - public Color.from_4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha); - [Version (since = "1.16")] - [CCode (cname="cogl_color_init_from_hsl")] - public Color.from_hsl (float hue, float saturation, float luminance); - } + public struct Color { + [Version (since = "1.4")] + [CCode (cname="cogl_color_init_from_4f")] + public Color.from_4f (float red, float green, float blue, float alpha); + [Version (since = "1.4")] + [CCode (cname="cogl_color_init_from_4fv")] + public Color.from_4fv (float color_array); + [Version (since = "1.4")] + [CCode (cname="cogl_color_init_from_4ub")] + public Color.from_4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha); + [Version (since = "1.16")] + [CCode (cname="cogl_color_init_from_hsl")] + public Color.from_hsl (float hue, float saturation, float luminance); + } - [Compact] - [CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref")] - public class Shader : Cogl.Handle { - } + [Compact] + [CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref")] + public class Shader : Cogl.Handle { + } - [CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_primitive_get_gtype ()")] - public class Primitive : Cogl.Object { - [CCode (has_construct_function = false)] - protected Primitive (); - [Version (since = "1.10")] - public Cogl.Primitive copy (); - [Version (since = "1.16")] - public void draw (Cogl.Framebuffer framebuffer, Cogl.Pipeline pipeline); - public int get_first_vertex (); - public Cogl.VerticesMode get_mode (); - [Version (since = "1.8")] - public int get_n_vertices (); - [CCode (has_construct_function = false)] - [Version (since = "1.6")] - public Primitive.p2 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2[] data); - [CCode (has_construct_function = false)] - [Version (since = "1.6")] - public Primitive.p2c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2C4[] data); - [CCode (has_construct_function = false)] - [Version (since = "1.6")] - public Primitive.p2t2 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2T2[] data); - [CCode (has_construct_function = false)] - [Version (since = "1.6")] - public Primitive.p2t2c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2T2C4[] data); - [CCode (has_construct_function = false)] - [Version (since = "1.6")] - public Primitive.p3 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3[] data); - [CCode (has_construct_function = false)] - [Version (since = "1.6")] - public Primitive.p3c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3C4[] data); - [CCode (has_construct_function = false)] - [Version (since = "1.6")] - public Primitive.p3t2 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3T2[] data); - [CCode (has_construct_function = false)] - [Version (since = "1.6")] - public Primitive.p3t2c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3T2C4[] data); - public void set_first_vertex (int first_vertex); - public void set_mode (Cogl.VerticesMode mode); - [Version (since = "1.8")] - public void set_n_vertices (int n_vertices); - } + [CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_primitive_get_gtype ()")] + public class Primitive : Cogl.Object { + [CCode (has_construct_function = false)] + protected Primitive (); + [Version (since = "1.10")] + public Cogl.Primitive copy (); + [Version (since = "1.16")] + public void draw (Cogl.Framebuffer framebuffer, Cogl.Pipeline pipeline); + public int get_first_vertex (); + public Cogl.VerticesMode get_mode (); + [Version (since = "1.8")] + public int get_n_vertices (); + [CCode (has_construct_function = false)] + [Version (since = "1.6")] + public Primitive.p2 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2[] data); + [CCode (has_construct_function = false)] + [Version (since = "1.6")] + public Primitive.p2c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2C4[] data); + [CCode (has_construct_function = false)] + [Version (since = "1.6")] + public Primitive.p2t2 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2T2[] data); + [CCode (has_construct_function = false)] + [Version (since = "1.6")] + public Primitive.p2t2c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2T2C4[] data); + [CCode (has_construct_function = false)] + [Version (since = "1.6")] + public Primitive.p3 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3[] data); + [CCode (has_construct_function = false)] + [Version (since = "1.6")] + public Primitive.p3c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3C4[] data); + [CCode (has_construct_function = false)] + [Version (since = "1.6")] + public Primitive.p3t2 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3T2[] data); + [CCode (has_construct_function = false)] + [Version (since = "1.6")] + public Primitive.p3t2c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3T2C4[] data); + public void set_first_vertex (int first_vertex); + public void set_mode (Cogl.VerticesMode mode); + [Version (since = "1.8")] + public void set_n_vertices (int n_vertices); + } - [Compact] - [CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref")] - public class Program : Cogl.Handle { - } + [Compact] + [CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref")] + public class Program : Cogl.Handle { + } - [Compact] - [CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref")] - public class Handle { - [CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_material")] - [Version (deprecated = true, deprecated_since = "1.16")] - public bool is_material (); - [CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_program")] - [Version (deprecated = true, deprecated_since = "1.16")] - public bool is_program (Cogl.Handle handle); - [CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_shader")] - [Version (deprecated = true, deprecated_since = "1.16")] - public bool is_shader (); - [CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_texture")] - public bool is_texture (); - } + [Compact] + [CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref")] + public class Handle { + [CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_material")] + [Version (deprecated = true, deprecated_since = "1.16")] + public bool is_material (); + [CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_program")] + [Version (deprecated = true, deprecated_since = "1.16")] + public bool is_program (Cogl.Handle handle); + [CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_shader")] + [Version (deprecated = true, deprecated_since = "1.16")] + public bool is_shader (); + [CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_texture")] + public bool is_texture (); + } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP2 { - public float x; - public float y; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP2C4 { - public float x; - public float y; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP2T2 { - public float x; - public float y; - public float s; - public float t; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP2T2C4 { - public float x; - public float y; - public float s; - public float t; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP3 { - public float x; - public float y; - public float z; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP3C4 { - public float x; - public float y; - public float z; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP3T2 { - public float x; - public float y; - public float z; - public float s; - public float t; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP3T2C4 { - public float x; - public float y; - public float z; - public float s; - public float t; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP2 { + public float x; + public float y; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP2C4 { + public float x; + public float y; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP2T2 { + public float x; + public float y; + public float s; + public float t; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP2T2C4 { + public float x; + public float y; + public float s; + public float t; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP3 { + public float x; + public float y; + public float z; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP3C4 { + public float x; + public float y; + public float z; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP3T2 { + public float x; + public float y; + public float z; + public float s; + public float t; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP3T2C4 { + public float x; + public float y; + public float z; + public float s; + public float t; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } } diff --git a/vapi/Cogl-14-custom.vala b/vapi/Cogl-14-custom.vala index 6e81e067c..c33365e7c 100644 --- a/vapi/Cogl-14-custom.vala +++ b/vapi/Cogl-14-custom.vala @@ -1,93 +1,93 @@ namespace Cogl { - public struct Color { - [Version (since = "1.4")] - [CCode (cname="cogl_color_init_from_4f")] - public Color.from_4f (float red, float green, float blue, float alpha); - [Version (since = "1.4")] - [CCode (cname="cogl_color_init_from_4fv")] - public Color.from_4fv (float color_array); - [Version (since = "1.16")] - [CCode (cname="cogl_color_init_from_hsl")] - public Color.from_hsl (float hue, float saturation, float luminance); - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP2 { - public float x; - public float y; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP2C4 { - public float x; - public float y; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP2T2 { - public float x; - public float y; - public float s; - public float t; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP2T2C4 { - public float x; - public float y; - public float s; - public float t; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP3 { - public float x; - public float y; - public float z; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP3C4 { - public float x; - public float y; - public float z; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP3T2 { - public float x; - public float y; - public float z; - public float s; - public float t; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - [Version (since = "1.6")] - public struct VertexP3T2C4 { - public float x; - public float y; - public float z; - public float s; - public float t; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } - [CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIXEL_FORMAT_", type_id = "cogl_pixel_format_get_type ()")] - public enum PixelFormat { - CAIRO_ARGB32_COMPAT; - } + public struct Color { + [Version (since = "1.4")] + [CCode (cname="cogl_color_init_from_4f")] + public Color.from_4f (float red, float green, float blue, float alpha); + [Version (since = "1.4")] + [CCode (cname="cogl_color_init_from_4fv")] + public Color.from_4fv (float color_array); + [Version (since = "1.16")] + [CCode (cname="cogl_color_init_from_hsl")] + public Color.from_hsl (float hue, float saturation, float luminance); + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP2 { + public float x; + public float y; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP2C4 { + public float x; + public float y; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP2T2 { + public float x; + public float y; + public float s; + public float t; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP2T2C4 { + public float x; + public float y; + public float s; + public float t; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP3 { + public float x; + public float y; + public float z; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP3C4 { + public float x; + public float y; + public float z; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP3T2 { + public float x; + public float y; + public float z; + public float s; + public float t; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + [Version (since = "1.6")] + public struct VertexP3T2C4 { + public float x; + public float y; + public float z; + public float s; + public float t; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } + [CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIXEL_FORMAT_", type_id = "cogl_pixel_format_get_type ()")] + public enum PixelFormat { + CAIRO_ARGB32_COMPAT; + } } diff --git a/vapi/Cogl-15-custom.vala b/vapi/Cogl-15-custom.vala index 90d46b330..273027c7a 100644 --- a/vapi/Cogl-15-custom.vala +++ b/vapi/Cogl-15-custom.vala @@ -1,66 +1,66 @@ namespace Cogl { - public struct Color { - [CCode (cname="cogl_color_init_from_4f")] - public Color.from_4f (float red, float green, float blue, float alpha); - [CCode (cname="cogl_color_init_from_hsl")] - public Color.from_hsl (float hue, float saturation, float luminance); - [CCode (cname = "_vala_cogl_color_from_string")] - public static Cogl.Color? from_string (string str) { - Cogl.Color color = {}; - if (color.init_from_string (str)) - return color; + public struct Color { + [CCode (cname="cogl_color_init_from_4f")] + public Color.from_4f (float red, float green, float blue, float alpha); + [CCode (cname="cogl_color_init_from_hsl")] + public Color.from_hsl (float hue, float saturation, float luminance); + [CCode (cname = "_vala_cogl_color_from_string")] + public static Cogl.Color? from_string (string str) { + Cogl.Color color = {}; + if (color.init_from_string (str)) + return color; - return null; - } - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP2 { - public float x; - public float y; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP2C4 { - public float x; - public float y; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP2T2 { - public float x; - public float y; - public float s; - public float t; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP2T2C4 { - public float x; - public float y; - public float s; - public float t; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP3 { - public float x; - public float y; - public float z; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP3T2 { - public float x; - public float y; - public float z; - public float s; - public float t; - } - [CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIXEL_FORMAT_", type_id = "cogl_pixel_format_get_type ()")] - public enum PixelFormat { - CAIRO_ARGB32_COMPAT; - } + return null; + } + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP2 { + public float x; + public float y; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP2C4 { + public float x; + public float y; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP2T2 { + public float x; + public float y; + public float s; + public float t; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP2T2C4 { + public float x; + public float y; + public float s; + public float t; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP3 { + public float x; + public float y; + public float z; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP3T2 { + public float x; + public float y; + public float z; + public float s; + public float t; + } + [CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIXEL_FORMAT_", type_id = "cogl_pixel_format_get_type ()")] + public enum PixelFormat { + CAIRO_ARGB32_COMPAT; + } } diff --git a/vapi/Cogl-16-custom.vala b/vapi/Cogl-16-custom.vala index 90d46b330..273027c7a 100644 --- a/vapi/Cogl-16-custom.vala +++ b/vapi/Cogl-16-custom.vala @@ -1,66 +1,66 @@ namespace Cogl { - public struct Color { - [CCode (cname="cogl_color_init_from_4f")] - public Color.from_4f (float red, float green, float blue, float alpha); - [CCode (cname="cogl_color_init_from_hsl")] - public Color.from_hsl (float hue, float saturation, float luminance); - [CCode (cname = "_vala_cogl_color_from_string")] - public static Cogl.Color? from_string (string str) { - Cogl.Color color = {}; - if (color.init_from_string (str)) - return color; + public struct Color { + [CCode (cname="cogl_color_init_from_4f")] + public Color.from_4f (float red, float green, float blue, float alpha); + [CCode (cname="cogl_color_init_from_hsl")] + public Color.from_hsl (float hue, float saturation, float luminance); + [CCode (cname = "_vala_cogl_color_from_string")] + public static Cogl.Color? from_string (string str) { + Cogl.Color color = {}; + if (color.init_from_string (str)) + return color; - return null; - } - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP2 { - public float x; - public float y; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP2C4 { - public float x; - public float y; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP2T2 { - public float x; - public float y; - public float s; - public float t; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP2T2C4 { - public float x; - public float y; - public float s; - public float t; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP3 { - public float x; - public float y; - public float z; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP3T2 { - public float x; - public float y; - public float z; - public float s; - public float t; - } - [CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIXEL_FORMAT_", type_id = "cogl_pixel_format_get_type ()")] - public enum PixelFormat { - CAIRO_ARGB32_COMPAT; - } + return null; + } + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP2 { + public float x; + public float y; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP2C4 { + public float x; + public float y; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP2T2 { + public float x; + public float y; + public float s; + public float t; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP2T2C4 { + public float x; + public float y; + public float s; + public float t; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP3 { + public float x; + public float y; + public float z; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP3T2 { + public float x; + public float y; + public float z; + public float s; + public float t; + } + [CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIXEL_FORMAT_", type_id = "cogl_pixel_format_get_type ()")] + public enum PixelFormat { + CAIRO_ARGB32_COMPAT; + } } diff --git a/vapi/Cogl-17-custom.vala b/vapi/Cogl-17-custom.vala index 90d46b330..273027c7a 100644 --- a/vapi/Cogl-17-custom.vala +++ b/vapi/Cogl-17-custom.vala @@ -1,66 +1,66 @@ namespace Cogl { - public struct Color { - [CCode (cname="cogl_color_init_from_4f")] - public Color.from_4f (float red, float green, float blue, float alpha); - [CCode (cname="cogl_color_init_from_hsl")] - public Color.from_hsl (float hue, float saturation, float luminance); - [CCode (cname = "_vala_cogl_color_from_string")] - public static Cogl.Color? from_string (string str) { - Cogl.Color color = {}; - if (color.init_from_string (str)) - return color; + public struct Color { + [CCode (cname="cogl_color_init_from_4f")] + public Color.from_4f (float red, float green, float blue, float alpha); + [CCode (cname="cogl_color_init_from_hsl")] + public Color.from_hsl (float hue, float saturation, float luminance); + [CCode (cname = "_vala_cogl_color_from_string")] + public static Cogl.Color? from_string (string str) { + Cogl.Color color = {}; + if (color.init_from_string (str)) + return color; - return null; - } - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP2 { - public float x; - public float y; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP2C4 { - public float x; - public float y; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP2T2 { - public float x; - public float y; - public float s; - public float t; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP2T2C4 { - public float x; - public float y; - public float s; - public float t; - public uint8 r; - public uint8 g; - public uint8 b; - public uint8 a; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP3 { - public float x; - public float y; - public float z; - } - [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] - public struct VertexP3T2 { - public float x; - public float y; - public float z; - public float s; - public float t; - } - [CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIXEL_FORMAT_", type_id = "cogl_pixel_format_get_type ()")] - public enum PixelFormat { - CAIRO_ARGB32_COMPAT; - } + return null; + } + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP2 { + public float x; + public float y; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP2C4 { + public float x; + public float y; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP2T2 { + public float x; + public float y; + public float s; + public float t; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP2T2C4 { + public float x; + public float y; + public float s; + public float t; + public uint8 r; + public uint8 g; + public uint8 b; + public uint8 a; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP3 { + public float x; + public float y; + public float z; + } + [CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)] + public struct VertexP3T2 { + public float x; + public float y; + public float z; + public float s; + public float t; + } + [CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIXEL_FORMAT_", type_id = "cogl_pixel_format_get_type ()")] + public enum PixelFormat { + CAIRO_ARGB32_COMPAT; + } }