|
1 | 1 | namespace Clutter { |
2 | | - public struct Color { |
3 | | - [CCode (cname = "_vala_clutter_color_from_hls")] |
4 | | - public static Clutter.Color? from_hls (float hue, float luminance, float saturation) { |
5 | | - var color = Clutter.Color.alloc (); |
6 | | - color.init_from_hls (hue, luminance, saturation); |
7 | | - return color; |
8 | | - } |
9 | | - [CCode (cname = "_vala_clutter_color_from_pixel")] |
10 | | - public static Clutter.Color? from_pixel (uint32 pixel) { |
11 | | - var color = Clutter.Color.alloc (); |
12 | | - color.init_from_pixel (pixel); |
13 | | - return color; |
14 | | - } |
15 | | - [CCode (cname = "_vala_clutter_color_from_string")] |
16 | | - public static Clutter.Color? from_string (string str) { |
17 | | - var color = Clutter.Color.alloc (); |
18 | | - color.init_from_string (str); |
19 | | - return color; |
20 | | - } |
21 | | - [CCode (cname = "clutter_color_from_string")] |
22 | | - public bool parse_string (string str); |
23 | | - } |
| 2 | + public struct Color { |
| 3 | + [CCode (cname = "_vala_clutter_color_from_hls")] |
| 4 | + public static Clutter.Color? from_hls (float hue, float luminance, float saturation) { |
| 5 | + var color = Clutter.Color.alloc (); |
| 6 | + color.init_from_hls (hue, luminance, saturation); |
| 7 | + return color; |
| 8 | + } |
| 9 | + [CCode (cname = "_vala_clutter_color_from_pixel")] |
| 10 | + public static Clutter.Color? from_pixel (uint32 pixel) { |
| 11 | + var color = Clutter.Color.alloc (); |
| 12 | + color.init_from_pixel (pixel); |
| 13 | + return color; |
| 14 | + } |
| 15 | + [CCode (cname = "_vala_clutter_color_from_string")] |
| 16 | + public static Clutter.Color? from_string (string str) { |
| 17 | + var color = Clutter.Color.alloc (); |
| 18 | + color.init_from_string (str); |
| 19 | + return color; |
| 20 | + } |
| 21 | + [CCode (cname = "clutter_color_from_string")] |
| 22 | + public bool parse_string (string str); |
| 23 | + } |
24 | 24 |
|
25 | | - public interface Container : GLib.Object { |
26 | | - public void add (params Clutter.Actor[] actors); |
27 | | - [CCode (cname = "clutter_container_class_find_child_property")] |
28 | | - public class unowned GLib.ParamSpec find_child_property (string property_name); |
29 | | - [CCode (cname = "clutter_container_class_list_child_properties")] |
30 | | - public class unowned GLib.ParamSpec[] list_child_properties (); |
31 | | - } |
| 25 | + public interface Container : GLib.Object { |
| 26 | + public void add (params Clutter.Actor[] actors); |
| 27 | + [CCode (cname = "clutter_container_class_find_child_property")] |
| 28 | + public class unowned GLib.ParamSpec find_child_property (string property_name); |
| 29 | + [CCode (cname = "clutter_container_class_list_child_properties")] |
| 30 | + public class unowned GLib.ParamSpec[] list_child_properties (); |
| 31 | + } |
32 | 32 |
|
33 | | - public struct Units { |
34 | | - [CCode (cname = "clutter_units_from_cm")] |
35 | | - public Units.from_cm (float cm); |
36 | | - [CCode (cname = "clutter_units_from_em")] |
37 | | - public Units.from_em (float em); |
38 | | - [CCode (cname = "clutter_units_from_em_for_font")] |
39 | | - public Units.from_em_for_font (string font_name, float em); |
40 | | - [CCode (cname = "clutter_units_from_mm")] |
41 | | - public Units.from_mm (float mm); |
42 | | - [CCode (cname = "clutter_units_from_pixels")] |
43 | | - public Units.from_pixels (int px); |
44 | | - [CCode (cname = "clutter_units_from_pt")] |
45 | | - public Units.from_pt (float pt); |
46 | | - [CCode (cname = "clutter_units_from_string")] |
47 | | - public Units.from_string (string str); |
48 | | - } |
| 33 | + public struct Units { |
| 34 | + [CCode (cname = "clutter_units_from_cm")] |
| 35 | + public Units.from_cm (float cm); |
| 36 | + [CCode (cname = "clutter_units_from_em")] |
| 37 | + public Units.from_em (float em); |
| 38 | + [CCode (cname = "clutter_units_from_em_for_font")] |
| 39 | + public Units.from_em_for_font (string font_name, float em); |
| 40 | + [CCode (cname = "clutter_units_from_mm")] |
| 41 | + public Units.from_mm (float mm); |
| 42 | + [CCode (cname = "clutter_units_from_pixels")] |
| 43 | + public Units.from_pixels (int px); |
| 44 | + [CCode (cname = "clutter_units_from_pt")] |
| 45 | + public Units.from_pt (float pt); |
| 46 | + [CCode (cname = "clutter_units_from_string")] |
| 47 | + public Units.from_string (string str); |
| 48 | + } |
49 | 49 |
|
50 | | - [CCode (cheader_filename = "clutter/clutter.h", has_copy_function = false, has_destroy_function = false, has_type_id = false)] |
51 | | - public struct Capture { |
52 | | - } |
| 50 | + [CCode (cheader_filename = "clutter/clutter.h", has_copy_function = false, has_destroy_function = false, has_type_id = false)] |
| 51 | + public struct Capture { |
| 52 | + } |
53 | 53 | } |
0 commit comments