forked from nemequ/vala-extra-vapis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xcb-randr.vapi
1141 lines (1035 loc) · 43.3 KB
/
xcb-randr.vapi
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
/*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
using Xcb;
namespace Xcb {
[CCode (cprefix = "xcb_randr_", cheader_filename = "xcb/randr.h")]
namespace RandR {
public static Connection get_connection (Xcb.Connection c) {
return (Connection) c;
}
[Compact]
[CCode (cname = "xcb_connection_t", cprefix = "xcb_randr_", unref_function = "")]
public class Connection : Xcb.Connection {
public QueryVersionCookie query_version (uint32 major_version, uint32 minor_version);
public QueryVersionCookie query_version_unchecked (uint32 major_version, uint32 minor_version);
public QueryVersionReply query_version_reply (QueryVersionCookie cookie, out GenericError? e = null);
public SetScreenConfigCookie set_screen_config (Window window, Timestamp timestamp, Timestamp config_timestamp, uint16 sizeID, Rotation rotation, uint16 rate);
public SetScreenConfigCookie set_screen_config_unchecked (Window window, Timestamp timestamp, Timestamp config_timestamp, uint16 sizeID, Rotation rotation, uint16 rate);
public SetScreenConfigReply set_screen_config_reply (SetScreenConfigCookie cookie, out GenericError? e = null);
public VoidCookie select_input_checked (Window window, NotifyMask enable);
public VoidCookie select_input (Window window, NotifyMask enable);
public GetScreenInfoCookie get_screen_info (Window window);
public GetScreenInfoCookie get_screen_info_unchecked (Window window);
public GetScreenInfoReply get_screen_info_reply (GetScreenInfoCookie cookie, out GenericError? e = null);
public GetScreenSizeRangeCookie get_screen_size_range (Window window);
public GetScreenSizeRangeCookie get_screen_size_range_unchecked (Window window);
public GetScreenSizeRangeReply get_screen_size_range_reply (GetScreenSizeRangeCookie cookie, out GenericError? e = null);
public VoidCookie set_screen_size_checked (Window window, uint16 width, uint16 height, uint16 mm_width, uint16 mm_height);
public VoidCookie set_screen_size (Window window, uint16 width, uint16 height, uint16 mm_width, uint16 mm_height);
public GetScreenResourcesCookie get_screen_resources (Window window);
public GetScreenResourcesCookie get_screen_resources_unchecked (Window window);
public GetScreenResourcesReply get_screen_resources_reply (GetScreenResourcesCookie cookie, out GenericError? e = null);
public GetOutputInfoCookie get_output_info (Output output, Timestamp config_timestamp);
public GetOutputInfoCookie get_output_info_unchecked (Output output, Timestamp config_timestamp);
public GetOutputInfoReply get_output_info_reply (GetOutputInfoCookie cookie, out GenericError? e = null);
public ListOutputPropertiesCookie list_output_properties (Output output);
public ListOutputPropertiesCookie list_output_properties_unchecked (Output output);
public ListOutputPropertiesReply list_output_properties_reply (ListOutputPropertiesCookie cookie, out GenericError? e = null);
public QueryOutputPropertyCookie query_output_property (Output output, Atom property);
public QueryOutputPropertyCookie query_output_property_unchecked (Output output, Atom property);
public QueryOutputPropertyReply query_output_property_reply (QueryOutputPropertyCookie cookie, out GenericError? e = null);
public VoidCookie configure_output_property_checked (Output output, Atom property, bool pending, bool range, [CCode (array_length_pos = 4.9, array_length_type = "uint16_t")] int32[] values);
public VoidCookie configure_output_property (Output output, Atom property, bool pending, bool range, [CCode (array_length_pos = 4.9, array_length_type = "uint16_t")] int32[] values);
private VoidCookie change_output_property_checked (Output output, Atom property, Atom type, uint8 format, PropMode mode, uint32 num_units, void* data);
private VoidCookie change_output_property (Output output, Atom property, Atom type, uint8 format, PropMode mode, uint32 num_units, void* data);
public VoidCookie change_output_property_string_checked (Output output, Atom property, Atom type, PropMode mode, string value) {
this.change_output_property_checked (output, property, type, 8, mode, value.length, value);
}
public VoidCookie change_output_property_string (Output output, Atom property, Atom type, PropMode mode, string value) {
this.change_output_property_checked (output, property, type, 8, mode, value.length, value);
}
public VoidCookie change_output_property_int8_checked (Output output, Atom property, Atom type, PropMode mode, int8[] value) {
this.change_output_property_checked (output, property, type, 8, mode, value.length, value);
}
public VoidCookie change_output_property_int8 (Output output, Atom property, Atom type, PropMode mode, int8[] value) {
this.change_output_property_checked (output, property, type, 8, mode, value.length, value);
}
public VoidCookie change_output_property_int16_checked (Output output, Atom property, Atom type, PropMode mode, int16[] value) {
this.change_output_property_checked (output, property, type, 16, mode, value.length, value);
}
public VoidCookie change_output_property_int16 (Output output, Atom property, Atom type, PropMode mode, int16[] value) {
this.change_output_property_checked (output, property, type, 16, mode, value.length, value);
}
public VoidCookie change_output_property_int32_checked (Output output, Atom property, Atom type, PropMode mode, int32[] value) {
this.change_output_property_checked (output, property, type, 32, mode, value.length, value);
}
public VoidCookie change_output_property_int32 (Output output, Atom property, Atom type, PropMode mode, int32[] value) {
this.change_output_property_checked (output, property, type, 32, mode, value.length, value);
}
public VoidCookie delete_output_property_checked (Output output, Atom property);
public VoidCookie delete_output_property (Output output, Atom property);
public GetOutputPropertyCookie get_output_property (Output output, Atom property, Atom type, uint32 long_offset, uint32 long_length, bool _delete, bool pending);
public GetOutputPropertyCookie get_output_property_unchecked (Output output, Atom property, Atom type, uint32 long_offset, uint32 long_length, bool _delete, bool pending);
public GetOutputPropertyReply get_output_property_reply (GetOutputPropertyCookie cookie, out GenericError? e = null);
[CCode (cname = "xcb_randr_create_mode")]
private CreateModeCookie vala_create_mode (Window window, ModeInfo mode_info, uint32 name_len, string name);
[CCode (cname = "vala_xcb_randr_create_mode")]
public CreateModeCookie create_mode (Window window, ModeInfo mode_info, string name) {
this.vala_create_mode (window, mode_info, (uint32) name.length, name);
}
[CCode (cname = "xcb_randr_create_mode_unchecked")]
private CreateModeCookie vala_create_mode_unchecked (Window window, ModeInfo mode_info, uint32 name_len, string name);
[CCode (cname = "vala_xcb_randr_create_mode_unchecked")]
public CreateModeCookie create_mode_unchecked (Window window, ModeInfo mode_info, string name) {
this.vala_create_mode_unchecked (window, mode_info, (uint32) name.length, name);
}
public CreateModeReply create_mode_reply (CreateModeCookie cookie, out GenericError? e = null);
public VoidCookie destroy_mode_checked (Mode mode);
public VoidCookie destroy_mode (Mode mode);
public VoidCookie add_output_mode_checked (Output output, Mode mode);
public VoidCookie add_output_mode (Output output, Mode mode);
public VoidCookie delete_output_mode_checked (Output output, Mode mode);
public VoidCookie delete_output_mode (Output output, Mode mode);
public GetCrtcInfoCookie get_crtc_info (Crtc crtc, Timestamp config_timestamp);
public GetCrtcInfoCookie get_crtc_info_unchecked (Crtc crtc, Timestamp config_timestamp);
public GetCrtcInfoReply get_crtc_info_reply (GetCrtcInfoCookie cookie, out GenericError? e = null);
public SetCrtcConfigCookie set_crtc_config (Crtc crtc, Timestamp timestamp, Timestamp config_timestamp, int16 x, int16 y, Mode mode, Rotation rotation, [CCode (array_length_pos = 7.9, array_length_type = "uint32_t")] Output[] outputs);
public SetCrtcConfigCookie set_crtc_config_unchecked (Crtc crtc, Timestamp timestamp, Timestamp config_timestamp, int16 x, int16 y, Mode mode, Rotation rotation, [CCode (array_length_pos = 7.9, array_length_type = "uint32_t")] Output[] outputs);
public SetCrtcConfigReply set_crtc_config_reply (SetCrtcConfigCookie cookie, out GenericError? e = null);
public GetCrtcGammaSizeCookie get_crtc_gamma_size (Crtc crtc);
public GetCrtcGammaSizeCookie get_crtc_gamma_size_unchecked (Crtc crtc);
public GetCrtcGammaSizeReply get_crtc_gamma_size_reply (GetCrtcGammaSizeCookie cookie, out GenericError? e = null);
public GetCrtcGammaCookie get_crtc_gamma (Crtc crtc);
public GetCrtcGammaCookie get_crtc_gamma_unchecked (Crtc crtc);
public GetCrtcGammaReply get_crtc_gamma_reply (GetCrtcGammaCookie cookie, out GenericError? e = null);
public VoidCookie set_crtc_gamma_checked (Crtc crtc, [CCode (array_length_pos = 1.9, array_length_type = "uint16_t")] uint16[] red, [CCode (array_length = false)] uint16[] green, [CCode (array_length = false)] uint16[] blue);
public VoidCookie set_crtc_gamma (Crtc crtc, [CCode (array_length_pos = 1.9, array_length_type = "uint16_t")] uint16[] red, [CCode (array_length = false)] uint16[] green, [CCode (array_length = false)] uint16[] blue);
public GetScreenResourcesCurrentCookie get_screen_resources_current (Window window);
public GetScreenResourcesCurrentCookie get_screen_resources_current_unchecked (Window window);
public GetScreenResourcesCurrentReply get_screen_resources_current_reply (GetScreenResourcesCurrentCookie cookie, out GenericError? e = null);
[CCode (cname = "xcb_randr_set_crtc_transform_checked")]
private VoidCookie vala_set_crtc_transform_checked (Crtc crtc, Xcb.Render.Transform transform, uint16 filter_len, string filter_name, [CCode (array_length_pos = 4.9, array_length_type = "uint32_t")] Xcb.Render.Fixed[] filter_params);
[CCode (cname = "vala_xcb_randr_set_crtc_transform_checked")]
public VoidCookie set_crtc_transform_checked (Crtc crtc, Xcb.Render.Transform transform, string filter_name, Xcb.Render.Fixed[] filter_params) {
return this.vala_set_crtc_transform_checked (crtc, transform, (uint16) filter_name.length, filter_name, filter_params);
}
[CCode (cname = "xcb_randr_set_crtc_transform")]
private VoidCookie vala_set_crtc_transform (Crtc crtc, Xcb.Render.Transform transform, uint16 filter_len, string filter_name, [CCode (array_length_pos = 4.9, array_length_type = "uint32_t")] Xcb.Render.Fixed[] filter_params);
[CCode (cname = "vala_xcb_randr_set_crtc_transform")]
public VoidCookie set_crtc_transform (Crtc crtc, Xcb.Render.Transform transform, string filter_name, Xcb.Render.Fixed[] filter_params) {
return this.vala_set_crtc_transform (crtc, transform, (uint16) filter_name.length, filter_name, filter_params);
}
public GetCrtcTransformCookie get_crtc_transform (Crtc crtc);
public GetCrtcTransformCookie get_crtc_transform_unchecked (Crtc crtc);
public GetCrtcTransformReply get_crtc_transform_reply (GetCrtcTransformCookie cookie, out GenericError? e = null);
public GetPanningCookie get_panning (Crtc crtc);
public GetPanningCookie get_panning_unchecked (Crtc crtc);
public GetPanningReply get_panning_reply (GetPanningCookie cookie, out GenericError? e = null);
public SetPanningCookie set_panning (Crtc crtc, Timestamp timestamp, uint16 left, uint16 top, uint16 width, uint16 height, uint16 track_left, uint16 track_top, uint16 track_width, uint16 track_height, int16 border_left, int16 border_top, int16 border_right, int16 border_bottom);
public SetPanningCookie set_panning_unchecked (Crtc crtc, Timestamp timestamp, uint16 left, uint16 top, uint16 width, uint16 height, uint16 track_left, uint16 track_top, uint16 track_width, uint16 track_height, int16 border_left, int16 border_top, int16 border_right, int16 border_bottom);
public SetPanningReply set_panning_reply (SetPanningCookie cookie, out GenericError? e = null);
public VoidCookie set_output_primary_checked (Window window, Output output);
public VoidCookie set_output_primary (Window window, Output output);
public GetOutputPrimaryCookie get_output_primary (Window window);
public GetOutputPrimaryCookie get_output_primary_unchecked (Window window);
public GetOutputPrimaryReply get_output_primary_reply (GetOutputPrimaryCookie cookie, out GenericError? e = null);
public GetProvidersCookie get_providers (Window window);
public GetProvidersCookie get_providers_unchecked (Window window);
public GetProvidersReply get_providers_reply (GetProvidersCookie cookie, out GenericError? e = null);
public GetProviderInfoCookie get_provider_info (Provider provider, Timestamp config_timestamp);
public GetProviderInfoCookie get_provider_info_unchecked (Provider provider, Timestamp config_timestamp);
public GetProviderInfoReply get_provider_info_reply (GetProviderInfoCookie cookie, out GenericError? e = null);
public VoidCookie set_provider_offload_sink_checked (Provider provider, Provider sink_provider, Timestamp config_timestamp);
public VoidCookie set_provider_offload_sink (Provider provider, Provider sink_provider, Timestamp config_timestamp);
public VoidCookie set_provider_output_source_checked (Provider provider, Provider source_provider, Timestamp config_timestamp);
public VoidCookie set_provider_output_source (Provider provider, Provider source_provider, Timestamp config_timestamp);
public ListProviderPropertiesCookie list_provider_properties (Provider provider);
public ListProviderPropertiesCookie list_provider_properties_unchecked (Provider provider);
public ListProviderPropertiesReply list_provider_properties_reply (ListProviderPropertiesCookie cookie, out GenericError? e = null);
public QueryProviderPropertyCookie query_provider_property (Provider provider, Atom property);
public QueryProviderPropertyCookie query_provider_property_unchecked (Provider provider, Atom property);
public QueryProviderPropertyReply query_provider_property_reply (QueryProviderPropertyCookie cookie, out GenericError? e = null);
public VoidCookie configure_provider_property_checked (Provider provider, Atom property, bool pending, bool range, [CCode (array_length_pos = 4.9, array_length_type = "uint32_t")] int32[] values);
public VoidCookie configure_provider_property (Provider provider, Atom property, bool pending, bool range, [CCode (array_length_pos = 4.9, array_length_type = "uint32_t")] int32[] values);
private VoidCookie change_provider_property_checked (Provider provider, Atom property, Atom type, uint8 format, PropMode mode, uint32 num_units, void* data);
private VoidCookie change_provider_property (Provider provider, Atom property, Atom type, uint8 format, PropMode mode, uint32 num_units, void* data);
public VoidCookie change_provider_property_string_checked (Provider provider, Atom property, Atom type, PropMode mode, string value) {
this.change_provider_property_checked (provider, property, type, 8, mode, value.length, value);
}
public VoidCookie change_provider_property_string (Provider provider, Atom property, Atom type, PropMode mode, string value) {
this.change_provider_property_checked (provider, property, type, 8, mode, value.length, value);
}
public VoidCookie change_provider_property_int8_checked (Provider provider, Atom property, Atom type, PropMode mode, int8[] value) {
this.change_provider_property_checked (provider, property, type, 8, mode, value.length, value);
}
public VoidCookie change_provider_property_int8 (Provider provider, Atom property, Atom type, PropMode mode, int8[] value) {
this.change_provider_property_checked (provider, property, type, 8, mode, value.length, value);
}
public VoidCookie change_provider_property_int16_checked (Provider provider, Atom property, Atom type, PropMode mode, int16[] value) {
this.change_provider_property_checked (provider, property, type, 16, mode, value.length, value);
}
public VoidCookie change_provider_property_int16 (Provider provider, Atom property, Atom type, PropMode mode, int16[] value) {
this.change_provider_property_checked (provider, property, type, 16, mode, value.length, value);
}
public VoidCookie change_provider_property_int32_checked (Provider provider, Atom property, Atom type, PropMode mode, int32[] value) {
this.change_provider_property_checked (provider, property, type, 32, mode, value.length, value);
}
public VoidCookie change_provider_property_int32 (Provider provider, Atom property, Atom type, PropMode mode, int32[] value) {
this.change_provider_property_checked (provider, property, type, 32, mode, value.length, value);
}
public VoidCookie delete_provider_property_checked (Provider provider, Atom property);
public VoidCookie delete_provider_property (Provider provider, Atom property);
public GetProviderPropertyCookie get_provider_property (Provider provider, Atom property, Atom type, uint32 long_offset, uint32 long_length, bool _delete, bool pending);
public GetProviderPropertyCookie get_provider_property_unchecked (Provider provider, Atom property, Atom type, uint32 long_offset, uint32 long_length, bool _delete, bool pending);
public GetProviderPropertyReply get_provider_property_reply (GetProviderPropertyCookie cookie, out GenericError? e = null);
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_mode_t", has_type_id = false)]
public struct Mode {
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_crtc_t", has_type_id = false)]
public struct Crtc {
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_output_t", has_type_id = false)]
public struct Output {
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_provider_t", has_type_id = false)]
public struct Provider {
}
[SimpleType]
[CCode (cname = "xcb_randr_screen_size_t", has_type_id = false)]
public struct ScreenSize {
public uint16 width;
public uint16 height;
public uint16 mwidth;
public uint16 mheight;
}
[Compact]
[CCode (cname = "xcb_randr_refresh_rates_t", ref_function = "", unref_function = "")]
public class RefreshRates {
private uint16 nRates;
[CCode (cname = "xcb_randr_refresh_rates_rates")]
private uint16* vala_rates ();
public unowned uint16[] rates
{
get {
unowned uint16[] res = (uint16[]) vala_rates ();
res.length = nRates;
return res;
}
}
}
[SimpleType]
[CCode (cname = "xcb_randr_refresh_rates_iterator_t", has_type_id = false)]
private struct RefreshRatesIterator {
public unowned RefreshRates data;
[CCode (cname = "xcb_randr_refresh_rates_next")]
public static void next (ref RefreshRatesIterator iter);
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_query_version_cookie_t", has_type_id = false)]
public struct QueryVersionCookie {
}
[Compact]
[CCode (cname = "xcb_randr_query_version_reply_t", ref_function = "", unref_function = "free")]
public class QueryVersionReply : Xcb.GenericReply {
public uint32 major_version;
public uint32 minor_version;
}
[CCode (cname = "xcb_randr_rotation_t", cprefix = "XCB_RANDR_ROTATION_", has_type_id = false)]
public enum Rotation {
ROTATE_0,
ROTATE_90,
ROTATE_180,
ROTATE_270,
REFLECT_X,
REFLECT_Y
}
[CCode (cname = "xcb_randr_set_config_t", cprefix = "XCB_RANDR_SET_CONFIG_", has_type_id = false)]
public enum SetConfig {
SUCCESS,
INVALID_CONFIG_TIME,
INVALID_TIME,
FAILED
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_set_screen_config_cookie_t", has_type_id = false)]
public struct SetScreenConfigCookie {
}
[Compact]
[CCode (cname = "xcb_randr_set_screen_config_reply_t", ref_function = "", unref_function = "free")]
public class SetScreenConfigReply : Xcb.GenericReply {
public SetConfig status;
public Timestamp new_timestamp;
public Timestamp config_timestamp;
public Window root;
public Xcb.Render.SubPixel subpixel_order;
}
[CCode (cname = "xcb_randr_notify_mask_t", cprefix = "XCB_RANDR_NOTIFY_MASK_", has_type_id = false)]
public enum NotifyMask {
SCREEN_CHANGE,
CRTC_CHANGE,
OUTPUT_CHANGE,
OUTPUT_PROPERTY,
PROVIDER_CHANGE,
PROVIDER_PROPERTY,
RESOURCE_CHANGE
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_screen_info_cookie_t", has_type_id = false)]
public struct GetScreenInfoCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_screen_info_reply_t", ref_function = "", unref_function = "free")]
public class GetScreenInfoReply : Xcb.GenericReply {
public Rotation rotations;
public Window root;
public Timestamp timestamp;
public Timestamp config_timestamp;
public uint16 sizeID;
public Rotation rotation;
public uint16 rate;
private uint16 nSizes;
[CCode (cname = "xcb_randr_get_screen_info_sizes")]
private ScreenSize* vala_sizes ();
public ScreenSize[] sizes
{
get {
unowned ScreenSize[] res = (ScreenSize[]) vala_sizes ();
res.length = nSizes;
return res;
}
}
private uint16 nInfo;
[CCode (cname = "xcb_randr_get_screen_info_rates_length")]
private int rates_length ();
[CCode (cname = "xcb_randr_get_screen_info_rates_iterator")]
private RefreshRatesIterator rates_iterator ();
public RefreshRates[] rates
{
owned get {
var value = new RefreshRates[rates_length ()];
var iter = rates_iterator ();
for (var i = 0; i < value.length; i++)
{
value[i] = iter.data;
RefreshRatesIterator.next (ref iter);
}
return value;
}
}
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_screen_size_range_cookie_t", has_type_id = false)]
public struct GetScreenSizeRangeCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_screen_size_range_reply_t", ref_function = "", unref_function = "free")]
public class GetScreenSizeRangeReply : Xcb.GenericReply {
public uint16 min_width;
public uint16 min_height;
public uint16 max_width;
public uint16 max_height;
}
[CCode (cname = "xcb_randr_mode_flag_t", cprefix = "XCB_RANDR_MODE_FLAG_", has_type_id = false)]
public enum ModeFlag {
HSYNC_POSITIVE,
HSYNC_NEGATIVE,
VSYNC_POSITIVE,
VSYNC_NEGATIVE,
INTERLACE,
DOUBLE_SCAN,
CSYNC,
CSYNC_POSITIVE,
CSYNC_NEGATIVE,
HSKEW_PRESENT,
BCAST,
PIXEL_MULTIPLEX,
DOUBLE_CLOCK,
HALVE_CLOCK
}
[SimpleType]
[CCode (cname = "xcb_randr_mode_info_t", has_type_id = false)]
public struct ModeInfo {
public uint32 id;
public uint16 width;
public uint16 height;
public uint32 dot_clock;
public uint16 hsync_start;
public uint16 hsync_end;
public uint16 htotal;
public uint16 hskew;
public uint16 vsync_start;
public uint16 vsync_end;
public uint16 vtotal;
public uint32 mode_flags;
public uint16 name_len;
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_screen_resources_cookie_t", has_type_id = false)]
public struct GetScreenResourcesCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_screen_resources_reply_t", ref_function = "", unref_function = "free")]
public class GetScreenResourcesReply : Xcb.GenericReply {
public Timestamp timestamp;
public Timestamp config_timestamp;
private uint16 num_crtcs;
[CCode (cname = "xcb_randr_get_screen_resources_crtcs")]
private Crtc* vala_crtcs ();
public Crtc[] crtcs
{
get {
unowned Crtc[] res = (Crtc[]) vala_crtcs ();
res.length = num_crtcs;
return res;
}
}
private uint16 num_outputs;
[CCode (cname = "xcb_randr_get_screen_resources_outputs")]
private Output* vala_outputs ();
public Output[] outputs
{
get {
unowned Output[] res = (Output[]) vala_outputs ();
res.length = num_outputs;
return res;
}
}
private uint16 num_modes;
[CCode (cname = "xcb_randr_get_screen_resources_modes")]
private ModeInfo* vala_modes ();
public ModeInfo[] modes
{
get {
unowned ModeInfo[] res = (ModeInfo[]) vala_modes ();
res.length = num_modes;
return res;
}
}
private uint16 names_len;
[CCode (cname = "xcb_randr_get_screen_resources_names")]
private uint8* vala_names ();
public string[] mode_names
{
owned get {
var m = modes;
var d = vala_names ();
var value = new string[m.length];
var offset = 0;
for (var i = 0; i < m.length; i++)
{
var len = m[i].name_len;
value[i] = offset + len <= names_len ? "%.*s".printf (len, d + offset) : "";
offset += len;
}
return value;
}
}
}
[CCode (cname = "xcb_randr_connection_t", cprefix = "XCB_RANDR_CONNECTION_", has_type_id = false)]
public enum ConnectionState {
CONNECTED,
DISCONNECTED,
UNKNOWN
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_output_info_cookie_t", has_type_id = false)]
public struct GetOutputInfoCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_output_info_reply_t", ref_function = "", unref_function = "free")]
public class GetOutputInfoReply : Xcb.GenericReply {
public SetConfig status;
public Timestamp timestamp;
public Crtc crtc;
public uint32 mm_width;
public uint32 mm_height;
public ConnectionState connection;
public Xcb.Render.SubPixel subpixel_order;
private uint16 num_crtcs;
[CCode (cname = "xcb_randr_get_output_info_crtcs")]
private Crtc* vala_crtcs ();
public Crtc[] crtcs
{
get {
unowned Crtc[] res = (Crtc[]) vala_crtcs ();
res.length = num_crtcs;
return res;
}
}
private uint16 num_modes;
[CCode (cname = "xcb_randr_get_output_info_modes")]
private Mode* vala_modes ();
public Mode[] modes
{
get {
unowned Mode[] res = (Mode[]) vala_modes ();
res.length = num_modes;
return res;
}
}
public uint16 num_preferred;
private uint16 num_clones;
[CCode (cname = "xcb_randr_get_output_info_clones")]
private Output* vala_clones ();
public Output[] clones
{
get {
unowned Output[] res = (Output[]) vala_clones ();
res.length = num_clones;
return res;
}
}
private uint16 name_len;
[CCode (cname = "xcb_randr_get_output_info_name")]
private unowned string vala_name ();
public string name { owned get { return "%.*s".printf (name_len, vala_name ()); } }
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_list_output_properties_cookie_t", has_type_id = false)]
public struct ListOutputPropertiesCookie {
}
[Compact]
[CCode (cname = "xcb_randr_list_output_properties_reply_t", ref_function = "", unref_function = "free")]
public class ListOutputPropertiesReply : Xcb.GenericReply {
private uint16 num_atoms;
[CCode (cname = "xcb_randr_list_output_properties_atoms")]
private Atom* vala_atoms();
public Atom[] atoms
{
get
{
unowned Atom[] res = (Atom[]) vala_atoms ();
res.length = num_atoms;
return res;
}
}
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_query_output_property_cookie_t", has_type_id = false)]
public struct QueryOutputPropertyCookie {
}
[Compact]
[CCode (cname = "xcb_randr_query_output_property_reply_t", ref_function = "", unref_function = "free")]
public class QueryOutputPropertyReply : Xcb.GenericReply {
public bool pending;
public bool range;
public bool immutable;
[CCode (cname = "xcb_randr_query_output_property_valid_values_length")]
private int valid_values_length ();
[CCode (cname = "xcb_randr_query_output_property_valid_values")]
private int32* vala_valid_values ();
public int32[] valid_values
{
get {
unowned int32[] res = (int32[]) vala_valid_values ();
res.length = valid_values_length ();
return res;
}
}
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_output_property_cookie_t", has_type_id = false)]
public struct GetOutputPropertyCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_output_property_reply_t", ref_function = "", unref_function = "free")]
public class GetOutputPropertyReply : Xcb.GenericReply {
public uint8 format;
public Atom type;
public uint32 bytes_after;
private uint32 num_items;
[CCode (cname = "xcb_randr_get_output_property_data")]
private uint8* data ();
public string value_as_string () {
GLib.assert (format == 8);
return "%.*s".printf (num_items, data ());
}
public unowned uint8[] value_as_uint8_array () {
GLib.assert (format == 8);
unowned uint8[] res = (uint8[]) data ();
res.length = (int) num_items;
return res;
}
public unowned uint16[] value_as_uint16_array () {
GLib.assert (format == 16);
unowned uint16[] res = (uint16[]) data ();
res.length = (int) num_items;
return res;
}
public unowned uint32[] value_as_uint32_array () {
GLib.assert (format == 32);
unowned uint32[] res = (uint32[]) data ();
res.length = (int) num_items;
return res;
}
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_create_mode_cookie_t", has_type_id = false)]
public struct CreateModeCookie {
}
[Compact]
[CCode (cname = "xcb_randr_create_mode_reply_t", ref_function = "", unref_function = "free")]
public class CreateModeReply : Xcb.GenericReply {
public Mode mode;
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_crtc_info_cookie_t", has_type_id = false)]
public struct GetCrtcInfoCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_crtc_info_reply_t", ref_function = "", unref_function = "free")]
public class GetCrtcInfoReply : Xcb.GenericReply {
public SetConfig status;
public Timestamp timestamp;
public int16 x;
public int16 y;
public uint16 width;
public uint16 height;
public Mode mode;
public Rotation rotation;
public Rotation rotations;
private uint16 num_outputs;
[CCode (cname = "xcb_randr_get_crtc_info_outputs")]
private Output* vala_outputs ();
public Output[] outputs
{
get {
unowned Output[] res = (Output[]) vala_outputs ();
res.length = num_outputs;
return res;
}
}
private uint16 num_possible_outputs;
[CCode (cname = "xcb_randr_get_crtc_info_possible")]
private Output* vala_possible ();
public Output[] possible_outputs
{
get {
unowned Output[] res = (Output[]) vala_possible ();
res.length = num_possible_outputs;
return res;
}
}
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_set_crtc_config_cookie_t", has_type_id = false)]
public struct SetCrtcConfigCookie {
}
[Compact]
[CCode (cname = "xcb_randr_set_crtc_config_reply_t", ref_function = "", unref_function = "free")]
public class SetCrtcConfigReply : Xcb.GenericReply {
public SetConfig status;
public Timestamp timestamp;
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_crtc_gamma_size_cookie_t", has_type_id = false)]
public struct GetCrtcGammaSizeCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_crtc_gamma_size_reply_t", ref_function = "", unref_function = "free")]
public class GetCrtcGammaSizeReply : Xcb.GenericReply {
public uint16 size;
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_crtc_gamma_cookie_t", has_type_id = false)]
public struct GetCrtcGammaCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_crtc_gamma_reply_t", ref_function = "", unref_function = "free")]
public class GetCrtcGammaReply : Xcb.GenericReply {
private uint16 size;
[CCode (cname = "xcb_randr_get_crtc_gamma_red")]
private uint16* vala_red ();
public uint16[] red
{
get {
unowned uint16[] res = (uint16[]) vala_red ();
res.length = size;
return res;
}
}
[CCode (cname = "xcb_randr_get_crtc_gamma_green")]
private uint16* vala_green ();
public uint16[] green
{
get {
unowned uint16[] res = (uint16[]) vala_green ();
res.length = size;
return res;
}
}
[CCode (cname = "xcb_randr_get_crtc_gamma_blue")]
private uint16* vala_blue ();
public uint16[] blue
{
get {
unowned uint16[] res = (uint16[]) vala_blue ();
res.length = size;
return res;
}
}
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_screen_resources_current_cookie_t", has_type_id = false)]
public struct GetScreenResourcesCurrentCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_screen_resources_current_reply_t", ref_function = "", unref_function = "free")]
public class GetScreenResourcesCurrentReply : Xcb.GenericReply {
public Timestamp timestamp;
public Timestamp config_timestamp;
private uint16 num_crtcs;
[CCode (cname = "xcb_randr_get_screen_resources_current_crtcs")]
private Crtc* vala_crtcs ();
public Crtc[] crtcs
{
get {
unowned Crtc[] res = (Crtc[]) vala_crtcs ();
res.length = num_crtcs;
return res;
}
}
private uint16 num_outputs;
[CCode (cname = "xcb_randr_get_screen_resources_current_outputs")]
private Output* vala_outputs ();
public Output[] outputs
{
get {
unowned Output[] res = (Output[]) vala_outputs ();
res.length = num_outputs;
return res;
}
}
private uint16 num_modes;
[CCode (cname = "xcb_randr_get_screen_resources_current_modes")]
private ModeInfo* vala_modes ();
public ModeInfo[] modes
{
get {
unowned ModeInfo[] res = (ModeInfo[]) vala_modes ();
res.length = num_modes;
return res;
}
}
private uint16 names_len;
[CCode (cname = "xcb_randr_get_screen_resources_current_names")]
private uint8* vala_names ();
public string[] mode_names
{
owned get {
var m = modes;
var d = vala_names ();
var value = new string[m.length];
var offset = 0;
for (var i = 0; i < m.length; i++)
{
var len = m[i].name_len;
value[i] = offset + len <= names_len ? "%.*s".printf (len, d + offset) : "";
offset += len;
}
return value;
}
}
}
[CCode (cname = "xcb_randr_transform_t", cprefix = "XCB_RANDR_TRANSFORM_", has_type_id = false)]
public enum Transform {
UNIT,
SCALE_UP,
SCALE_DOWN,
PROJECTIVE
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_crtc_transform_cookie_t", has_type_id = false)]
public struct GetCrtcTransformCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_crtc_transform_reply_t", ref_function = "", unref_function = "free")]
public class GetCrtcTransformReply : Xcb.GenericReply {
public Xcb.Render.Transform pending_transform;
public uint8 has_transforms;
public Xcb.Render.Transform current_transform;
private uint16 pending_len;
[CCode (cname = "xcb_randr_get_crtc_transform_pending_filter_name")]
private unowned string vala_pending_filter_name ();
public string pending_filter_name { owned get { return "%.*s".printf (pending_len, vala_pending_filter_name ()); } }
private uint16 pending_nparams;
[CCode (cname = "xcb_randr_get_crtc_transform_pending_params")]
private Xcb.Render.Fixed* vala_pending_params ();
public Xcb.Render.Fixed[] pending_params
{
get {
unowned Xcb.Render.Fixed[] res = (Xcb.Render.Fixed[]) vala_pending_params ();
res.length = pending_nparams;
return res;
}
}
private uint16 current_len;
[CCode (cname = "xcb_randr_get_crtc_transform_current_filter_name")]
private unowned string vala_current_filter_name ();
public string current_filter_name { owned get { return "%.*s".printf (current_len, vala_current_filter_name ()); } }
private uint16 current_nparams;
[CCode (cname = "xcb_randr_get_crtc_transform_current_params")]
private Xcb.Render.Fixed* vala_current_params ();
public Xcb.Render.Fixed[] current_params
{
get {
unowned Xcb.Render.Fixed[] res = (Xcb.Render.Fixed[]) vala_current_params ();
res.length = current_nparams;
return res;
}
}
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_panning_cookie_t", has_type_id = false)]
public struct GetPanningCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_panning_reply_t", ref_function = "", unref_function = "free")]
public class GetPanningReply : Xcb.GenericReply {
public SetConfig status;
public Timestamp timestamp;
public uint16 left;
public uint16 top;
public uint16 width;
public uint16 height;
public uint16 track_left;
public uint16 track_top;
public uint16 track_width;
public uint16 track_height;
public int16 border_left;
public int16 border_top;
public int16 border_right;
public int16 border_bottom;
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_set_panning_cookie_t", has_type_id = false)]
public struct SetPanningCookie {
}
[Compact]
[CCode (cname = "xcb_randr_set_panning_reply_t", ref_function = "", unref_function = "free")]
public class SetPanningReply : Xcb.GenericReply {
public SetConfig status;
public Timestamp timestamp;
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_output_primary_cookie_t", has_type_id = false)]
public struct GetOutputPrimaryCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_output_primary_reply_t", ref_function = "", unref_function = "free")]
public class GetOutputPrimaryReply : Xcb.GenericReply {
public Output output;
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_providers_cookie_t", has_type_id = false)]
public struct GetProvidersCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_providers_reply_t", ref_function = "", unref_function = "free")]
public class GetProvidersReply : Xcb.GenericReply {
public Timestamp timestamp;
private uint16 num_providers;
[CCode (cname = "xcb_randr_get_providers_providers")]
private Provider* vala_providers ();
public Provider[] providers
{
get {
unowned Provider[] res = (Provider[]) vala_providers ();
res.length = num_providers;
return res;
}
}
}
[CCode (cname = "xcb_randr_provider_capability_t", cprefix = "XCB_RANDR_PROVIDER_CAPABILITY_", has_type_id = false)]
public enum ProviderCapability {
SOURCE_OUTPUT,
SINK_OUTPUT,
SOURCE_OFFLOAD,
SINK_OFFLOAD
}
[SimpleType]
[IntegerType (rank = 9)]
[CCode (cname = "xcb_randr_get_provider_info_cookie_t", has_type_id = false)]
public struct GetProviderInfoCookie {
}
[Compact]
[CCode (cname = "xcb_randr_get_provider_info_reply_t", ref_function = "", unref_function = "free")]
public class GetProviderInfoReply : Xcb.GenericReply {
public SetConfig status;