From 82b34aabda8a829e8950a5da8cd6af7579c65e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Tue, 10 Mar 2020 12:17:06 +0100 Subject: [PATCH] mutter-cogl-path: Put CoglPath element into its own .vapi --- vapi/mutter-cogl-path-2.vapi | 35 +++++++++++++++++++++++++++++++++++ vapi/mutter-cogl-path-3.vapi | 34 ++++++++++++++++++++++++++++++++++ vapi/mutter-cogl-path-4.vapi | 34 ++++++++++++++++++++++++++++++++++ vapi/mutter-cogl-path-5.vapi | 34 ++++++++++++++++++++++++++++++++++ vapi/mutter-cogl-path-6.vapi | 34 ++++++++++++++++++++++++++++++++++ vapi/mutter-cogl.vapi | 31 ------------------------------- 6 files changed, 171 insertions(+), 31 deletions(-) diff --git a/vapi/mutter-cogl-path-2.vapi b/vapi/mutter-cogl-path-2.vapi index e69de29b..286894db 100644 --- a/vapi/mutter-cogl-path-2.vapi +++ b/vapi/mutter-cogl-path-2.vapi @@ -0,0 +1,35 @@ + +[CCode (gir_namespace = "CoglPath", gir_version = "2")] +namespace Cogl { + [CCode (cheader_filename = "cogl-path/cogl-path.h", copy_function = "cogl_path_copy", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref", type_id = "cogl_path_get_gtype")] + [Compact] + public class Path { + public void arc (float center_x, float center_y, float radius_x, float radius_y, float angle_1, float angle_2); + public void close (); + public Cogl.Path copy (); + public void curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3); + public void ellipse (float center_x, float center_y, float radius_x, float radius_y); + public void fill (); + public void fill_preserve (); + public Cogl.PathFillRule get_fill_rule (); + public void line (float x_1, float y_1, float x_2, float y_2); + public void line_to (float x, float y); + public void move_to (float x, float y); + public Path (); + public void polygon ([CCode (array_length = false)] float[] coords, int num_points); + public void polyline ([CCode (array_length = false)] float[] coords, int num_points); + public void rectangle (float x_1, float y_1, float x_2, float y_2); + public void rel_curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3); + public void rel_line_to (float x, float y); + public void rel_move_to (float x, float y); + public void round_rectangle (float x_1, float y_1, float x_2, float y_2, float radius, float arc_step); + public void set_fill_rule (Cogl.PathFillRule fill_rule); + public void stroke (); + public void stroke_preserve (); + } + [CCode (cheader_filename = "cogl-path/cogl-path.h", cprefix = "COGL_PATH_FILL_RULE_", has_type_id = false)] + public enum PathFillRule { + NON_ZERO, + EVEN_ODD + } +} diff --git a/vapi/mutter-cogl-path-3.vapi b/vapi/mutter-cogl-path-3.vapi index e69de29b..2d9d14b5 100644 --- a/vapi/mutter-cogl-path-3.vapi +++ b/vapi/mutter-cogl-path-3.vapi @@ -0,0 +1,34 @@ +[CCode (gir_namespace = "CoglPath", gir_version = "3")] +namespace Cogl { + [CCode (cheader_filename = "cogl-path/cogl-path.h", copy_function = "cogl_path_copy", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref", type_id = "cogl_path_get_gtype")] + [Compact] + public class Path { + public void arc (float center_x, float center_y, float radius_x, float radius_y, float angle_1, float angle_2); + public void close (); + public Cogl.Path copy (); + public void curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3); + public void ellipse (float center_x, float center_y, float radius_x, float radius_y); + public void fill (); + public void fill_preserve (); + public Cogl.PathFillRule get_fill_rule (); + public void line (float x_1, float y_1, float x_2, float y_2); + public void line_to (float x, float y); + public void move_to (float x, float y); + public Path (); + public void polygon ([CCode (array_length = false)] float[] coords, int num_points); + public void polyline ([CCode (array_length = false)] float[] coords, int num_points); + public void rectangle (float x_1, float y_1, float x_2, float y_2); + public void rel_curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3); + public void rel_line_to (float x, float y); + public void rel_move_to (float x, float y); + public void round_rectangle (float x_1, float y_1, float x_2, float y_2, float radius, float arc_step); + public void set_fill_rule (Cogl.PathFillRule fill_rule); + public void stroke (); + public void stroke_preserve (); + } + [CCode (cheader_filename = "cogl-path/cogl-path.h", cprefix = "COGL_PATH_FILL_RULE_", has_type_id = false)] + public enum PathFillRule { + NON_ZERO, + EVEN_ODD + } +} diff --git a/vapi/mutter-cogl-path-4.vapi b/vapi/mutter-cogl-path-4.vapi index e69de29b..23accc3a 100644 --- a/vapi/mutter-cogl-path-4.vapi +++ b/vapi/mutter-cogl-path-4.vapi @@ -0,0 +1,34 @@ +[CCode (gir_namespace = "CoglPath", gir_version = "4")] +namespace Cogl { + [CCode (cheader_filename = "cogl-path/cogl-path.h", copy_function = "cogl_path_copy", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref", type_id = "cogl_path_get_gtype")] + [Compact] + public class Path { + public void arc (float center_x, float center_y, float radius_x, float radius_y, float angle_1, float angle_2); + public void close (); + public Cogl.Path copy (); + public void curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3); + public void ellipse (float center_x, float center_y, float radius_x, float radius_y); + public void fill (); + public void fill_preserve (); + public Cogl.PathFillRule get_fill_rule (); + public void line (float x_1, float y_1, float x_2, float y_2); + public void line_to (float x, float y); + public void move_to (float x, float y); + public Path (); + public void polygon ([CCode (array_length = false)] float[] coords, int num_points); + public void polyline ([CCode (array_length = false)] float[] coords, int num_points); + public void rectangle (float x_1, float y_1, float x_2, float y_2); + public void rel_curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3); + public void rel_line_to (float x, float y); + public void rel_move_to (float x, float y); + public void round_rectangle (float x_1, float y_1, float x_2, float y_2, float radius, float arc_step); + public void set_fill_rule (Cogl.PathFillRule fill_rule); + public void stroke (); + public void stroke_preserve (); + } + [CCode (cheader_filename = "cogl-path/cogl-path.h", cprefix = "COGL_PATH_FILL_RULE_", has_type_id = false)] + public enum PathFillRule { + NON_ZERO, + EVEN_ODD + } +} diff --git a/vapi/mutter-cogl-path-5.vapi b/vapi/mutter-cogl-path-5.vapi index e69de29b..93cecfa8 100644 --- a/vapi/mutter-cogl-path-5.vapi +++ b/vapi/mutter-cogl-path-5.vapi @@ -0,0 +1,34 @@ +[CCode (gir_namespace = "CoglPath", gir_version = "5")] +namespace Cogl { + [CCode (cheader_filename = "cogl-path/cogl-path.h", copy_function = "cogl_path_copy", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref", type_id = "cogl_path_get_gtype")] + [Compact] + public class Path { + public void arc (float center_x, float center_y, float radius_x, float radius_y, float angle_1, float angle_2); + public void close (); + public Cogl.Path copy (); + public void curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3); + public void ellipse (float center_x, float center_y, float radius_x, float radius_y); + public void fill (); + public void fill_preserve (); + public Cogl.PathFillRule get_fill_rule (); + public void line (float x_1, float y_1, float x_2, float y_2); + public void line_to (float x, float y); + public void move_to (float x, float y); + public Path (); + public void polygon ([CCode (array_length = false)] float[] coords, int num_points); + public void polyline ([CCode (array_length = false)] float[] coords, int num_points); + public void rectangle (float x_1, float y_1, float x_2, float y_2); + public void rel_curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3); + public void rel_line_to (float x, float y); + public void rel_move_to (float x, float y); + public void round_rectangle (float x_1, float y_1, float x_2, float y_2, float radius, float arc_step); + public void set_fill_rule (Cogl.PathFillRule fill_rule); + public void stroke (); + public void stroke_preserve (); + } + [CCode (cheader_filename = "cogl-path/cogl-path.h", cprefix = "COGL_PATH_FILL_RULE_", has_type_id = false)] + public enum PathFillRule { + NON_ZERO, + EVEN_ODD + } +} diff --git a/vapi/mutter-cogl-path-6.vapi b/vapi/mutter-cogl-path-6.vapi index e69de29b..da3fdc15 100644 --- a/vapi/mutter-cogl-path-6.vapi +++ b/vapi/mutter-cogl-path-6.vapi @@ -0,0 +1,34 @@ +[CCode (gir_namespace = "CoglPath", gir_version = "6")] +namespace Cogl { + [CCode (cheader_filename = "cogl-path/cogl-path.h", copy_function = "cogl_path_copy", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref", type_id = "cogl_path_get_gtype")] + [Compact] + public class Path { + public void arc (float center_x, float center_y, float radius_x, float radius_y, float angle_1, float angle_2); + public void close (); + public Cogl.Path copy (); + public void curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3); + public void ellipse (float center_x, float center_y, float radius_x, float radius_y); + public void fill (); + public void fill_preserve (); + public Cogl.PathFillRule get_fill_rule (); + public void line (float x_1, float y_1, float x_2, float y_2); + public void line_to (float x, float y); + public void move_to (float x, float y); + public Path (); + public void polygon ([CCode (array_length = false)] float[] coords, int num_points); + public void polyline ([CCode (array_length = false)] float[] coords, int num_points); + public void rectangle (float x_1, float y_1, float x_2, float y_2); + public void rel_curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3); + public void rel_line_to (float x, float y); + public void rel_move_to (float x, float y); + public void round_rectangle (float x_1, float y_1, float x_2, float y_2, float radius, float arc_step); + public void set_fill_rule (Cogl.PathFillRule fill_rule); + public void stroke (); + public void stroke_preserve (); + } + [CCode (cheader_filename = "cogl-path/cogl-path.h", cprefix = "COGL_PATH_FILL_RULE_", has_type_id = false)] + public enum PathFillRule { + NON_ZERO, + EVEN_ODD + } +} diff --git a/vapi/mutter-cogl.vapi b/vapi/mutter-cogl.vapi index 1ed7d44f..aeabde11 100644 --- a/vapi/mutter-cogl.vapi +++ b/vapi/mutter-cogl.vapi @@ -152,32 +152,6 @@ namespace Cogl { [Compact] public class PangoRenderer { } - [CCode (cheader_filename = "cogl/cogl.h", copy_function = "cogl_path_copy", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref", type_id = "cogl_path_get_gtype")] - [Compact] - public class Path { - public void arc (float center_x, float center_y, float radius_x, float radius_y, float angle_1, float angle_2); - public void close (); - public Cogl.Path copy (); - public void curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3); - public void ellipse (float center_x, float center_y, float radius_x, float radius_y); - public void fill (); - public void fill_preserve (); - public Cogl.PathFillRule get_fill_rule (); - public void line (float x_1, float y_1, float x_2, float y_2); - public void line_to (float x, float y); - public void move_to (float x, float y); - public Path (); - public void polygon ([CCode (array_length = false)] float[] coords, int num_points); - public void polyline ([CCode (array_length = false)] float[] coords, int num_points); - public void rectangle (float x_1, float y_1, float x_2, float y_2); - public void rel_curve_to (float x_1, float y_1, float x_2, float y_2, float x_3, float y_3); - public void rel_line_to (float x, float y); - public void rel_move_to (float x, float y); - public void round_rectangle (float x_1, float y_1, float x_2, float y_2, float radius, float arc_step); - public void set_fill_rule (Cogl.PathFillRule fill_rule); - public void stroke (); - public void stroke_preserve (); - } [CCode (cheader_filename = "cogl/cogl.h")] [Compact] public class PixelArray { @@ -510,11 +484,6 @@ namespace Cogl { CLAMP_TO_EDGE, AUTOMATIC } - [CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PATH_FILL_RULE_", has_type_id = false)] - public enum PathFillRule { - NON_ZERO, - EVEN_ODD - } [CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIXEL_FORMAT_", has_type_id = false)] public enum PixelFormat { ANY,