/usr/share/vala/vapi/colord.vapi is in libcolord-dev 1.2.12-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 | /* colord.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Cd", gir_namespace = "Colord", gir_version = "1.0", lower_case_cprefix = "cd_")]
namespace Cd {
[CCode (cheader_filename = "colord.h", type_id = "cd_client_get_type ()")]
public class Client : GLib.Object {
[CCode (has_construct_function = false)]
public Client ();
public async bool connect (GLib.Cancellable? cancellable) throws GLib.Error;
public bool connect_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
public async Cd.Device create_device (string id, Cd.ObjectScope scope, GLib.HashTable<string,string>? properties, GLib.Cancellable? cancellable) throws GLib.Error;
public Cd.Device create_device_sync (string id, Cd.ObjectScope scope, GLib.HashTable<string,string>? properties, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async Cd.Profile create_profile (string id, Cd.ObjectScope scope, GLib.HashTable<string,string>? properties, GLib.Cancellable? cancellable) throws GLib.Error;
public async Cd.Profile create_profile_for_icc (Cd.Icc icc, Cd.ObjectScope scope, GLib.Cancellable? cancellable) throws GLib.Error;
public Cd.Profile create_profile_for_icc_sync (Cd.Icc icc, Cd.ObjectScope scope, GLib.Cancellable? cancellable = null) throws GLib.Error;
public Cd.Profile create_profile_sync (string id, Cd.ObjectScope scope, GLib.HashTable<string,string>? properties, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool delete_device (Cd.Device device, GLib.Cancellable? cancellable) throws GLib.Error;
public bool delete_device_sync (Cd.Device device, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool delete_profile (Cd.Profile profile, GLib.Cancellable? cancellable) throws GLib.Error;
public bool delete_profile_sync (Cd.Profile profile, GLib.Cancellable? cancellable = null) throws GLib.Error;
public static Cd.ClientError error_from_string (string error_desc);
public static GLib.Quark error_quark ();
public static unowned string error_to_string (Cd.ClientError error_enum);
public async Cd.Device find_device (string id, GLib.Cancellable? cancellable) throws GLib.Error;
public async Cd.Device find_device_by_property (string key, string value, GLib.Cancellable? cancellable) throws GLib.Error;
public Cd.Device find_device_by_property_sync (string key, string value, GLib.Cancellable? cancellable = null) throws GLib.Error;
public Cd.Device find_device_sync (string id, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async Cd.Profile find_profile (string id, GLib.Cancellable? cancellable) throws GLib.Error;
public async Cd.Profile find_profile_by_filename (string filename, GLib.Cancellable? cancellable) throws GLib.Error;
public Cd.Profile find_profile_by_filename_sync (string filename, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async Cd.Profile find_profile_by_property (string key, string value, GLib.Cancellable? cancellable) throws GLib.Error;
public Cd.Profile find_profile_by_property_sync (string key, string value, GLib.Cancellable? cancellable = null) throws GLib.Error;
public Cd.Profile find_profile_sync (string id, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async Cd.Sensor find_sensor (string id, GLib.Cancellable? cancellable) throws GLib.Error;
public Cd.Sensor find_sensor_sync (string id, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool get_connected ();
public unowned string get_daemon_version ();
public async GLib.GenericArray<Cd.Device> get_devices (GLib.Cancellable? cancellable) throws GLib.Error;
public async GLib.GenericArray<Cd.Device> get_devices_by_kind (Cd.DeviceKind kind, GLib.Cancellable? cancellable) throws GLib.Error;
public GLib.GenericArray<weak Cd.Device> get_devices_by_kind_sync (Cd.DeviceKind kind, GLib.Cancellable? cancellable = null) throws GLib.Error;
public GLib.GenericArray<weak Cd.Device> get_devices_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool get_has_server ();
public async GLib.GenericArray<Cd.Profile> get_profiles (GLib.Cancellable? cancellable) throws GLib.Error;
public GLib.GenericArray<weak Cd.Profile> get_profiles_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
public async GLib.GenericArray<Cd.Sensor> get_sensors (GLib.Cancellable? cancellable) throws GLib.Error;
public GLib.GenericArray<weak Cd.Sensor> get_sensors_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
public async Cd.Profile get_standard_space (Cd.StandardSpace standard_space, GLib.Cancellable? cancellable) throws GLib.Error;
public Cd.Profile get_standard_space_sync (Cd.StandardSpace standard_space, GLib.Cancellable? cancellable = null) throws GLib.Error;
public unowned string get_system_model ();
public unowned string get_system_vendor ();
public async Cd.Profile import_profile (GLib.File file, GLib.Cancellable? cancellable) throws GLib.Error;
public Cd.Profile import_profile_sync (GLib.File file, GLib.Cancellable? cancellable = null) throws GLib.Error;
public string connected { get; }
public string daemon_version { get; }
public string system_model { get; }
public string system_vendor { get; }
public virtual signal void changed ();
public virtual signal void device_added (Cd.Device device);
public virtual signal void device_changed (Cd.Device device);
public virtual signal void device_removed (Cd.Device device);
public virtual signal void profile_added (Cd.Profile profile);
public virtual signal void profile_changed (Cd.Profile profile);
public virtual signal void profile_removed (Cd.Profile profile);
public virtual signal void sensor_added (Cd.Sensor sensor);
public virtual signal void sensor_changed (Cd.Sensor sensor);
public virtual signal void sensor_removed (Cd.Sensor sensor);
}
[CCode (cheader_filename = "colord.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "cd_color_lab_get_type ()")]
[Compact]
public class ColorLab {
public double L;
public double a;
public double b;
[CCode (has_construct_function = false)]
public ColorLab ();
public void copy (Cd.ColorLab dest);
public double delta_e76 (Cd.ColorLab p2);
public Cd.ColorLab dup ();
public void free ();
public void @set (double L, double a, double b);
}
[CCode (cheader_filename = "colord.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "cd_color_rgb_get_type ()")]
[Compact]
public class ColorRGB {
public double B;
public double G;
public double R;
[CCode (has_construct_function = false)]
public ColorRGB ();
public static GLib.GenericArray<Cd.ColorRGB> array_interpolate (GLib.GenericArray<Cd.ColorRGB> array, uint new_length);
public static bool array_is_monotonic (GLib.GenericArray<Cd.ColorRGB> array);
public static GLib.GenericArray<Cd.ColorRGB> array_new ();
public void copy (Cd.ColorRGB dest);
public Cd.ColorRGB dup ();
public void free ();
public void interpolate (Cd.ColorRGB p2, double index, Cd.ColorRGB result);
public void @set (double R, double G, double B);
public void to_rgb8 (Cd.ColorRGB8 dest);
}
[CCode (cheader_filename = "colord.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "cd_color_swatch_get_type ()")]
[Compact]
public class ColorSwatch {
[CCode (has_construct_function = false)]
public ColorSwatch ();
public Cd.ColorSwatch dup ();
public void free ();
public unowned string get_name ();
public unowned Cd.ColorLab get_value ();
public void set_name (string name);
public void set_value (Cd.ColorLab value);
}
[CCode (cheader_filename = "colord.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "cd_color_uvw_get_type ()")]
[Compact]
public class ColorUVW {
public double U;
public double V;
public double W;
[CCode (has_construct_function = false)]
public ColorUVW ();
public void copy (Cd.ColorUVW dest);
public Cd.ColorUVW dup ();
public void free ();
public double get_chroma_difference (Cd.ColorUVW p2);
public void @set (double U, double V, double W);
public void set_planckian_locus (double temp);
}
[CCode (cheader_filename = "colord.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "cd_color_xyz_get_type ()")]
[Compact]
public class ColorXYZ {
public double X;
public double Y;
public double Z;
[CCode (has_construct_function = false)]
public ColorXYZ ();
public void clear ();
public void copy (Cd.ColorXYZ dest);
public Cd.ColorXYZ dup ();
public void free ();
public void normalize (double max, Cd.ColorXYZ dest);
public void @set (double X, double Y, double Z);
public double to_cct ();
public void to_uvw (Cd.ColorXYZ whitepoint, Cd.ColorUVW dest);
public void to_yxy (Cd.ColorYxy dest);
}
[CCode (cheader_filename = "colord.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "cd_color_yxy_get_type ()")]
[Compact]
public class ColorYxy {
public double Y;
public double x;
public double y;
[CCode (has_construct_function = false)]
public ColorYxy ();
public void copy (Cd.ColorYxy dest);
public Cd.ColorYxy dup ();
public void free ();
public void @set (double Y, double x, double y);
public void to_uvw (Cd.ColorUVW dest);
public void to_xyz (Cd.ColorXYZ dest);
}
[CCode (cheader_filename = "colord.h", type_id = "cd_device_get_type ()")]
public class Device : GLib.Object {
[CCode (has_construct_function = false)]
public Device ();
public async bool add_profile (Cd.DeviceRelation relation, Cd.Profile profile, GLib.Cancellable? cancellable) throws GLib.Error;
public bool add_profile_sync (Cd.DeviceRelation relation, Cd.Profile profile, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool connect (GLib.Cancellable? cancellable) throws GLib.Error;
public bool connect_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool equal (Cd.Device device2);
public static Cd.DeviceError error_from_string (string error_desc);
public static GLib.Quark error_quark ();
public static unowned string error_to_string (Cd.DeviceError error_enum);
public Cd.Colorspace get_colorspace ();
public bool get_connected ();
public uint64 get_created ();
public Cd.Profile get_default_profile ();
public bool get_embedded ();
public bool get_enabled ();
public unowned string get_format ();
public unowned string get_id ();
public Cd.DeviceKind get_kind ();
public GLib.HashTable<weak string,weak string> get_metadata ();
public unowned string get_metadata_item (string key);
public Cd.DeviceMode get_mode ();
public unowned string get_model ();
public uint64 get_modified ();
public unowned string get_object_path ();
public uint get_owner ();
public async Cd.Profile get_profile_for_qualifiers (string qualifiers, GLib.Cancellable? cancellable) throws GLib.Error;
public Cd.Profile get_profile_for_qualifiers_sync (string qualifiers, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async Cd.DeviceRelation get_profile_relation (Cd.Profile profile, GLib.Cancellable? cancellable) throws GLib.Error;
public Cd.DeviceRelation get_profile_relation_sync (Cd.Profile profile, GLib.Cancellable? cancellable = null) throws GLib.Error;
public GLib.GenericArray<weak Cd.Profile> get_profiles ();
[CCode (array_length = false, array_null_terminated = true)]
public unowned string[] get_profiling_inhibitors ();
public Cd.ObjectScope get_scope ();
public unowned string get_seat ();
public unowned string get_serial ();
public unowned string get_vendor ();
public static Cd.DeviceKind kind_from_string (string kind);
public static Cd.ProfileKind kind_to_profile_kind (Cd.DeviceKind device_kind);
public static unowned string kind_to_string (Cd.DeviceKind kind_enum);
public async bool make_profile_default (Cd.Profile profile, GLib.Cancellable? cancellable) throws GLib.Error;
public bool make_profile_default_sync (Cd.Profile profile, GLib.Cancellable? cancellable = null) throws GLib.Error;
public static Cd.DeviceMode mode_from_string (string device_mode);
public static unowned string mode_to_string (Cd.DeviceMode device_mode);
public async bool profiling_inhibit (GLib.Cancellable? cancellable) throws GLib.Error;
public bool profiling_inhibit_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool profiling_uninhibit (GLib.Cancellable? cancellable) throws GLib.Error;
public bool profiling_uninhibit_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
public static Cd.DeviceRelation relation_from_string (string device_relation);
public static unowned string relation_to_string (Cd.DeviceRelation device_relation);
public async bool remove_profile (Cd.Profile profile, GLib.Cancellable? cancellable) throws GLib.Error;
public bool remove_profile_sync (Cd.Profile profile, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool set_colorspace_sync (Cd.Colorspace colorspace, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool set_enabled (bool enabled, GLib.Cancellable? cancellable) throws GLib.Error;
public bool set_enabled_sync (bool enabled, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool set_kind_sync (Cd.DeviceKind kind, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool set_mode_sync (Cd.DeviceMode mode, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool set_model_sync (string value, GLib.Cancellable? cancellable = null) throws GLib.Error;
public void set_object_path (string object_path);
public async bool set_property (string key, string value, GLib.Cancellable? cancellable) throws GLib.Error;
public bool set_property_sync (string key, string value, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool set_serial_sync (string value, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool set_vendor_sync (string value, GLib.Cancellable? cancellable = null) throws GLib.Error;
public string to_string ();
[CCode (has_construct_function = false)]
public Device.with_object_path (string object_path);
public uint colorspace { get; }
public string connected { get; }
public uint64 created { get; }
public string embedded { get; }
public bool enabled { get; }
public string format { get; }
public string id { get; }
public uint kind { get; }
public uint mode { get; }
public string model { get; }
public uint64 modified { get; }
public string object_path { get; set construct; }
public uint owner { get; }
[CCode (array_length = false, array_null_terminated = true)]
public string[] profiling_inhibitors { get; }
public uint scope { get; }
public string seat { get; }
public string serial { get; }
public string vendor { get; }
public virtual signal void changed ();
}
[CCode (cheader_filename = "colord.h", type_id = "cd_dom_get_type ()")]
public class Dom : GLib.Object {
[CCode (has_construct_function = false)]
public Dom ();
public static GLib.Quark error_quark ();
public unowned GLib.Node get_node (GLib.Node root, string path);
public static unowned string get_node_attribute (GLib.Node node, string key);
public static unowned string get_node_data (GLib.Node node);
public static double get_node_data_as_double (GLib.Node node);
public static int get_node_data_as_int (GLib.Node node);
public static bool get_node_lab (GLib.Node node, Cd.ColorLab lab);
public static GLib.HashTable<void*,void*> get_node_localized (GLib.Node node, string key);
public static unowned string get_node_name (GLib.Node node);
public static bool get_node_rgb (GLib.Node node, Cd.ColorRGB rgb);
public static bool get_node_yxy (GLib.Node node, Cd.ColorYxy yxy);
public bool parse_xml_data (string data, ssize_t data_len) throws GLib.Error;
public string to_string ();
}
[CCode (cheader_filename = "colord.h", type_id = "cd_edid_get_type ()")]
public class Edid : GLib.Object {
[CCode (has_construct_function = false)]
public Edid ();
public static GLib.Quark error_quark ();
public unowned Cd.ColorYxy get_blue ();
public unowned string get_checksum ();
public unowned string get_eisa_id ();
public double get_gamma ();
public unowned Cd.ColorYxy get_green ();
public uint get_height ();
public unowned string get_monitor_name ();
public unowned string get_pnp_id ();
public unowned Cd.ColorYxy get_red ();
public unowned string get_serial_number ();
public unowned string get_vendor_name ();
public unowned Cd.ColorYxy get_white ();
public uint get_width ();
public bool parse (GLib.Bytes edid_data) throws GLib.Error;
public void reset ();
}
[CCode (cheader_filename = "colord.h", type_id = "cd_icc_get_type ()")]
public class Icc : GLib.Object {
[CCode (has_construct_function = false)]
public Icc ();
public void add_metadata (string key, string value);
public bool create_default () throws GLib.Error;
public bool create_from_edid (double gamma_value, Cd.ColorYxy red, Cd.ColorYxy green, Cd.ColorYxy blue, Cd.ColorYxy white) throws GLib.Error;
public bool create_from_edid_data (Cd.Edid edid) throws GLib.Error;
public static GLib.Quark error_quark ();
public unowned Cd.ColorXYZ get_blue ();
public bool get_can_delete ();
public unowned string get_characterization_data ();
public unowned string get_checksum ();
public Cd.Colorspace get_colorspace ();
public void* get_context ();
public unowned string get_copyright (string locale) throws GLib.Error;
public GLib.DateTime get_created ();
public unowned string get_description (string locale) throws GLib.Error;
public unowned string get_filename ();
public unowned Cd.ColorXYZ get_green ();
public void* get_handle ();
public Cd.ProfileKind get_kind ();
public unowned string get_manufacturer (string locale) throws GLib.Error;
public GLib.HashTable<weak void*,weak void*> get_metadata ();
public unowned string get_metadata_item (string key);
public unowned string get_model (string locale) throws GLib.Error;
public GLib.GenericArray<weak Cd.ColorSwatch> get_named_colors ();
public unowned Cd.ColorXYZ get_red ();
public GLib.GenericArray<weak Cd.ColorRGB> get_response (uint size) throws GLib.Error;
public uint32 get_size ();
public GLib.Bytes get_tag_data (string tag) throws GLib.Error;
[CCode (array_length = false, array_null_terminated = true)]
public string[] get_tags () throws GLib.Error;
public uint get_temperature ();
public GLib.GenericArray<weak Cd.ColorRGB> get_vcgt (uint size) throws GLib.Error;
public double get_version ();
public GLib.Array<weak Cd.ProfileWarning> get_warnings ();
public unowned Cd.ColorXYZ get_white ();
public bool load_data (uint8 data, size_t data_len, Cd.IccLoadFlags flags) throws GLib.Error;
public bool load_fd (int fd, Cd.IccLoadFlags flags) throws GLib.Error;
public bool load_file (GLib.File file, Cd.IccLoadFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool load_handle (void* handle, Cd.IccLoadFlags flags) throws GLib.Error;
public void remove_metadata (string key);
public GLib.Bytes save_data (Cd.IccSaveFlags flags) throws GLib.Error;
public bool save_default (Cd.IccSaveFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool save_file (GLib.File file, Cd.IccSaveFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
public void set_characterization_data (string data);
public void set_colorspace (Cd.Colorspace colorspace);
public void set_copyright (string locale, string? value);
public void set_copyright_items (GLib.HashTable<void*,void*> values);
public void set_description (string locale, string? value);
public void set_description_items (GLib.HashTable<void*,void*> values);
public void set_filename (string filename);
public void set_kind (Cd.ProfileKind kind);
public void set_manufacturer (string locale, string? value);
public void set_manufacturer_items (GLib.HashTable<void*,void*> values);
public void set_model (string locale, string? value);
public void set_model_items (GLib.HashTable<void*,void*> values);
public bool set_tag_data (string tag, GLib.Bytes data) throws GLib.Error;
public bool set_vcgt (GLib.GenericArray<Cd.ColorRGB> vcgt) throws GLib.Error;
public void set_version (double version);
public string to_string ();
public bool utils_get_coverage (Cd.Icc icc_reference, double coverage) throws GLib.Error;
public Cd.ColorXYZ blue { get; }
public bool can_delete { get; }
public string checksum { get; }
public uint colorspace { get; set; }
public string filename { get; }
public Cd.ColorXYZ green { get; }
public uint kind { get; set; }
public Cd.ColorXYZ red { get; }
public uint size { get; }
public uint temperature { get; }
public double version { get; set; }
public Cd.ColorXYZ white { get; }
}
[CCode (cheader_filename = "colord.h", type_id = "cd_icc_store_get_type ()")]
public class IccStore : GLib.Object {
[CCode (has_construct_function = false)]
public IccStore ();
public Cd.Icc find_by_checksum (string checksum);
public Cd.Icc find_by_filename (string filename);
public GLib.GenericArray<weak Cd.Icc> get_all ();
public Cd.IccLoadFlags get_load_flags ();
public bool search_kind (Cd.IccStoreSearchKind search_kind, Cd.IccStoreSearchFlags search_flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool search_location (string location, Cd.IccStoreSearchFlags search_flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
public void set_cache (GLib.Resource cache);
public void set_load_flags (Cd.IccLoadFlags load_flags);
public virtual signal void added (Cd.Icc icc);
public virtual signal void removed (Cd.Icc icc);
}
[CCode (cheader_filename = "colord.h", type_id = "cd_interp_get_type ()")]
public class Interp : GLib.Object {
[CCode (has_construct_function = false)]
protected Interp ();
public static GLib.Quark error_quark ();
public virtual double eval (double value) throws GLib.Error;
public Cd.InterpKind get_kind ();
public uint get_size ();
public unowned GLib.Array<double> get_x ();
public unowned GLib.Array<double> get_y ();
public void insert (double x, double y);
public static unowned string kind_to_string (Cd.InterpKind kind);
public virtual bool prepare () throws GLib.Error;
[NoAccessorMethod]
public uint kind { get; set; }
}
[CCode (cheader_filename = "colord.h", type_id = "cd_interp_akima_get_type ()")]
public class InterpAkima : Cd.Interp {
[CCode (has_construct_function = false, type = "CdInterp*")]
public InterpAkima ();
}
[CCode (cheader_filename = "colord.h", type_id = "cd_interp_linear_get_type ()")]
public class InterpLinear : Cd.Interp {
[CCode (has_construct_function = false, type = "CdInterp*")]
public InterpLinear ();
}
[CCode (cheader_filename = "colord.h", type_id = "cd_it8_get_type ()")]
public class It8 : GLib.Object {
[CCode (has_construct_function = false)]
public It8 ();
public void add_data (Cd.ColorRGB rgb, Cd.ColorXYZ xyz);
public void add_option (string option);
public void add_spectrum (Cd.Spectrum spectrum);
public static GLib.Quark error_quark ();
public bool get_data_item (uint idx, Cd.ColorRGB rgb, Cd.ColorXYZ xyz);
public uint get_data_size ();
public bool get_enable_created ();
public unowned string get_instrument ();
public Cd.It8Kind get_kind ();
public unowned Cd.Mat3x3? get_matrix ();
public bool get_normalized ();
public unowned string get_originator ();
public unowned string get_reference ();
public bool get_spectral ();
public GLib.GenericArray<weak Cd.Spectrum> get_spectrum_array ();
public unowned Cd.Spectrum get_spectrum_by_id (string id);
public unowned string get_title ();
public unowned Cd.ColorXYZ get_xyz_for_rgb (double R, double G, double B, double delta);
public bool has_option (string option);
public bool load_from_data (string data, size_t size) throws GLib.Error;
public bool load_from_file (GLib.File file) throws GLib.Error;
public bool save_to_data (string data, size_t size) throws GLib.Error;
public bool save_to_file (GLib.File file) throws GLib.Error;
public void set_enable_created (bool enable_created);
public void set_instrument (string instrument);
public void set_kind (Cd.It8Kind kind);
public void set_matrix (Cd.Mat3x3 matrix);
public void set_normalized (bool normalized);
public void set_originator (string originator);
public void set_reference (string reference);
public void set_spectral (bool spectral);
public void set_spectrum_array (owned GLib.GenericArray<weak Cd.Spectrum> data);
public void set_title (string title);
public bool utils_calculate_ccmx (Cd.It8 it8_measured, Cd.It8 it8_ccmx) throws GLib.Error;
public bool utils_calculate_cri_from_cmf (Cd.It8 tcs, Cd.Spectrum illuminant, double value, double resolution) throws GLib.Error;
public bool utils_calculate_gamma (double gamma_y) throws GLib.Error;
public bool utils_calculate_xyz_from_cmf (Cd.Spectrum illuminant, Cd.Spectrum spectrum, Cd.ColorXYZ value, double resolution) throws GLib.Error;
[CCode (has_construct_function = false)]
public It8.with_kind (Cd.It8Kind kind);
public string instrument { get; }
public uint kind { get; set; }
public bool normalized { get; }
public string originator { get; }
public string reference { get; }
public bool spectral { get; }
public string title { get; }
}
[CCode (cheader_filename = "colord.h", type_id = "cd_profile_get_type ()")]
public class Profile : GLib.Object {
[CCode (has_construct_function = false)]
public Profile ();
public async bool connect (GLib.Cancellable? cancellable) throws GLib.Error;
public bool connect_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool equal (Cd.Profile profile2);
public static Cd.ProfileError error_from_string (string error_desc);
public static GLib.Quark error_quark ();
public static unowned string error_to_string (Cd.ProfileError error_enum);
public int64 get_age ();
public Cd.Colorspace get_colorspace ();
public bool get_connected ();
public int64 get_created ();
public unowned string get_filename ();
public unowned string get_format ();
public bool get_has_vcgt ();
public unowned string get_id ();
public bool get_is_system_wide ();
public Cd.ProfileKind get_kind ();
public GLib.HashTable<weak string,weak string> get_metadata ();
public unowned string get_metadata_item (string key);
public unowned string get_object_path ();
public uint get_owner ();
public unowned string get_qualifier ();
public Cd.ObjectScope get_scope ();
public unowned string get_title ();
[CCode (array_length = false, array_null_terminated = true)]
public unowned string[] get_warnings ();
public bool has_access ();
public async bool install_system_wide (GLib.Cancellable? cancellable) throws GLib.Error;
public bool install_system_wide_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
public static Cd.ProfileKind kind_from_string (string profile_kind);
public static unowned string kind_to_string (Cd.ProfileKind profile_kind);
public Cd.Icc load_icc (Cd.IccLoadFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
public static Cd.ProfileQuality quality_from_string (string quality);
public static unowned string quality_to_string (Cd.ProfileQuality quality_enum);
public void set_object_path (string object_path);
public async bool set_property (string key, string value, GLib.Cancellable? cancellable) throws GLib.Error;
public bool set_property_sync (string key, string value, GLib.Cancellable? cancellable = null) throws GLib.Error;
public string to_string ();
public static Cd.ProfileWarning warning_from_string (string type);
public static unowned string warning_to_string (Cd.ProfileWarning kind_enum);
[CCode (has_construct_function = false)]
public Profile.with_object_path (string object_path);
public string colorspace { get; }
public string connected { get; }
public int64 created { get; }
public string filename { get; }
public string format { get; }
public string has_vcgt { get; }
public string id { get; }
public string is_system_wide { get; }
public string kind { get; }
public string object_path { get; set construct; }
public uint owner { get; }
public string qualifier { get; }
public uint scope { get; }
public string title { get; }
[CCode (array_length = false, array_null_terminated = true)]
public string[] warnings { get; }
public virtual signal void changed ();
}
[CCode (cheader_filename = "colord.h", type_id = "cd_sensor_get_type ()")]
public class Sensor : GLib.Object {
[CCode (has_construct_function = false)]
public Sensor ();
public static Cd.SensorCap cap_from_string (string sensor_cap);
public static unowned string cap_to_string (Cd.SensorCap sensor_cap);
public async bool connect (GLib.Cancellable? cancellable) throws GLib.Error;
public bool connect_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool equal (Cd.Sensor sensor2);
public static Cd.SensorError error_from_string (string error_desc);
public static GLib.Quark error_quark ();
public static unowned string error_to_string (Cd.SensorError error_enum);
public uint64 get_caps ();
public bool get_connected ();
public bool get_embedded ();
public unowned string get_id ();
public Cd.SensorKind get_kind ();
public bool get_locked ();
public GLib.HashTable<weak string,weak string> get_metadata ();
public unowned string get_metadata_item (string key);
public Cd.SensorCap get_mode ();
public unowned string get_model ();
public bool get_native ();
public unowned string get_object_path ();
public unowned string get_option (string key);
public GLib.HashTable<weak string,weak GLib.Variant> get_options ();
public async Cd.ColorXYZ get_sample (Cd.SensorCap cap, GLib.Cancellable? cancellable) throws GLib.Error;
public Cd.ColorXYZ get_sample_sync (Cd.SensorCap cap, GLib.Cancellable? cancellable = null) throws GLib.Error;
public unowned string get_serial ();
public Cd.SensorState get_state ();
public unowned string get_vendor ();
public bool has_cap (Cd.SensorCap cap);
public static Cd.SensorKind kind_from_string (string sensor_kind);
public static unowned string kind_to_string (Cd.SensorKind sensor_kind);
public async bool @lock (GLib.Cancellable? cancellable) throws GLib.Error;
public bool lock_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
public void set_object_path (string object_path);
public async bool set_options (GLib.HashTable<string,GLib.Variant> values, GLib.Cancellable? cancellable) throws GLib.Error;
public bool set_options_sync (GLib.HashTable<string,GLib.Variant> values, GLib.Cancellable? cancellable = null) throws GLib.Error;
public static Cd.SensorState state_from_string (string sensor_state);
public static unowned string state_to_string (Cd.SensorState sensor_state);
public string to_string ();
public async bool unlock (GLib.Cancellable? cancellable) throws GLib.Error;
public bool unlock_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (has_construct_function = false)]
public Sensor.with_object_path (string object_path);
public string connected { get; }
public string embedded { get; }
public string id { get; }
public string kind { get; }
public string locked { get; }
public string mode { get; }
public string model { get; }
public string native { get; }
public string object_path { get; set construct; }
public string serial { get; }
public string state { get; }
public string vendor { get; }
public virtual signal void button_pressed ();
}
[CCode (cheader_filename = "colord.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "cd_spectrum_get_type ()")]
[Compact]
public class Spectrum {
[CCode (has_construct_function = false)]
public Spectrum ();
public void add_value (double data);
public Cd.Spectrum dup ();
public void free ();
public unowned GLib.Array<double> get_data ();
public double get_end ();
public unowned string get_id ();
public double get_norm ();
public double get_resolution ();
public uint get_size ();
public double get_start ();
public double get_value (uint idx);
public double get_value_for_nm (double wavelength);
public double get_value_raw (uint idx);
public double get_wavelength (uint idx);
public Cd.Spectrum multiply (Cd.Spectrum s2, double resolution);
public void normalize (double wavelength, double value);
public void normalize_max (double value);
[CCode (cname = "cd_spectrum_planckian_new", has_construct_function = false)]
public Spectrum.planckian_new (double temperature);
public void set_data (GLib.Array<double> value);
public void set_end (double end);
public void set_id (string id);
public void set_norm (double norm);
public void set_start (double start);
public void set_value (uint idx, double data);
[CCode (cname = "cd_spectrum_sized_new", has_construct_function = false)]
public Spectrum.sized_new (uint reserved_size);
}
[CCode (cheader_filename = "colord.h", type_id = "cd_transform_get_type ()")]
public class Transform : GLib.Object {
[CCode (has_construct_function = false)]
public Transform ();
public static GLib.Quark error_quark ();
public unowned Cd.Icc get_abstract_icc ();
public bool get_bpc ();
public unowned Cd.Icc get_input_icc ();
public Cd.PixelFormat get_input_pixel_format ();
public uint get_max_threads ();
public unowned Cd.Icc get_output_icc ();
public Cd.PixelFormat get_output_pixel_format ();
public Cd.RenderingIntent get_rendering_intent ();
public bool process (void* data_in, void* data_out, uint width, uint height, uint rowstride, GLib.Cancellable? cancellable = null) throws GLib.Error;
public void set_abstract_icc (Cd.Icc icc);
public void set_bpc (bool bpc);
public void set_input_icc (Cd.Icc icc);
public void set_input_pixel_format (Cd.PixelFormat pixel_format);
public void set_max_threads (uint max_threads);
public void set_output_icc (Cd.Icc icc);
public void set_output_pixel_format (Cd.PixelFormat pixel_format);
public void set_rendering_intent (Cd.RenderingIntent rendering_intent);
public Cd.Icc abstract_icc { get; set; }
public bool bpc { get; set; }
public Cd.Icc input_icc { get; set; }
public uint input_pixel_format { get; set; }
public Cd.Icc output_icc { get; set; }
public uint output_pixel_format { get; set; }
public uint rendering_intent { get; set; }
}
[CCode (cheader_filename = "colord.h", has_type_id = false)]
public struct ColorRGB8 {
public uint8 R;
public uint8 G;
public uint8 B;
}
[CCode (cheader_filename = "colord.h", has_type_id = false)]
public struct Mat3x3 {
public double m00;
public double m01;
public double m02;
public double m10;
public double m11;
public double m12;
public double m20;
public double m21;
public double m22;
}
[CCode (cheader_filename = "colord.h")]
[SimpleType]
public struct PixelFormat : uint32 {
public static Cd.PixelFormat from_string (string pixel_format);
public static unowned string to_string (Cd.PixelFormat pixel_format);
}
[CCode (cheader_filename = "colord.h", has_type_id = false)]
public struct Vec3 {
public double v0;
public double v1;
public double v2;
public void add (Cd.Vec3 src2, Cd.Vec3 dest);
public void clear ();
public void copy (Cd.Vec3 dest);
public double get_data ();
public void init (double v0, double v1, double v2);
public void scalar_multiply (double value, Cd.Vec3 dest);
public double squared_error (Cd.Vec3 src2);
public void subtract (Cd.Vec3 src2, Cd.Vec3 dest);
public string to_string ();
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_BUFFER_KIND_", has_type_id = false)]
public enum BufferKind {
REQUEST,
RESPONSE,
UNKNOWN
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_CLIENT_ERROR_", has_type_id = false)]
public enum ClientError {
INTERNAL,
ALREADY_EXISTS,
FAILED_TO_AUTHENTICATE,
NOT_SUPPORTED,
NOT_FOUND,
INPUT_INVALID,
FILE_INVALID
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_COLORSPACE_", has_type_id = false)]
public enum Colorspace {
UNKNOWN,
XYZ,
LAB,
LUV,
YCBCR,
YXY,
RGB,
GRAY,
HSV,
CMYK,
CMY;
public static Cd.Colorspace from_string (string colorspace);
public static unowned string to_string (Cd.Colorspace colorspace);
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_DEVICE_ERROR_", has_type_id = false)]
public enum DeviceError {
INTERNAL,
PROFILE_DOES_NOT_EXIST,
PROFILE_ALREADY_ADDED,
PROFILING,
NOTHING_MATCHED,
FAILED_TO_INHIBIT,
FAILED_TO_UNINHIBIT,
FAILED_TO_AUTHENTICATE,
NOT_ENABLED
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_DEVICE_KIND_", has_type_id = false)]
public enum DeviceKind {
UNKNOWN,
DISPLAY,
SCANNER,
PRINTER,
CAMERA,
WEBCAM
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_DEVICE_MODE_", has_type_id = false)]
public enum DeviceMode {
UNKNOWN,
PHYSICAL,
VIRTUAL
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_DEVICE_RELATION_", has_type_id = false)]
public enum DeviceRelation {
UNKNOWN,
SOFT,
HARD
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_ICC_ERROR_", has_type_id = false)]
public enum IccError {
FAILED_TO_OPEN,
FAILED_TO_PARSE,
INVALID_LOCALE,
NO_DATA,
FAILED_TO_SAVE,
FAILED_TO_CREATE,
INVALID_COLORSPACE,
CORRUPTION_DETECTED,
INTERNAL
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_ICC_LOAD_FLAGS_", has_type_id = false)]
[Flags]
public enum IccLoadFlags {
NONE,
NAMED_COLORS,
TRANSLATIONS,
METADATA,
FALLBACK_MD5,
PRIMARIES,
CHARACTERIZATION,
ALL
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_ICC_SAVE_FLAGS_", has_type_id = false)]
public enum IccSaveFlags {
NONE
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_ICC_STORE_SEARCH_FLAGS_", has_type_id = false)]
public enum IccStoreSearchFlags {
NONE,
CREATE_LOCATION
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_ICC_STORE_SEARCH_KIND_", has_type_id = false)]
public enum IccStoreSearchKind {
SYSTEM,
MACHINE,
USER
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_INTERP_ERROR_", has_type_id = false)]
public enum InterpError {
FAILED
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_INTERP_KIND_", has_type_id = false)]
public enum InterpKind {
LINEAR,
AKIMA
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_IT8_ERROR_", has_type_id = false)]
public enum It8Error {
FAILED,
INVALID_FORMAT,
UNKNOWN_KIND
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_IT8_KIND_", has_type_id = false)]
public enum It8Kind {
UNKNOWN,
TI1,
TI3,
CCMX,
CAL,
CCSS,
SPECT,
CMF
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_OBJECT_SCOPE_", has_type_id = false)]
public enum ObjectScope {
UNKNOWN,
NORMAL,
TEMP,
DISK;
public static Cd.ObjectScope from_string (string object_scope);
public static unowned string to_string (Cd.ObjectScope object_scope);
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_PROFILE_ERROR_", has_type_id = false)]
public enum ProfileError {
INTERNAL,
ALREADY_INSTALLED,
FAILED_TO_WRITE,
FAILED_TO_PARSE,
FAILED_TO_READ,
FAILED_TO_AUTHENTICATE,
PROPERTY_INVALID,
FAILED_TO_GET_UID
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_PROFILE_KIND_", has_type_id = false)]
public enum ProfileKind {
UNKNOWN,
INPUT_DEVICE,
DISPLAY_DEVICE,
OUTPUT_DEVICE,
DEVICELINK,
COLORSPACE_CONVERSION,
ABSTRACT,
NAMED_COLOR
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_PROFILE_QUALITY_", has_type_id = false)]
public enum ProfileQuality {
LOW,
MEDIUM,
HIGH
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_PROFILE_WARNING_", has_type_id = false)]
public enum ProfileWarning {
NONE,
DESCRIPTION_MISSING,
COPYRIGHT_MISSING,
VCGT_NON_MONOTONIC,
SCUM_DOT,
GRAY_AXIS_INVALID,
GRAY_AXIS_NON_MONOTONIC,
PRIMARIES_INVALID,
PRIMARIES_NON_ADDITIVE,
PRIMARIES_UNLIKELY,
WHITEPOINT_INVALID,
WHITEPOINT_UNLIKELY
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_RENDERING_INTENT_", has_type_id = false)]
public enum RenderingIntent {
UNKNOWN,
PERCEPTUAL,
RELATIVE_COLORIMETRIC,
SATURATION,
ABSOLUTE_COLORIMETRIC;
public static Cd.RenderingIntent from_string (string rendering_intent);
public static unowned string to_string (Cd.RenderingIntent rendering_intent);
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_SENSOR_CAP_", has_type_id = false)]
public enum SensorCap {
UNKNOWN,
LCD,
CRT,
PRINTER,
SPOT,
PROJECTOR,
AMBIENT,
CALIBRATION,
LED,
PLASMA,
LCD_CCFL,
LCD_RGB_LED,
LCD_WHITE_LED,
WIDE_GAMUT_LCD_CCFL,
WIDE_GAMUT_LCD_RGB_LED
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_SENSOR_ERROR_", has_type_id = false)]
public enum SensorError {
NO_SUPPORT,
NO_DATA,
INTERNAL,
ALREADY_LOCKED,
NOT_LOCKED,
IN_USE,
FAILED_TO_AUTHENTICATE,
REQUIRED_POSITION_CALIBRATE,
REQUIRED_POSITION_SURFACE
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_SENSOR_KIND_", has_type_id = false)]
public enum SensorKind {
UNKNOWN,
DUMMY,
HUEY,
COLOR_MUNKI_PHOTO,
SPYDER,
DTP20,
DTP22,
DTP41,
DTP51,
DTP94,
SPECTRO_SCAN,
I1_PRO,
COLORIMTRE_HCFR,
I1_DISPLAY3,
COLORHUG,
SPYDER2,
SPYDER3,
COLORHUG_PLUS,
I1_DISPLAY1,
I1_DISPLAY2,
DTP92,
I1_MONITOR,
SPYDER4,
COLOR_MUNKI_SMILE,
COLORHUG2,
SPYDER5,
SPARK
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_SENSOR_STATE_", has_type_id = false)]
public enum SensorState {
UNKNOWN,
STARTING,
IDLE,
MEASURING,
BUSY
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_STANDARD_SPACE_", has_type_id = false)]
public enum StandardSpace {
UNKNOWN,
SRGB,
ADOBE_RGB,
PROPHOTO_RGB;
public static Cd.StandardSpace from_string (string standard_space);
public static unowned string to_string (Cd.StandardSpace standard_space);
}
[CCode (cheader_filename = "colord.h", cprefix = "CD_TRANSFORM_ERROR_", has_type_id = false)]
public enum TransformError {
FAILED_TO_SETUP_TRANSFORM,
INVALID_COLORSPACE,
LAST
}
[CCode (cheader_filename = "colord.h", cname = "CD_CLIENT_PROPERTY_DAEMON_VERSION")]
public const string CLIENT_PROPERTY_DAEMON_VERSION;
[CCode (cheader_filename = "colord.h", cname = "CD_CLIENT_PROPERTY_SYSTEM_MODEL")]
public const string CLIENT_PROPERTY_SYSTEM_MODEL;
[CCode (cheader_filename = "colord.h", cname = "CD_CLIENT_PROPERTY_SYSTEM_VENDOR")]
public const string CLIENT_PROPERTY_SYSTEM_VENDOR;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_METADATA_OUTPUT_EDID_MD5")]
public const string DEVICE_METADATA_OUTPUT_EDID_MD5;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_METADATA_OUTPUT_PRIORITY")]
public const string DEVICE_METADATA_OUTPUT_PRIORITY;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_METADATA_OUTPUT_PRIORITY_PRIMARY")]
public const string DEVICE_METADATA_OUTPUT_PRIORITY_PRIMARY;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_METADATA_OUTPUT_PRIORITY_SECONDARY")]
public const string DEVICE_METADATA_OUTPUT_PRIORITY_SECONDARY;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_METADATA_OWNER_CMDLINE")]
public const string DEVICE_METADATA_OWNER_CMDLINE;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_METADATA_XRANDR_NAME")]
public const string DEVICE_METADATA_XRANDR_NAME;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_COLORSPACE")]
public const string DEVICE_PROPERTY_COLORSPACE;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_CREATED")]
public const string DEVICE_PROPERTY_CREATED;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_EMBEDDED")]
public const string DEVICE_PROPERTY_EMBEDDED;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_ENABLED")]
public const string DEVICE_PROPERTY_ENABLED;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_FORMAT")]
public const string DEVICE_PROPERTY_FORMAT;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_ID")]
public const string DEVICE_PROPERTY_ID;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_KIND")]
public const string DEVICE_PROPERTY_KIND;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_METADATA")]
public const string DEVICE_PROPERTY_METADATA;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_MODE")]
public const string DEVICE_PROPERTY_MODE;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_MODEL")]
public const string DEVICE_PROPERTY_MODEL;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_MODIFIED")]
public const string DEVICE_PROPERTY_MODIFIED;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_OWNER")]
public const string DEVICE_PROPERTY_OWNER;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_PROFILES")]
public const string DEVICE_PROPERTY_PROFILES;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_PROFILING_INHIBITORS")]
public const string DEVICE_PROPERTY_PROFILING_INHIBITORS;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_SCOPE")]
public const string DEVICE_PROPERTY_SCOPE;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_SEAT")]
public const string DEVICE_PROPERTY_SEAT;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_SERIAL")]
public const string DEVICE_PROPERTY_SERIAL;
[CCode (cheader_filename = "colord.h", cname = "CD_DEVICE_PROPERTY_VENDOR")]
public const string DEVICE_PROPERTY_VENDOR;
[CCode (cheader_filename = "colord.h", cname = "CD_MAJOR_VERSION")]
public const int MAJOR_VERSION;
[CCode (cheader_filename = "colord.h", cname = "CD_MICRO_VERSION")]
public const int MICRO_VERSION;
[CCode (cheader_filename = "colord.h", cname = "CD_MINOR_VERSION")]
public const int MINOR_VERSION;
[CCode (cheader_filename = "colord.h", cname = "CD_PIXEL_FORMAT_ARGB32")]
public const int PIXEL_FORMAT_ARGB32;
[CCode (cheader_filename = "colord.h", cname = "CD_PIXEL_FORMAT_BGRA32")]
public const int PIXEL_FORMAT_BGRA32;
[CCode (cheader_filename = "colord.h", cname = "CD_PIXEL_FORMAT_CMYK32")]
public const int PIXEL_FORMAT_CMYK32;
[CCode (cheader_filename = "colord.h", cname = "CD_PIXEL_FORMAT_RGB24")]
public const int PIXEL_FORMAT_RGB24;
[CCode (cheader_filename = "colord.h", cname = "CD_PIXEL_FORMAT_RGBA32")]
public const int PIXEL_FORMAT_RGBA32;
[CCode (cheader_filename = "colord.h", cname = "CD_PIXEL_FORMAT_UNKNOWN")]
public const int PIXEL_FORMAT_UNKNOWN;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_ACCURACY_DE76_AVG")]
public const string PROFILE_METADATA_ACCURACY_DE76_AVG;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_ACCURACY_DE76_MAX")]
public const string PROFILE_METADATA_ACCURACY_DE76_MAX;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_ACCURACY_DE76_RMS")]
public const string PROFILE_METADATA_ACCURACY_DE76_RMS;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_CMF_BINARY")]
public const string PROFILE_METADATA_CMF_BINARY;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_CMF_PRODUCT")]
public const string PROFILE_METADATA_CMF_PRODUCT;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_CMF_VERSION")]
public const string PROFILE_METADATA_CMF_VERSION;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_CONNECTION_TYPE")]
public const string PROFILE_METADATA_CONNECTION_TYPE;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_CONNECTION_TYPE_DISPLAYPORT")]
public const string PROFILE_METADATA_CONNECTION_TYPE_DISPLAYPORT;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_CONNECTION_TYPE_DVI")]
public const string PROFILE_METADATA_CONNECTION_TYPE_DVI;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_CONNECTION_TYPE_HDMI")]
public const string PROFILE_METADATA_CONNECTION_TYPE_HDMI;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_CONNECTION_TYPE_INTERNAL")]
public const string PROFILE_METADATA_CONNECTION_TYPE_INTERNAL;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_CONNECTION_TYPE_VGA")]
public const string PROFILE_METADATA_CONNECTION_TYPE_VGA;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_DATA_SOURCE")]
public const string PROFILE_METADATA_DATA_SOURCE;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_DATA_SOURCE_CALIB")]
public const string PROFILE_METADATA_DATA_SOURCE_CALIB;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_DATA_SOURCE_EDID")]
public const string PROFILE_METADATA_DATA_SOURCE_EDID;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_DATA_SOURCE_STANDARD")]
public const string PROFILE_METADATA_DATA_SOURCE_STANDARD;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_DATA_SOURCE_TEST")]
public const string PROFILE_METADATA_DATA_SOURCE_TEST;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_EDID_MD5")]
public const string PROFILE_METADATA_EDID_MD5;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_EDID_MNFT")]
public const string PROFILE_METADATA_EDID_MNFT;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_EDID_MODEL")]
public const string PROFILE_METADATA_EDID_MODEL;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_EDID_SERIAL")]
public const string PROFILE_METADATA_EDID_SERIAL;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_EDID_VENDOR")]
public const string PROFILE_METADATA_EDID_VENDOR;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_FILE_CHECKSUM")]
public const string PROFILE_METADATA_FILE_CHECKSUM;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_LICENSE")]
public const string PROFILE_METADATA_LICENSE;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_MAPPING_DEVICE_ID")]
public const string PROFILE_METADATA_MAPPING_DEVICE_ID;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_MAPPING_FORMAT")]
public const string PROFILE_METADATA_MAPPING_FORMAT;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_MAPPING_QUALIFIER")]
public const string PROFILE_METADATA_MAPPING_QUALIFIER;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_MEASUREMENT_DEVICE")]
public const string PROFILE_METADATA_MEASUREMENT_DEVICE;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_QUALITY")]
public const string PROFILE_METADATA_QUALITY;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_QUALITY_HIGH")]
public const string PROFILE_METADATA_QUALITY_HIGH;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_QUALITY_LOW")]
public const string PROFILE_METADATA_QUALITY_LOW;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_QUALITY_MEDIUM")]
public const string PROFILE_METADATA_QUALITY_MEDIUM;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_SCREEN_BRIGHTNESS")]
public const string PROFILE_METADATA_SCREEN_BRIGHTNESS;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_SCREEN_SURFACE")]
public const string PROFILE_METADATA_SCREEN_SURFACE;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_SCREEN_SURFACE_GLOSSY")]
public const string PROFILE_METADATA_SCREEN_SURFACE_GLOSSY;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_SCREEN_SURFACE_MATTE")]
public const string PROFILE_METADATA_SCREEN_SURFACE_MATTE;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_METADATA_STANDARD_SPACE")]
public const string PROFILE_METADATA_STANDARD_SPACE;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_COLORSPACE")]
public const string PROFILE_PROPERTY_COLORSPACE;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_CREATED")]
public const string PROFILE_PROPERTY_CREATED;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_FILENAME")]
public const string PROFILE_PROPERTY_FILENAME;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_FORMAT")]
public const string PROFILE_PROPERTY_FORMAT;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_HAS_VCGT")]
public const string PROFILE_PROPERTY_HAS_VCGT;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_ID")]
public const string PROFILE_PROPERTY_ID;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_IS_SYSTEM_WIDE")]
public const string PROFILE_PROPERTY_IS_SYSTEM_WIDE;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_KIND")]
public const string PROFILE_PROPERTY_KIND;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_METADATA")]
public const string PROFILE_PROPERTY_METADATA;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_OWNER")]
public const string PROFILE_PROPERTY_OWNER;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_QUALIFIER")]
public const string PROFILE_PROPERTY_QUALIFIER;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_SCOPE")]
public const string PROFILE_PROPERTY_SCOPE;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_TITLE")]
public const string PROFILE_PROPERTY_TITLE;
[CCode (cheader_filename = "colord.h", cname = "CD_PROFILE_PROPERTY_WARNINGS")]
public const string PROFILE_PROPERTY_WARNINGS;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_METADATA_IMAGE_ATTACH")]
public const string SENSOR_METADATA_IMAGE_ATTACH;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_METADATA_IMAGE_CALIBRATE")]
public const string SENSOR_METADATA_IMAGE_CALIBRATE;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_METADATA_IMAGE_SCREEN")]
public const string SENSOR_METADATA_IMAGE_SCREEN;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_PROPERTY_CAPABILITIES")]
public const string SENSOR_PROPERTY_CAPABILITIES;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_PROPERTY_EMBEDDED")]
public const string SENSOR_PROPERTY_EMBEDDED;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_PROPERTY_ID")]
public const string SENSOR_PROPERTY_ID;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_PROPERTY_KIND")]
public const string SENSOR_PROPERTY_KIND;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_PROPERTY_LOCKED")]
public const string SENSOR_PROPERTY_LOCKED;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_PROPERTY_METADATA")]
public const string SENSOR_PROPERTY_METADATA;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_PROPERTY_MODE")]
public const string SENSOR_PROPERTY_MODE;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_PROPERTY_MODEL")]
public const string SENSOR_PROPERTY_MODEL;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_PROPERTY_NATIVE")]
public const string SENSOR_PROPERTY_NATIVE;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_PROPERTY_OPTIONS")]
public const string SENSOR_PROPERTY_OPTIONS;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_PROPERTY_SERIAL")]
public const string SENSOR_PROPERTY_SERIAL;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_PROPERTY_STATE")]
public const string SENSOR_PROPERTY_STATE;
[CCode (cheader_filename = "colord.h", cname = "CD_SENSOR_PROPERTY_VENDOR")]
public const string SENSOR_PROPERTY_VENDOR;
[CCode (cheader_filename = "colord.h")]
public static void buffer_debug (Cd.BufferKind buffer_kind, uint8 data, size_t length);
[CCode (cheader_filename = "colord.h")]
public static uint16 buffer_read_uint16_be (uint8 buffer);
[CCode (cheader_filename = "colord.h")]
public static uint16 buffer_read_uint16_le (uint8 buffer);
[CCode (cheader_filename = "colord.h")]
public static uint32 buffer_read_uint32_be (uint8 buffer);
[CCode (cheader_filename = "colord.h")]
public static uint32 buffer_read_uint32_le (uint8 buffer);
[CCode (cheader_filename = "colord.h")]
public static void buffer_write_uint16_be (uint8 buffer, uint16 value);
[CCode (cheader_filename = "colord.h")]
public static void buffer_write_uint16_le (uint8 buffer, uint16 value);
[CCode (cheader_filename = "colord.h")]
public static void buffer_write_uint32_be (uint8 buffer, uint32 value);
[CCode (cheader_filename = "colord.h")]
public static void buffer_write_uint32_le (uint8 buffer, uint32 value);
[CCode (cheader_filename = "colord.h")]
public static bool color_get_blackbody_rgb (uint temp, Cd.ColorRGB result);
[CCode (cheader_filename = "colord.h")]
public static void color_rgb8_to_rgb (Cd.ColorRGB8 src, Cd.ColorRGB dest);
[CCode (cheader_filename = "colord.h")]
public static bool context_lcms_error_check (void* ctx) throws GLib.Error;
[CCode (cheader_filename = "colord.h")]
public static void context_lcms_error_clear (void* ctx);
[CCode (cheader_filename = "colord.h")]
public static void context_lcms_free (void* ctx);
[CCode (cheader_filename = "colord.h")]
public static void* context_lcms_new ();
[CCode (cheader_filename = "colord.h")]
public static void mat33_clear (Cd.Mat3x3 src);
[CCode (cheader_filename = "colord.h")]
public static void mat33_copy (Cd.Mat3x3 src, Cd.Mat3x3 dest);
[CCode (cheader_filename = "colord.h")]
public static double mat33_determinant (Cd.Mat3x3 src);
[CCode (cheader_filename = "colord.h")]
public static double mat33_get_data (Cd.Mat3x3 src);
[CCode (cheader_filename = "colord.h")]
public static void mat33_init (Cd.Mat3x3 dest, double m00, double m01, double m02, double m10, double m11, double m12, double m20, double m21, double m22);
[CCode (cheader_filename = "colord.h")]
public static void mat33_matrix_multiply (Cd.Mat3x3 mat_src1, Cd.Mat3x3 mat_src2, Cd.Mat3x3 mat_dest);
[CCode (cheader_filename = "colord.h")]
public static void mat33_normalize (Cd.Mat3x3 src, Cd.Mat3x3 dest);
[CCode (cheader_filename = "colord.h")]
public static bool mat33_reciprocal (Cd.Mat3x3 src, Cd.Mat3x3 dest);
[CCode (cheader_filename = "colord.h")]
public static void mat33_scalar_multiply (Cd.Mat3x3 mat_src, double value, Cd.Mat3x3 mat_dest);
[CCode (cheader_filename = "colord.h")]
public static void mat33_set_identity (Cd.Mat3x3 src);
[CCode (cheader_filename = "colord.h")]
public static string mat33_to_string (Cd.Mat3x3 src);
[CCode (cheader_filename = "colord.h")]
public static void mat33_vector_multiply (Cd.Mat3x3 mat_src, Cd.Vec3 vec_src, Cd.Vec3 vec_dest);
[CCode (cheader_filename = "colord.h")]
public static string quirk_vendor_name (string vendor);
}
|