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
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
/// C++ type: <span style='color: green;'>```QAccessible```</span>
///
/// <a href="http://doc.qt.io/qt-5/qaccessible.html">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qaccessible.html">QAccessible</a> class provides enums and static functions related to accessibility.</p>
/// <p>This class is part of <a href="http://doc.qt.io/qt-5/accessible-qwidget.html">Accessibility for QWidget Applications</a>.</p>
/// <p>Accessible applications can be used by people who are not able to use applications by conventional means.</p>
/// <p>The functions in this class are used for communication between accessible applications (also called AT Servers) and accessibility tools (AT Clients), such as screen readers and braille displays. Clients and servers communicate in the following way:</p>
/// <ul>
/// <li><i>AT Servers</i> notify the clients about events through calls to the <a href="http://doc.qt.io/qt-5/qaccessible.html#updateAccessibility">updateAccessibility</a>() function.</li>
/// <li><i>AT Clients</i> request information about the objects in the server. The <a href="http://doc.qt.io/qt-5/qaccessibleinterface.html">QAccessibleInterface</a> class is the core interface, and encapsulates this information in a pure virtual API. Implementations of the interface are provided by Qt through the <a href="http://doc.qt.io/qt-5/qaccessible.html#queryAccessibleInterface">queryAccessibleInterface</a>() API.</li>
/// </ul>
/// <p>The communication between servers and clients is initialized by the <a href="http://doc.qt.io/qt-5/qaccessible.html#setRootObject">setRootObject</a>() function. Function pointers can be installed to replace or extend the default behavior of the static functions in <a href="http://doc.qt.io/qt-5/qaccessible.html">QAccessible</a>.</p>
/// <p>Qt supports Microsoft Active Accessibility (MSAA), <a href="http://doc.qt.io/qt-5/internationalization.html#macos">macOS</a> Accessibility, and the Unix/X11 AT-SPI standard. Other backends can be supported using QAccessibleBridge.</p>
/// <p>In the Unix/X11 AT-SPI implementation, applications become accessible when two conditions are met:</p>
/// <ul>
/// <li>org.a11y.Status.IsEnabled DBus property is true</li>
/// <li>org.a11y.Status.ScreenReaderEnabled DBus property is true</li>
/// </ul>
/// <p>An alternative to setting the DBus AT-SPI properties is to set the QT_LINUX_ACCESSIBILITY_ALWAYS_ON environment variable.</p>
/// <p>In addition to <a href="http://doc.qt.io/qt-5/qaccessible.html">QAccessible</a>'s static functions, Qt offers one generic interface, <a href="http://doc.qt.io/qt-5/qaccessibleinterface.html">QAccessibleInterface</a>, that can be used to wrap all widgets and objects (e.g., <a href="http://doc.qt.io/qt-5/qpushbutton.html">QPushButton</a>). This single interface provides all the metadata necessary for the assistive technologies. Qt provides implementations of this interface for its built-in widgets as plugins.</p>
/// <p>When you develop custom widgets, you can create custom subclasses of <a href="http://doc.qt.io/qt-5/qaccessibleinterface.html">QAccessibleInterface</a> and distribute them as plugins (using <a href="http://doc.qt.io/qt-5/qaccessibleplugin.html">QAccessiblePlugin</a>) or compile them into the application. Likewise, Qt's predefined accessibility support can be built as plugin (the default) or directly into the Qt library. The main advantage of using plugins is that the accessibility classes are only loaded into memory if they are actually used; they don't slow down the common case where no assistive technology is being used.</p>
/// <p>Qt also includes two convenience classes, <a href="http://doc.qt.io/qt-5/qaccessibleobject.html">QAccessibleObject</a> and <a href="http://doc.qt.io/qt-5/qaccessiblewidget.html">QAccessibleWidget</a>, that inherit from <a href="http://doc.qt.io/qt-5/qaccessibleinterface.html">QAccessibleInterface</a> and provide the lowest common denominator of metadata (e.g., widget geometry, window title, basic help text). You can use them as base classes when wrapping your custom <a href="http://doc.qt.io/qt-5/qobject.html">QObject</a> or <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a> subclasses.</p></div>
#[repr(C)]
pub struct Accessible(u8);

impl Accessible {
  /// C++ method: <span style='color: green;'>```static QAccessibleInterface* QAccessible::accessibleInterface(unsigned int uniqueId)```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qaccessible.html#accessibleInterface">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the <a href="http://doc.qt.io/qt-5/qaccessibleinterface.html">QAccessibleInterface</a> belonging to the <i>id</i>.</p>
  /// <p>Returns 0 if the id is invalid.</p></div>
  pub fn accessible_interface(unique_id: ::libc::c_uint) -> *mut ::accessible_interface::AccessibleInterface {
    unsafe { ::ffi::qt_gui_c_QAccessible_accessibleInterface(unique_id) }
  }

  /// C++ method: <span style='color: green;'>```static void QAccessible::cleanup()```</span>
  ///
  ///
  pub fn cleanup() {
    unsafe { ::ffi::qt_gui_c_QAccessible_cleanup() }
  }

  /// C++ method: <span style='color: green;'>```static void QAccessible::deleteAccessibleInterface(unsigned int uniqueId)```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qaccessible.html#deleteAccessibleInterface">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the interface belonging to this <i>id</i> from the cache and deletes it. The id becomes invalid an may be re-used by the cache.</p></div>
  pub fn delete_accessible_interface(unique_id: ::libc::c_uint) {
    unsafe { ::ffi::qt_gui_c_QAccessible_deleteAccessibleInterface(unique_id) }
  }

  /// C++ method: <span style='color: green;'>```static void (*FN_PTR)(QObject*) QAccessible::installRootObjectHandler(void (*FN_PTR)(QObject*) arg1)```</span>
  ///
  ///
  pub unsafe fn install_root_object_handler(arg1: extern "C" fn(*mut ::qt_core::object::Object))
                                            -> extern "C" fn(*mut ::qt_core::object::Object) {
    ::ffi::qt_gui_c_QAccessible_installRootObjectHandler(arg1)
  }

  /// C++ method: <span style='color: green;'>```static void (*FN_PTR)(QAccessibleEvent*) QAccessible::installUpdateHandler(void (*FN_PTR)(QAccessibleEvent*) arg1)```</span>
  ///
  ///
  pub unsafe fn install_update_handler(arg1: extern "C" fn(*mut ::accessible_event::AccessibleEvent))
                                       -> extern "C" fn(*mut ::accessible_event::AccessibleEvent) {
    ::ffi::qt_gui_c_QAccessible_installUpdateHandler(arg1)
  }

  /// C++ method: <span style='color: green;'>```static bool QAccessible::isActive()```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qaccessible.html#isActive">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if the platform requested accessibility information.</p>
  /// <p>This function will return false until a tool such as a screen reader accessed the accessibility framework. It is still possible to use <a href="http://doc.qt.io/qt-5/qaccessible.html#queryAccessibleInterface">QAccessible::queryAccessibleInterface</a>() even if accessibility is not active. But there will be no notifications sent to the platform.</p>
  /// <p>It is recommended to use this function to prevent expensive notifications via <a href="http://doc.qt.io/qt-5/qaccessible.html#updateAccessibility">updateAccessibility</a>() when they are not needed.</p></div>
  pub fn is_active() -> bool {
    unsafe { ::ffi::qt_gui_c_QAccessible_isActive() }
  }

  /// C++ method: <span style='color: green;'>```static QPair<int, int> QAccessible::qAccessibleTextBoundaryHelper(const QTextCursor& cursor, QAccessible::TextBoundaryType boundaryType)```</span>
  ///
  ///
  pub fn q_accessible_text_boundary_helper(cursor: &::text_cursor::TextCursor,
                                           boundary_type: ::accessible::TextBoundaryType)
                                           -> ::pair::PairCIntCInt {
    {
      let mut object: ::pair::PairCIntCInt =
        unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
      unsafe {
        ::ffi::qt_gui_c_QAccessible_qAccessibleTextBoundaryHelper_to_output(cursor as *const ::text_cursor::TextCursor, boundary_type, &mut object);
      }
      object
    }
  }

  /// C++ method: <span style='color: green;'>```static QAccessibleInterface* QAccessible::queryAccessibleInterface(QObject* arg1)```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qaccessible.html#queryAccessibleInterface">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>If a <a href="http://doc.qt.io/qt-5/qaccessibleinterface.html">QAccessibleInterface</a> implementation exists for the given <i>object</i>, this function returns a pointer to the implementation; otherwise it returns 0.</p>
  /// <p>The function calls all installed factory functions (from most recently installed to least recently installed) until one is found that provides an interface for the class of <i>object</i>. If no factory can provide an accessibility implementation for the class the function loads installed accessibility plugins, and tests if any of the plugins can provide the implementation.</p>
  /// <p>If no implementation for the object's class is available, the function tries to find an implementation for the object's parent class, using the above strategy.</p>
  /// <p>All interfaces are managed by an internal cache and should not be deleted.</p></div>
  pub unsafe fn query_accessible_interface(arg1: *mut ::qt_core::object::Object)
                                           -> *mut ::accessible_interface::AccessibleInterface {
    ::ffi::qt_gui_c_QAccessible_queryAccessibleInterface(arg1)
  }

  /// C++ method: <span style='color: green;'>```static unsigned int QAccessible::registerAccessibleInterface(QAccessibleInterface* iface)```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qaccessible.html#registerAccessibleInterface">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Call this function to ensure that manually created interfaces are properly memory managed.</p>
  /// <p>Must only be called exactly once per interface <i>iface</i>. This is implicitly called when calling <a href="http://doc.qt.io/qt-5/qaccessible.html#queryAccessibleInterface">queryAccessibleInterface</a>, calling this function is only required when QAccessibleInterfaces are instantiated with the "new" operator. This is not recommended, whenever possible use the default functions and let <a href="http://doc.qt.io/qt-5/qaccessible.html#queryAccessibleInterface">queryAccessibleInterface</a>() take care of this.</p>
  /// <p>When it is necessary to reimplement the <a href="http://doc.qt.io/qt-5/qaccessibleinterface.html#child">QAccessibleInterface::child</a>() function and returning the child after constructing it, this function needs to be called.</p></div>
  pub unsafe fn register_accessible_interface(iface: *mut ::accessible_interface::AccessibleInterface)
                                              -> ::libc::c_uint {
    ::ffi::qt_gui_c_QAccessible_registerAccessibleInterface(iface)
  }

  /// C++ method: <span style='color: green;'>```static void QAccessible::setActive(bool active)```</span>
  ///
  ///
  pub fn set_active(active: bool) {
    unsafe { ::ffi::qt_gui_c_QAccessible_setActive(active) }
  }

  /// C++ method: <span style='color: green;'>```static void QAccessible::setRootObject(QObject* object)```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qaccessible.html#setRootObject">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the root object of the accessible objects of this application to <i>object</i>. All other accessible objects are reachable using object navigation from the root object.</p>
  /// <p>Normally, it isn't necessary to call this function, because Qt sets the <a href="http://doc.qt.io/qt-5/qapplication.html">QApplication</a> object as the root object immediately before the event loop is entered in <a href="http://doc.qt.io/qt-5/qapplication.html#exec">QApplication::exec</a>().</p>
  /// <p>Use QAccessible::installRootObjectHandler() to redirect the function call to a customized handler function.</p>
  /// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qaccessible.html#queryAccessibleInterface">queryAccessibleInterface</a>().</p></div>
  pub unsafe fn set_root_object(object: *mut ::qt_core::object::Object) {
    ::ffi::qt_gui_c_QAccessible_setRootObject(object)
  }

  /// C++ method: <span style='color: green;'>```static unsigned int QAccessible::uniqueId(QAccessibleInterface* iface)```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qaccessible.html#uniqueId">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the unique ID for the <a href="http://doc.qt.io/qt-5/qaccessibleinterface.html">QAccessibleInterface</a> <i>iface</i>.</p></div>
  pub unsafe fn unique_id(iface: *mut ::accessible_interface::AccessibleInterface) -> ::libc::c_uint {
    ::ffi::qt_gui_c_QAccessible_uniqueId(iface)
  }

  /// C++ method: <span style='color: green;'>```static void QAccessible::updateAccessibility(QAccessibleEvent* event)```</span>
  ///
  /// Warning: no exact match found in C++ documentation.Below is the <a href="http://doc.qt.io/qt-5/qaccessible-obsolete.html#updateAccessibility-1">C++ documentation</a> for <code>static void QAccessible::updateAccessibility(QObject *object, int child, Event reason)</code>: <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Use <a href="http://doc.qt.io/qt-5/qaccessible.html#updateAccessibility">QAccessible::updateAccessibility</a>(<a href="http://doc.qt.io/qt-5/qaccessibleevent.html">QAccessibleEvent</a>*) instead.</p></div>
  pub unsafe fn update_accessibility(event: *mut ::accessible_event::AccessibleEvent) {
    ::ffi::qt_gui_c_QAccessible_updateAccessibility(event)
  }
}

impl ::cpp_utils::CppDeletable for ::accessible::Accessible {
  fn deleter() -> ::cpp_utils::Deleter<Self> {
    ::ffi::qt_gui_c_QAccessible_delete
  }
}

/// C++ type: <span style='color: green;'>```QAccessible::Event```</span>
///
/// <a href="http://doc.qt.io/qt-5/qaccessible.html#Event-enum">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This enum type defines accessible event types.</p>
/// <p>Internal: Used when creating subclasses of <a href="http://doc.qt.io/qt-5/qaccessibleevent.html">QAccessibleEvent</a>.</p>
///
/// <p>The values for this enum are defined to be the same as those defined in the <a href="http://accessibility.linuxfoundation.org/a11yspecs/ia2/docs/html/_accessible_event_i_d_8idl.html">IAccessible2</a> and <a href="http://msdn.microsoft.com/en-us/library/dd318066.aspx">MSAA</a> specifications.</p></div>
#[derive(Debug, PartialEq, Eq, Clone)]
#[repr(C)]
pub enum Event {
  /// A sound has been played by an object The <a href="http://doc.qt.io/qt-5/qaccessible-state.html">QAccessible::State</a> of an object has changed. This value is used internally for the <a href="http://doc.qt.io/qt-5/qaccessiblestatechangeevent.html">QAccessibleStateChangeEvent</a>. (C++ enum variant: <span style='color: green;'>```SoundPlayed = 1```</span>)
  SoundPlayed = 1,
  /// A system alert (e.g., a message from a <a href="http://doc.qt.io/qt-5/qmessagebox.html">QMessageBox</a>) (C++ enum variant: <span style='color: green;'>```Alert = 2```</span>)
  Alert = 2,
  /// A window has been activated (i.e., a new window has gained focus on the desktop). (C++ enum variant: <span style='color: green;'>```ForegroundChanged = 3```</span>)
  ForegroundChanged = 3,
  /// A menu has been opened on the menubar (Qt uses PopupMenuStart for all menus). (C++ enum variant: <span style='color: green;'>```MenuStart = 4```</span>)
  MenuStart = 4,
  /// A menu has been closed (Qt uses PopupMenuEnd for all menus). (C++ enum variant: <span style='color: green;'>```MenuEnd = 5```</span>)
  MenuEnd = 5,
  /// A pop-up menu has opened. (C++ enum variant: <span style='color: green;'>```PopupMenuStart = 6```</span>)
  PopupMenuStart = 6,
  /// A pop-up menu has closed. (C++ enum variant: <span style='color: green;'>```PopupMenuEnd = 7```</span>)
  PopupMenuEnd = 7,
  /// Context help (<a href="http://doc.qt.io/qt-5/qwhatsthis.html">QWhatsThis</a>) for an object is initiated. (C++ enum variant: <span style='color: green;'>```ContextHelpStart = 12```</span>)
  ContextHelpStart = 12,
  /// Context help (<a href="http://doc.qt.io/qt-5/qwhatsthis.html">QWhatsThis</a>) for an object is finished. (C++ enum variant: <span style='color: green;'>```ContextHelpEnd = 13```</span>)
  ContextHelpEnd = 13,
  /// A drag and drop operation is about to be initiated. (C++ enum variant: <span style='color: green;'>```DragDropStart = 14```</span>)
  DragDropStart = 14,
  /// A drag and drop operation is about to finished. (C++ enum variant: <span style='color: green;'>```DragDropEnd = 15```</span>)
  DragDropEnd = 15,
  /// A dialog (<a href="http://doc.qt.io/qt-5/qdialog.html">QDialog</a>) has been set visible. (C++ enum variant: <span style='color: green;'>```DialogStart = 16```</span>)
  DialogStart = 16,
  /// A dialog (<a href="http://doc.qt.io/qt-5/qdialog.html">QDialog</a>) has been hidden (C++ enum variant: <span style='color: green;'>```DialogEnd = 17```</span>)
  DialogEnd = 17,
  /// A scrollbar scroll operation is about to start; this may be caused by a mouse press on the slider handle, for example. (C++ enum variant: <span style='color: green;'>```ScrollingStart = 18```</span>)
  ScrollingStart = 18,
  /// A scrollbar scroll operation has ended (the mouse has released the slider handle). (C++ enum variant: <span style='color: green;'>```ScrollingEnd = 19```</span>)
  ScrollingEnd = 19,
  /// A menu item is triggered. (C++ enum variant: <span style='color: green;'>```MenuCommand = 24```</span>)
  MenuCommand = 24,
  /// An action has been changed. (C++ enum variant: <span style='color: green;'>```ActionChanged = 257```</span>)
  ActionChanged = 257,
  /// &nbsp; (C++ enum variant: <span style='color: green;'>```ActiveDescendantChanged = 258```</span>)
  ActiveDescendantChanged = 258,
  /// &nbsp; (C++ enum variant: <span style='color: green;'>```AttributeChanged = 259```</span>)
  AttributeChanged = 259,
  /// The contents of a text document have changed. (C++ enum variant: <span style='color: green;'>```DocumentContentChanged = 260```</span>)
  DocumentContentChanged = 260,
  /// A document has been loaded. (C++ enum variant: <span style='color: green;'>```DocumentLoadComplete = 261```</span>)
  DocumentLoadComplete = 261,
  /// A document load has been stopped. (C++ enum variant: <span style='color: green;'>```DocumentLoadStopped = 262```</span>)
  DocumentLoadStopped = 262,
  /// A document reload has been initiated. (C++ enum variant: <span style='color: green;'>```DocumentReload = 263```</span>)
  DocumentReload = 263,
  /// The end position of the display text for a hypertext link has changed. (C++ enum variant: <span style='color: green;'>```HyperlinkEndIndexChanged = 264```</span>)
  HyperlinkEndIndexChanged = 264,
  /// The number of anchors in a hypertext link has changed, perhaps because the display text has been split to provide more than one link. (C++ enum variant: <span style='color: green;'>```HyperlinkNumberOfAnchorsChanged = 265```</span>)
  HyperlinkNumberOfAnchorsChanged = 265,
  /// The link for the selected hypertext link has changed. (C++ enum variant: <span style='color: green;'>```HyperlinkSelectedLinkChanged = 266```</span>)
  HyperlinkSelectedLinkChanged = 266,
  /// A hypertext link has been activated, perhaps by being clicked or via a key press. (C++ enum variant: <span style='color: green;'>```HypertextLinkActivated = 267```</span>)
  HypertextLinkActivated = 267,
  /// A hypertext link has been selected. (C++ enum variant: <span style='color: green;'>```HypertextLinkSelected = 268```</span>)
  HypertextLinkSelected = 268,
  /// The start position of the display text for a hypertext link has changed. (C++ enum variant: <span style='color: green;'>```HyperlinkStartIndexChanged = 269```</span>)
  HyperlinkStartIndexChanged = 269,
  /// The display text for a hypertext link has changed. (C++ enum variant: <span style='color: green;'>```HypertextChanged = 270```</span>)
  HypertextChanged = 270,
  /// &nbsp; (C++ enum variant: <span style='color: green;'>```HypertextNLinksChanged = 271```</span>)
  HypertextNLinksChanged = 271,
  /// &nbsp; (C++ enum variant: <span style='color: green;'>```ObjectAttributeChanged = 272```</span>)
  ObjectAttributeChanged = 272,
  /// &nbsp; (C++ enum variant: <span style='color: green;'>```PageChanged = 273```</span>)
  PageChanged = 273,
  /// &nbsp; (C++ enum variant: <span style='color: green;'>```SectionChanged = 274```</span>)
  SectionChanged = 274,
  /// A table caption has been changed. (C++ enum variant: <span style='color: green;'>```TableCaptionChanged = 275```</span>)
  TableCaptionChanged = 275,
  /// The description of a table column, typically found in the column's header, has been changed. (C++ enum variant: <span style='color: green;'>```TableColumnDescriptionChanged = 276```</span>)
  TableColumnDescriptionChanged = 276,
  /// A table column header has been changed. The model providing data for a table has been changed. (C++ enum variant: <span style='color: green;'>```TableColumnHeaderChanged = 277```</span>)
  TableColumnHeaderChanged = 277,
  /// C++ enum variant: <span style='color: green;'>```TableModelChanged = 278```</span>
  TableModelChanged = 278,
  /// The description of a table row, typically found in the row's header, has been changed. (C++ enum variant: <span style='color: green;'>```TableRowDescriptionChanged = 279```</span>)
  TableRowDescriptionChanged = 279,
  /// A table row header has been changed. (C++ enum variant: <span style='color: green;'>```TableRowHeaderChanged = 280```</span>)
  TableRowHeaderChanged = 280,
  /// The summary of a table has been changed. The caret has moved in an editable widget. The caret represents the cursor position in an editable widget with the input focus. (C++ enum variant: <span style='color: green;'>```TableSummaryChanged = 281```</span>)
  TableSummaryChanged = 281,
  /// C++ enum variant: <span style='color: green;'>```TextAttributeChanged = 282```</span>
  TextAttributeChanged = 282,
  /// C++ enum variant: <span style='color: green;'>```TextCaretMoved = 283```</span>
  TextCaretMoved = 283,
  /// A text column has been changed. Text has been inserted into an editable widget. Text has been removed from an editable widget. The selected text has changed in an editable widget. The text has been update in an editable widget. The <a href="http://doc.qt.io/qt-5/qaccessible.html#Text-enum">QAccessible::Value</a> of an object has changed. (C++ enum variant: <span style='color: green;'>```TextColumnChanged = 285```</span>)
  TextColumnChanged = 285,
  /// C++ enum variant: <span style='color: green;'>```TextInserted = 286```</span>
  TextInserted = 286,
  /// C++ enum variant: <span style='color: green;'>```TextRemoved = 287```</span>
  TextRemoved = 287,
  /// C++ enum variant: <span style='color: green;'>```TextUpdated = 288```</span>
  TextUpdated = 288,
  /// C++ enum variant: <span style='color: green;'>```TextSelectionChanged = 289```</span>
  TextSelectionChanged = 289,
  /// &nbsp; (C++ enum variant: <span style='color: green;'>```VisibleDataChanged = 290```</span>)
  VisibleDataChanged = 290,
  /// A new object is created. (C++ enum variant: <span style='color: green;'>```ObjectCreated = 32768```</span>)
  ObjectCreated = 32768,
  /// An object is deleted. (C++ enum variant: <span style='color: green;'>```ObjectDestroyed = 32769```</span>)
  ObjectDestroyed = 32769,
  /// An object is displayed; for example, with <a href="http://doc.qt.io/qt-5/qwidget.html#show">QWidget::show</a>(). (C++ enum variant: <span style='color: green;'>```ObjectShow = 32770```</span>)
  ObjectShow = 32770,
  /// An object is hidden; for example, with <a href="http://doc.qt.io/qt-5/qwidget.html#hide">QWidget::hide</a>(). Any children the object that is hidden has do not send this event. It is not sent when an object is hidden as it is being obcured by others. (C++ enum variant: <span style='color: green;'>```ObjectHide = 32771```</span>)
  ObjectHide = 32771,
  /// A layout or item view has added, removed, or moved an object (Qt does not use this event). (C++ enum variant: <span style='color: green;'>```ObjectReorder = 32772```</span>)
  ObjectReorder = 32772,
  /// An object has gained keyboard focus. (C++ enum variant: <span style='color: green;'>```Focus = 32773```</span>)
  Focus = 32773,
  /// The selection has changed in a menu or item view. (C++ enum variant: <span style='color: green;'>```Selection = 32774```</span>)
  Selection = 32774,
  /// An item has been added to the selection in an item view. (C++ enum variant: <span style='color: green;'>```SelectionAdd = 32775```</span>)
  SelectionAdd = 32775,
  /// An item has been removed from an item view selection. (C++ enum variant: <span style='color: green;'>```SelectionRemove = 32776```</span>)
  SelectionRemove = 32776,
  /// Several changes to a selection has occurred in an item view. (C++ enum variant: <span style='color: green;'>```SelectionWithin = 32777```</span>)
  SelectionWithin = 32777,
  /// C++ enum variant: <span style='color: green;'>```StateChanged = 32778```</span>
  StateChanged = 32778,
  /// An object's location on the screen has changed. (C++ enum variant: <span style='color: green;'>```LocationChanged = 32779```</span>)
  LocationChanged = 32779,
  /// The <a href="http://doc.qt.io/qt-5/qaccessible.html#Text-enum">QAccessible::Name</a> property of an object has changed. (C++ enum variant: <span style='color: green;'>```NameChanged = 32780```</span>)
  NameChanged = 32780,
  /// The object's <a href="http://doc.qt.io/qt-5/qaccessible.html#Text-enum">QAccessible::Description</a> changed. (C++ enum variant: <span style='color: green;'>```DescriptionChanged = 32781```</span>)
  DescriptionChanged = 32781,
  /// C++ enum variant: <span style='color: green;'>```ValueChanged = 32782```</span>
  ValueChanged = 32782,
  /// An object's parent object changed. (C++ enum variant: <span style='color: green;'>```ParentChanged = 32783```</span>)
  ParentChanged = 32783,
  /// The <a href="http://doc.qt.io/qt-5/qaccessible.html#Text-enum">QAccessible::Help</a> text property of an object has changed. (C++ enum variant: <span style='color: green;'>```HelpChanged = 32928```</span>)
  HelpChanged = 32928,
  /// The default QAccessible::Action for the accessible object has changed. (C++ enum variant: <span style='color: green;'>```DefaultActionChanged = 32944```</span>)
  DefaultActionChanged = 32944,
  /// The keyboard accelerator for an action has been changed. (C++ enum variant: <span style='color: green;'>```AcceleratorChanged = 32960```</span>)
  AcceleratorChanged = 32960,
  /// C++ enum variant: <span style='color: green;'>```InvalidEvent = 32961```</span>
  InvalidEvent = 32961,
}

/// C++ type: <span style='color: green;'>```QAccessible::InterfaceType```</span>
///
/// <a href="http://doc.qt.io/qt-5/qaccessible.html#InterfaceType-enum">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p><a href="http://doc.qt.io/qt-5/qaccessibleinterface.html">QAccessibleInterface</a> supports several sub interfaces. In order to provide more information about some objects, their accessible representation should implement one or more of these interfaces.</p>
/// <p><b>Note: </b>When subclassing one of these interfaces, <a href="http://doc.qt.io/qt-5/qaccessibleinterface.html#interface_cast">QAccessibleInterface::interface_cast</a>() needs to be implemented.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qaccessibleinterface.html#interface_cast">QAccessibleInterface::interface_cast</a>(), <a href="http://doc.qt.io/qt-5/qaccessibletextinterface.html">QAccessibleTextInterface</a>, <a href="http://doc.qt.io/qt-5/qaccessiblevalueinterface.html">QAccessibleValueInterface</a>, <a href="http://doc.qt.io/qt-5/qaccessibleactioninterface.html">QAccessibleActionInterface</a>, <a href="http://doc.qt.io/qt-5/qaccessibletableinterface.html">QAccessibleTableInterface</a>, and <a href="http://doc.qt.io/qt-5/qaccessibletablecellinterface.html">QAccessibleTableCellInterface</a>.</p></div>
#[derive(Debug, PartialEq, Eq, Clone)]
#[repr(C)]
pub enum InterfaceType {
  /// For text that supports selections or is more than one line. Simple labels do not need to implement this interface. For text that can be edited by the user. (C++ enum variant: <span style='color: green;'>```TextInterface = 0```</span>)
  Text = 0,
  /// C++ enum variant: <span style='color: green;'>```EditableTextInterface = 1```</span>
  EditableText = 1,
  /// For objects that are used to manipulate a value, for example slider or scroll bar. (C++ enum variant: <span style='color: green;'>```ValueInterface = 2```</span>)
  Value = 2,
  /// For interactive objects that allow the user to trigger an action. Basically everything that allows for example mouse interaction. For objects that represent an image. This interface is generally less important. (C++ enum variant: <span style='color: green;'>```ActionInterface = 3```</span>)
  Action = 3,
  /// C++ enum variant: <span style='color: green;'>```ImageInterface = 4```</span>
  Image = 4,
  /// For lists, tables and trees. (C++ enum variant: <span style='color: green;'>```TableInterface = 5```</span>)
  Table = 5,
  /// For cells in a TableInterface object. (C++ enum variant: <span style='color: green;'>```TableCellInterface = 6```</span>)
  TableCell = 6,
}

/// C++ type: <span style='color: green;'>```QAccessible::RelationFlag```</span>
///
/// <a href="http://doc.qt.io/qt-5/qaccessible.html#RelationFlag-enum">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This enum type defines bit flags that can be combined to indicate the relationship between two accessible objects.</p>
///
/// <p>Implementations of relations() return a combination of these flags. Some values are mutually exclusive.</p>
/// <p>The Relation type is a typedef for <a href="http://doc.qt.io/qt-5/qflags.html">QFlags</a>&lt;RelationFlag&gt;. It stores an OR combination of RelationFlag values.</p></div>
#[derive(Debug, PartialEq, Eq, Clone)]
#[repr(C)]
pub enum RelationFlag {
  /// Used as a mask to specify that we are interesting in information about all relations (C++ enum variant: <span style='color: green;'>```AllRelations = -1```</span>)
  AllRelations = -1,
  /// The first object is the label of the second object. (C++ enum variant: <span style='color: green;'>```Label = 1```</span>)
  Label = 1,
  /// The first object is labelled by the second object. (C++ enum variant: <span style='color: green;'>```Labelled = 2```</span>)
  Labelled = 2,
  /// The first object controls the second object. (C++ enum variant: <span style='color: green;'>```Controller = 4```</span>)
  Controller = 4,
  /// The first object is controlled by the second object. (C++ enum variant: <span style='color: green;'>```Controlled = 8```</span>)
  Controlled = 8,
}

impl ::qt_core::flags::FlaggableEnum for RelationFlag {
  fn to_flag_value(self) -> ::libc::c_int {
    self as ::libc::c_int
  }
  fn enum_name() -> &'static str {
    "RelationFlag"
  }
}

/// C++ type: <span style='color: green;'>```QAccessible::Role```</span>
///
/// <a href="http://doc.qt.io/qt-5/qaccessible.html#Role-enum">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This enum defines the role of an accessible object. The roles are:</p></div>
#[derive(Debug, PartialEq, Eq, Clone)]
#[repr(C)]
pub enum Role {
  /// The object has no role. This usually indicates an invalid object. (C++ enum variant: <span style='color: green;'>```NoRole = 0```</span>)
  NoRole = 0,
  /// The title bar caption of a window. (C++ enum variant: <span style='color: green;'>```TitleBar = 1```</span>)
  TitleBar = 1,
  /// A menu bar from which menus are opened by the user. (C++ enum variant: <span style='color: green;'>```MenuBar = 2```</span>)
  MenuBar = 2,
  /// A scroll bar, which allows the user to scroll the visible area. (C++ enum variant: <span style='color: green;'>```ScrollBar = 3```</span>)
  ScrollBar = 3,
  /// A grip that the user can drag to change the size of widgets. (C++ enum variant: <span style='color: green;'>```Grip = 4```</span>)
  Grip = 4,
  /// An object that represents a sound. (C++ enum variant: <span style='color: green;'>```Sound = 5```</span>)
  Sound = 5,
  /// An object that represents the mouse cursor. (C++ enum variant: <span style='color: green;'>```Cursor = 6```</span>)
  Cursor = 6,
  /// An object that represents the system caret (text cursor). (C++ enum variant: <span style='color: green;'>```Caret = 7```</span>)
  Caret = 7,
  /// An object that is used to alert the user. (C++ enum variant: <span style='color: green;'>```AlertMessage = 8```</span>)
  AlertMessage = 8,
  /// A top level window. (C++ enum variant: <span style='color: green;'>```Window = 9```</span>)
  Window = 9,
  /// The client area in a window. (C++ enum variant: <span style='color: green;'>```Client = 10```</span>)
  Client = 10,
  /// A menu which lists options that the user can select to perform an action. (C++ enum variant: <span style='color: green;'>```PopupMenu = 11```</span>)
  PopupMenu = 11,
  /// An item in a menu or menu bar. (C++ enum variant: <span style='color: green;'>```MenuItem = 12```</span>)
  MenuItem = 12,
  /// A tool tip which provides information about other objects. (C++ enum variant: <span style='color: green;'>```ToolTip = 13```</span>)
  ToolTip = 13,
  /// The application's main window. (C++ enum variant: <span style='color: green;'>```Application = 14```</span>)
  Application = 14,
  /// A document, for example in an office application. (C++ enum variant: <span style='color: green;'>```Document = 15```</span>)
  Document = 15,
  /// A generic container. (C++ enum variant: <span style='color: green;'>```Pane = 16```</span>)
  Pane = 16,
  /// An object that displays a graphical representation of data. (C++ enum variant: <span style='color: green;'>```Chart = 17```</span>)
  Chart = 17,
  /// A dialog box. (C++ enum variant: <span style='color: green;'>```Dialog = 18```</span>)
  Dialog = 18,
  /// An object that represents a border. (C++ enum variant: <span style='color: green;'>```Border = 19```</span>)
  Border = 19,
  /// An object that represents a logical grouping of other objects. (C++ enum variant: <span style='color: green;'>```Grouping = 20```</span>)
  Grouping = 20,
  /// A separator that divides space into logical areas. (C++ enum variant: <span style='color: green;'>```Separator = 21```</span>)
  Separator = 21,
  /// A tool bar, which groups widgets that the user accesses frequently. (C++ enum variant: <span style='color: green;'>```ToolBar = 22```</span>)
  ToolBar = 22,
  /// A status bar. (C++ enum variant: <span style='color: green;'>```StatusBar = 23```</span>)
  StatusBar = 23,
  /// A table representing data in a grid of rows and columns. (C++ enum variant: <span style='color: green;'>```Table = 24```</span>)
  Table = 24,
  /// A header for a column of data. (C++ enum variant: <span style='color: green;'>```ColumnHeader = 25```</span>)
  ColumnHeader = 25,
  /// A header for a row of data. (C++ enum variant: <span style='color: green;'>```RowHeader = 26```</span>)
  RowHeader = 26,
  /// A column of cells, usually within a table. (C++ enum variant: <span style='color: green;'>```Column = 27```</span>)
  Column = 27,
  /// A row of cells, usually within a table. (C++ enum variant: <span style='color: green;'>```Row = 28```</span>)
  Row = 28,
  /// A cell in a table. (C++ enum variant: <span style='color: green;'>```Cell = 29```</span>)
  Cell = 29,
  /// A link to something else. (C++ enum variant: <span style='color: green;'>```Link = 30```</span>)
  Link = 30,
  /// An object that displays help in a separate, short lived window. (C++ enum variant: <span style='color: green;'>```HelpBalloon = 31```</span>)
  HelpBalloon = 31,
  /// An object that provids interactive help. (C++ enum variant: <span style='color: green;'>```Assistant = 32```</span>)
  Assistant = 32,
  /// A list of items, from which the user can select one or more items. (C++ enum variant: <span style='color: green;'>```List = 33```</span>)
  List = 33,
  /// An item in a list of items. (C++ enum variant: <span style='color: green;'>```ListItem = 34```</span>)
  ListItem = 34,
  /// A list of items in a tree structure. (C++ enum variant: <span style='color: green;'>```Tree = 35```</span>)
  Tree = 35,
  /// An item in a tree structure. (C++ enum variant: <span style='color: green;'>```TreeItem = 36```</span>)
  TreeItem = 36,
  /// A page tab that the user can select to switch to a different page in a dialog. (C++ enum variant: <span style='color: green;'>```PageTab = 37```</span>)
  PageTab = 37,
  /// A property page where the user can change options and settings. (C++ enum variant: <span style='color: green;'>```PropertyPage = 38```</span>)
  PropertyPage = 38,
  /// An indicator that represents a current value or item. (C++ enum variant: <span style='color: green;'>```Indicator = 39```</span>)
  Indicator = 39,
  /// A graphic or picture, e.g. an icon. (C++ enum variant: <span style='color: green;'>```Graphic = 40```</span>)
  Graphic = 40,
  /// Static text, such as labels for other widgets. (C++ enum variant: <span style='color: green;'>```StaticText = 41```</span>)
  StaticText = 41,
  /// Editable text such as a line or text edit. (C++ enum variant: <span style='color: green;'>```EditableText = 42```</span>)
  EditableText = 42,
  /// This variant corresponds to multiple C++ enum variants with the same value:
  ///
  /// - <span style='color: green;'>```Button = 43```</span>: A button.
  /// - <span style='color: green;'>```PushButton = 43```</span>
  ///
  Button = 43,
  /// An object that represents an option that can be checked or unchecked. Some options provide a "mixed" state, e.g. neither checked nor unchecked. (C++ enum variant: <span style='color: green;'>```CheckBox = 44```</span>)
  CheckBox = 44,
  /// An object that represents an option that is mutually exclusive with other options. (C++ enum variant: <span style='color: green;'>```RadioButton = 45```</span>)
  RadioButton = 45,
  /// A list of choices that the user can select from. (C++ enum variant: <span style='color: green;'>```ComboBox = 46```</span>)
  ComboBox = 46,
  /// The object displays the progress of an operation in progress. (C++ enum variant: <span style='color: green;'>```ProgressBar = 48```</span>)
  ProgressBar = 48,
  /// An object that represents a dial or knob. (C++ enum variant: <span style='color: green;'>```Dial = 49```</span>)
  Dial = 49,
  /// A hotkey field that allows the user to enter a key sequence. (C++ enum variant: <span style='color: green;'>```HotkeyField = 50```</span>)
  HotkeyField = 50,
  /// A slider that allows the user to select a value within a given range. (C++ enum variant: <span style='color: green;'>```Slider = 51```</span>)
  Slider = 51,
  /// A spin box widget that allows the user to enter a value within a given range. (C++ enum variant: <span style='color: green;'>```SpinBox = 52```</span>)
  SpinBox = 52,
  /// An object that displays graphics that the user can interact with. (C++ enum variant: <span style='color: green;'>```Canvas = 53```</span>)
  Canvas = 53,
  /// An object that displays an animation. (C++ enum variant: <span style='color: green;'>```Animation = 54```</span>)
  Animation = 54,
  /// An object that represents a mathematical equation. (C++ enum variant: <span style='color: green;'>```Equation = 55```</span>)
  Equation = 55,
  /// A button that drops down a list of items. (C++ enum variant: <span style='color: green;'>```ButtonDropDown = 56```</span>)
  ButtonDropDown = 56,
  /// A button that drops down a menu. (C++ enum variant: <span style='color: green;'>```ButtonMenu = 57```</span>)
  ButtonMenu = 57,
  /// A button that drops down a grid. (C++ enum variant: <span style='color: green;'>```ButtonDropGrid = 58```</span>)
  ButtonDropGrid = 58,
  /// Blank space between other objects. (C++ enum variant: <span style='color: green;'>```Whitespace = 59```</span>)
  Whitespace = 59,
  /// A list of page tabs. (C++ enum variant: <span style='color: green;'>```PageTabList = 60```</span>)
  PageTabList = 60,
  /// A clock displaying time. (C++ enum variant: <span style='color: green;'>```Clock = 61```</span>)
  Clock = 61,
  /// A splitter distributing available space between its child widgets. (C++ enum variant: <span style='color: green;'>```Splitter = 62```</span>)
  Splitter = 62,
  /// An object that can contain layered children, e.g. in a stack. (C++ enum variant: <span style='color: green;'>```LayeredPane = 128```</span>)
  LayeredPane = 128,
  /// A terminal or command line interface. (C++ enum variant: <span style='color: green;'>```Terminal = 129```</span>)
  Terminal = 129,
  /// The object represents the desktop or workspace. (C++ enum variant: <span style='color: green;'>```Desktop = 130```</span>)
  Desktop = 130,
  /// A paragraph of text (usually found in documents). (C++ enum variant: <span style='color: green;'>```Paragraph = 131```</span>)
  Paragraph = 131,
  /// HTML document, usually in a browser. (C++ enum variant: <span style='color: green;'>```WebDocument = 132```</span>)
  WebDocument = 132,
  /// A section (in a document). (C++ enum variant: <span style='color: green;'>```Section = 133```</span>)
  Section = 133,
  /// A dialog that lets the user choose a color. (C++ enum variant: <span style='color: green;'>```ColorChooser = 1028```</span>)
  ColorChooser = 1028,
  /// A footer in a page (usually in documents). (C++ enum variant: <span style='color: green;'>```Footer = 1038```</span>)
  Footer = 1038,
  /// A web form containing controls. (C++ enum variant: <span style='color: green;'>```Form = 1040```</span>)
  Form = 1040,
  /// A heading in a document. (C++ enum variant: <span style='color: green;'>```Heading = 1044```</span>)
  Heading = 1044,
  /// A section whose content is parenthetic or ancillary to the main content of the resource. (C++ enum variant: <span style='color: green;'>```Note = 1051```</span>)
  Note = 1051,
  /// A part of the document or web page that is complementary to the main content, usually a landmark (see WAI-ARIA). (C++ enum variant: <span style='color: green;'>```ComplementaryContent = 1068```</span>)
  ComplementaryContent = 1068,
  /// The first value to be used for user defined roles. (C++ enum variant: <span style='color: green;'>```UserRole = 65535```</span>)
  UserRole = 65535,
}

/// C++ type: <span style='color: green;'>```QAccessible::State```</span>
///
/// <a href="http://doc.qt.io/qt-5/qaccessible-state.html">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This structure defines bit flags that indicate the state of an accessible object. The values are:</p>
/// <div class="table"><table class="valuelist"><tbody><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
/// <tr><td class="topAlign"><code>active</code></td><td class="topAlign">The object is the active window or the active sub-element in a container (that would get focus when focusing the container).</td></tr>
/// <tr><td class="topAlign"><code>adjustable</code></td><td class="topAlign">The object represents an adjustable value, e.g. sliders.</td></tr>
/// <tr><td class="topAlign"><code>animated</code></td><td class="topAlign">The object's appearance changes frequently.</td></tr>
/// <tr><td class="topAlign"><code>busy</code></td><td class="topAlign">The object cannot accept input at the moment.</td></tr>
/// <tr><td class="topAlign"><code>checkable</code></td><td class="topAlign">The object is checkable.</td></tr>
/// <tr><td class="topAlign"><code>checked</code></td><td class="topAlign">The object's check box is checked.</td></tr>
/// <tr><td class="topAlign"><code>checkStateMixed</code></td><td class="topAlign">The third state of checkboxes (half checked in tri-state check boxes).</td></tr>
/// <tr><td class="topAlign"><code>collapsed</code></td><td class="topAlign">The object is collapsed, e.g. a closed listview item, or an iconified window.</td></tr>
/// <tr><td class="topAlign"><code>defaultButton</code></td><td class="topAlign">The object represents the default button in a dialog.</td></tr>
/// <tr><td class="topAlign"><code>defunct</code></td><td class="topAlign">The object no longer exists.</td></tr>
/// <tr><td class="topAlign"><code>editable</code></td><td class="topAlign">The object has a text carret (and often implements the text interface).</td></tr>
/// <tr><td class="topAlign"><code>expandable</code></td><td class="topAlign">The object is expandable, mostly used for cells in a tree view.</td></tr>
/// <tr><td class="topAlign"><code>expanded</code></td><td class="topAlign">The object is expanded, currently its children are visible.</td></tr>
/// <tr><td class="topAlign"><code>extSelectable</code></td><td class="topAlign">The object supports extended selection.</td></tr>
/// <tr><td class="topAlign"><code>focusable</code></td><td class="topAlign">The object can receive focus. Only objects in the active window can receive focus.</td></tr>
/// <tr><td class="topAlign"><code>focused</code></td><td class="topAlign">The object has keyboard focus.</td></tr>
/// <tr><td class="topAlign"><code>hasPopup</code></td><td class="topAlign">The object opens a popup.</td></tr>
/// <tr><td class="topAlign"><code>hotTracked</code></td><td class="topAlign">The object's appearance is sensitive to the mouse cursor position.</td></tr>
/// <tr><td class="topAlign"><code>invalid</code></td><td class="topAlign">The object is no longer valid (because it has been deleted).</td></tr>
/// <tr><td class="topAlign"><code>invalidEntry</code></td><td class="topAlign">Input validation current input invalid.</td></tr>
/// <tr><td class="topAlign"><code>invisible</code></td><td class="topAlign">The object is not visible to the user.</td></tr>
/// <tr><td class="topAlign"><code>linked</code></td><td class="topAlign">The object is linked to another object, e.g. a hyperlink.</td></tr>
/// <tr><td class="topAlign"><code>marqueed</code></td><td class="topAlign">The object displays scrolling contents, e.g. a log view.</td></tr>
/// <tr><td class="topAlign"><code>modal</code></td><td class="topAlign">The object blocks input from other objects.</td></tr>
/// <tr><td class="topAlign"><code>movable</code></td><td class="topAlign">The object can be moved.</td></tr>
/// <tr><td class="topAlign"><code>multiLine</code></td><td class="topAlign">The object has multiple lines of text (word wrap), as opposed to a single line.</td></tr>
/// <tr><td class="topAlign"><code>multiSelectable</code></td><td class="topAlign">The object supports multiple selected items.</td></tr>
/// <tr><td class="topAlign"><code>offscreen</code></td><td class="topAlign">The object is clipped by the visible area. Objects that are off screen are also invisible.</td></tr>
/// <tr><td class="topAlign"><code>passwordEdit</code></td><td class="topAlign">The object is a password field, e.g. a line edit for entering a Password.</td></tr>
/// <tr><td class="topAlign"><code>playsSound</code></td><td class="topAlign">The object produces sound when interacted with.</td></tr>
/// <tr><td class="topAlign"><code>pressed</code></td><td class="topAlign">The object is pressed.</td></tr>
/// <tr><td class="topAlign"><code>readOnly</code></td><td class="topAlign">The object can usually be edited, but is explicitly set to read-only.</td></tr>
/// <tr><td class="topAlign"><code>searchEdit</code></td><td class="topAlign">The object is a line edit that is the input for search queries.</td></tr>
/// <tr><td class="topAlign"><code>selectable</code></td><td class="topAlign">The object is selectable.</td></tr>
/// <tr><td class="topAlign"><code>selectableText</code></td><td class="topAlign">The object has text which can be selected. This is different from selectable which refers to the object's children.</td></tr>
/// <tr><td class="topAlign"><code>selected</code></td><td class="topAlign">The object is selected, this is independent of text selection.</td></tr>
/// <tr><td class="topAlign"><code>selfVoicing</code></td><td class="topAlign">The object describes itself through speech or sound.</td></tr>
/// <tr><td class="topAlign"><code>sizeable</code></td><td class="topAlign">The object can be resized, e.g. top-level windows.</td></tr>
/// <tr><td class="topAlign"><code>summaryElement</code></td><td class="topAlign">The object summarizes the state of the window and should be treated with priority.</td></tr>
/// <tr><td class="topAlign"><code>supportsAutoCompletion</code></td><td class="topAlign">The object has auto-completion, for example in line edits or combo boxes.</td></tr>
/// <tr><td class="topAlign"><code>traversed</code></td><td class="topAlign">The object is linked and has been visited.</td></tr>
/// <tr><td class="topAlign"><code>updatesFrequently</code></td><td class="topAlign">The object changes frequently and needs to be refreshed when accessing it.</td></tr>
/// <tr><td class="topAlign"><code>disabled</code></td><td class="topAlign">The object is unavailable to the user, e.g. a disabled widget.</td></tr>
/// </tbody></table></div>
/// <p>Implementations of <a href="http://doc.qt.io/qt-5/qaccessibleinterface.html#statex">QAccessibleInterface::state</a>() return a combination of these flags.</p></div>
#[repr(C)]
pub struct State([u8; ::type_sizes::QT_GUI_ACCESSIBLE_STATE]);

impl ::cpp_utils::new_uninitialized::NewUninitialized for State {
  unsafe fn new_uninitialized() -> State {
    State(::std::mem::uninitialized())
  }
}

impl State {
  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::active() const```</span>
  ///
  ///
  pub fn active(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_active(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::animated() const```</span>
  ///
  ///
  pub fn animated(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_animated(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::busy() const```</span>
  ///
  ///
  pub fn busy(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_busy(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::checkStateMixed() const```</span>
  ///
  ///
  pub fn check_state_mixed(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_checkStateMixed(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::checkable() const```</span>
  ///
  ///
  pub fn checkable(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_checkable(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::checked() const```</span>
  ///
  ///
  pub fn checked(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_checked(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::collapsed() const```</span>
  ///
  ///
  pub fn collapsed(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_collapsed(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::defaultButton() const```</span>
  ///
  ///
  pub fn default_button(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_defaultButton(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::disabled() const```</span>
  ///
  ///
  pub fn disabled(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_disabled(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::editable() const```</span>
  ///
  ///
  pub fn editable(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_editable(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::expandable() const```</span>
  ///
  ///
  pub fn expandable(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_expandable(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::expanded() const```</span>
  ///
  ///
  pub fn expanded(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_expanded(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::extSelectable() const```</span>
  ///
  ///
  pub fn ext_selectable(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_extSelectable(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::focusable() const```</span>
  ///
  ///
  pub fn focusable(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_focusable(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::focused() const```</span>
  ///
  ///
  pub fn focused(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_focused(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::hasPopup() const```</span>
  ///
  ///
  pub fn has_popup(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_hasPopup(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::hotTracked() const```</span>
  ///
  ///
  pub fn hot_tracked(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_hotTracked(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::invalid() const```</span>
  ///
  ///
  pub fn invalid(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_invalid(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::invisible() const```</span>
  ///
  ///
  pub fn invisible(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_invisible(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::linked() const```</span>
  ///
  ///
  pub fn linked(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_linked(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::marqueed() const```</span>
  ///
  ///
  pub fn marqueed(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_marqueed(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::modal() const```</span>
  ///
  ///
  pub fn modal(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_modal(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::movable() const```</span>
  ///
  ///
  pub fn movable(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_movable(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::multiLine() const```</span>
  ///
  ///
  pub fn multi_line(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_multiLine(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::multiSelectable() const```</span>
  ///
  ///
  pub fn multi_selectable(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_multiSelectable(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```[constructor] void QAccessible::State::State()```</span>
  ///
  /// <a href="http://doc.qt.io/qt-5/qaccessible-state.html#State">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a new <a href="http://doc.qt.io/qt-5/qaccessible-state.html">QAccessible::State</a> with all states set to false.</p></div>
  pub fn new() -> ::accessible::State {
    {
      let mut object: ::accessible::State =
        unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
      unsafe {
        ::ffi::qt_gui_c_QAccessible_State_constructor(&mut object);
      }
      object
    }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::offscreen() const```</span>
  ///
  ///
  pub fn offscreen(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_offscreen(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::passwordEdit() const```</span>
  ///
  ///
  pub fn password_edit(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_passwordEdit(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::pressed() const```</span>
  ///
  ///
  pub fn pressed(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_pressed(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::readOnly() const```</span>
  ///
  ///
  pub fn read_only(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_readOnly(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::searchEdit() const```</span>
  ///
  ///
  pub fn search_edit(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_searchEdit(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::selectable() const```</span>
  ///
  ///
  pub fn selectable(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_selectable(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::selectableText() const```</span>
  ///
  ///
  pub fn selectable_text(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_selectableText(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::selected() const```</span>
  ///
  ///
  pub fn selected(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_selected(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::selfVoicing() const```</span>
  ///
  ///
  pub fn self_voicing(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_selfVoicing(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_active(quint64 value)```</span>
  ///
  ///
  pub fn set_active(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_active(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_animated(quint64 value)```</span>
  ///
  ///
  pub fn set_animated(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_animated(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_busy(quint64 value)```</span>
  ///
  ///
  pub fn set_busy(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_busy(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_checkStateMixed(quint64 value)```</span>
  ///
  ///
  pub fn set_check_state_mixed(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_checkStateMixed(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_checkable(quint64 value)```</span>
  ///
  ///
  pub fn set_checkable(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_checkable(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_checked(quint64 value)```</span>
  ///
  ///
  pub fn set_checked(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_checked(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_collapsed(quint64 value)```</span>
  ///
  ///
  pub fn set_collapsed(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_collapsed(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_defaultButton(quint64 value)```</span>
  ///
  ///
  pub fn set_default_button(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_defaultButton(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_disabled(quint64 value)```</span>
  ///
  ///
  pub fn set_disabled(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_disabled(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_editable(quint64 value)```</span>
  ///
  ///
  pub fn set_editable(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_editable(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_expandable(quint64 value)```</span>
  ///
  ///
  pub fn set_expandable(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_expandable(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_expanded(quint64 value)```</span>
  ///
  ///
  pub fn set_expanded(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_expanded(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_extSelectable(quint64 value)```</span>
  ///
  ///
  pub fn set_ext_selectable(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_extSelectable(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_focusable(quint64 value)```</span>
  ///
  ///
  pub fn set_focusable(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_focusable(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_focused(quint64 value)```</span>
  ///
  ///
  pub fn set_focused(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_focused(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_hasPopup(quint64 value)```</span>
  ///
  ///
  pub fn set_has_popup(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_hasPopup(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_hotTracked(quint64 value)```</span>
  ///
  ///
  pub fn set_hot_tracked(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_hotTracked(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_invalid(quint64 value)```</span>
  ///
  ///
  pub fn set_invalid(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_invalid(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_invisible(quint64 value)```</span>
  ///
  ///
  pub fn set_invisible(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_invisible(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_linked(quint64 value)```</span>
  ///
  ///
  pub fn set_linked(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_linked(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_marqueed(quint64 value)```</span>
  ///
  ///
  pub fn set_marqueed(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_marqueed(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_modal(quint64 value)```</span>
  ///
  ///
  pub fn set_modal(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_modal(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_movable(quint64 value)```</span>
  ///
  ///
  pub fn set_movable(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_movable(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_multiLine(quint64 value)```</span>
  ///
  ///
  pub fn set_multi_line(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_multiLine(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_multiSelectable(quint64 value)```</span>
  ///
  ///
  pub fn set_multi_selectable(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_multiSelectable(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_offscreen(quint64 value)```</span>
  ///
  ///
  pub fn set_offscreen(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_offscreen(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_passwordEdit(quint64 value)```</span>
  ///
  ///
  pub fn set_password_edit(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_passwordEdit(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_pressed(quint64 value)```</span>
  ///
  ///
  pub fn set_pressed(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_pressed(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_readOnly(quint64 value)```</span>
  ///
  ///
  pub fn set_read_only(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_readOnly(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_searchEdit(quint64 value)```</span>
  ///
  ///
  pub fn set_search_edit(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_searchEdit(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_selectable(quint64 value)```</span>
  ///
  ///
  pub fn set_selectable(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_selectable(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_selectableText(quint64 value)```</span>
  ///
  ///
  pub fn set_selectable_text(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_selectableText(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_selected(quint64 value)```</span>
  ///
  ///
  pub fn set_selected(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_selected(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_selfVoicing(quint64 value)```</span>
  ///
  ///
  pub fn set_self_voicing(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_selfVoicing(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_sizeable(quint64 value)```</span>
  ///
  ///
  pub fn set_sizeable(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_sizeable(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_supportsAutoCompletion(quint64 value)```</span>
  ///
  ///
  pub fn set_supports_auto_completion(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_supportsAutoCompletion(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```void QAccessible::State::set_traversed(quint64 value)```</span>
  ///
  ///
  pub fn set_traversed(&mut self, value: u64) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_set_traversed(self as *mut ::accessible::State, value) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::sizeable() const```</span>
  ///
  ///
  pub fn sizeable(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_sizeable(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::supportsAutoCompletion() const```</span>
  ///
  ///
  pub fn supports_auto_completion(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_supportsAutoCompletion(self as *const ::accessible::State) }
  }

  /// C++ method: <span style='color: green;'>```quint64 QAccessible::State::traversed() const```</span>
  ///
  ///
  pub fn traversed(&self) -> u64 {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_traversed(self as *const ::accessible::State) }
  }
}

impl Drop for ::accessible::State {
  /// C++ method: <span style='color: green;'>```[destructor] void QAccessible::State::~QAccessible::State()```</span>
  ///
  ///
  fn drop(&mut self) {
    unsafe { ::ffi::qt_gui_c_QAccessible_State_destructor(self as *mut ::accessible::State) }
  }
}

/// C++ type: <span style='color: green;'>```QAccessible::Text```</span>
///
/// <a href="http://doc.qt.io/qt-5/qaccessible.html#Text-enum">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This enum specifies string information that an accessible object returns.</p></div>
#[derive(Debug, PartialEq, Eq, Clone)]
#[repr(C)]
pub enum Text {
  /// The name of the object. This can be used both as an identifier or a short description by accessible clients. (C++ enum variant: <span style='color: green;'>```Name = 0```</span>)
  Name = 0,
  /// A short text describing the object. (C++ enum variant: <span style='color: green;'>```Description = 1```</span>)
  Description = 1,
  /// The value of the object. (C++ enum variant: <span style='color: green;'>```Value = 2```</span>)
  Value = 2,
  /// A longer text giving information about how to use the object. (C++ enum variant: <span style='color: green;'>```Help = 3```</span>)
  Help = 3,
  /// The keyboard shortcut that executes the object's default action. (C++ enum variant: <span style='color: green;'>```Accelerator = 4```</span>)
  Accelerator = 4,
  /// C++ enum variant: <span style='color: green;'>```DebugDescription = 5```</span>
  DebugDescription = 5,
  /// The first value to be used for user defined text. (C++ enum variant: <span style='color: green;'>```UserText = 65535```</span>)
  UserText = 65535,
}

/// C++ type: <span style='color: green;'>```QAccessible::TextBoundaryType```</span>
///
/// <a href="http://doc.qt.io/qt-5/qaccessible.html#TextBoundaryType-enum">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This enum describes different types of text boundaries. It follows the <a href="http://doc.qt.io/qt-5/qtgui-attribution-iaccessible2.html#iaccessible2">IAccessible2</a> API and is used in the <a href="http://doc.qt.io/qt-5/qaccessibletextinterface.html">QAccessibleTextInterface</a>.</p>
///
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qaccessibletextinterface.html">QAccessibleTextInterface</a>.</p></div>
#[derive(Debug, PartialEq, Eq, Clone)]
#[repr(C)]
pub enum TextBoundaryType {
  /// Use individual characters as boundary. (C++ enum variant: <span style='color: green;'>```CharBoundary = 0```</span>)
  Char = 0,
  /// Use words as boundaries. (C++ enum variant: <span style='color: green;'>```WordBoundary = 1```</span>)
  Word = 1,
  /// Use sentences as boundary. (C++ enum variant: <span style='color: green;'>```SentenceBoundary = 2```</span>)
  Sentence = 2,
  /// Use paragraphs as boundary. (C++ enum variant: <span style='color: green;'>```ParagraphBoundary = 3```</span>)
  Paragraph = 3,
  /// Use newlines as boundary. (C++ enum variant: <span style='color: green;'>```LineBoundary = 4```</span>)
  Line = 4,
  /// No boundary (use the whole text). (C++ enum variant: <span style='color: green;'>```NoBoundary = 5```</span>)
  No = 5,
}

/// C++ method: <span style='color: green;'>```const char* qAccessibleEventString(QAccessible::Event event)```</span>
///
///
pub fn accessible_event_string(event: ::accessible::Event) -> *const ::libc::c_char {
  unsafe { ::ffi::qt_gui_c_QAccessible_G_qAccessibleEventString(event) }
}

/// C++ method: <span style='color: green;'>```QString qAccessibleLocalizedActionDescription(const QString& actionName)```</span>
///
///
pub fn accessible_localized_action_description(action_name: &::qt_core::string::String) -> ::qt_core::string::String {
  {
    let mut object: ::qt_core::string::String =
      unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
    unsafe {
      ::ffi::qt_gui_c_QAccessible_G_qAccessibleLocalizedActionDescription_to_output(action_name as *const ::qt_core::string::String, &mut object);
    }
    object
  }
}

/// C++ method: <span style='color: green;'>```const char* qAccessibleRoleString(QAccessible::Role role)```</span>
///
///
pub fn accessible_role_string(role: ::accessible::Role) -> *const ::libc::c_char {
  unsafe { ::ffi::qt_gui_c_QAccessible_G_qAccessibleRoleString(role) }
}

/// C++ method: <span style='color: green;'>```operator|```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn op_bit_or((::accessible::RelationFlag, ::accessible::RelationFlag)) -> ::qt_core::flags::Flags<::accessible::RelationFlag>```<br>
/// C++ method: <span style='color: green;'>```QFlags<QAccessible::RelationFlag> operator|(QAccessible::RelationFlag f1, QAccessible::RelationFlag f2)```</span>
///
///
///
/// ## Variant 2
///
/// Rust arguments: ```fn op_bit_or((::accessible::RelationFlag, ::qt_core::flags::Flags<::accessible::RelationFlag>)) -> ::qt_core::flags::Flags<::accessible::RelationFlag>```<br>
/// C++ method: <span style='color: green;'>```QFlags<QAccessible::RelationFlag> operator|(QAccessible::RelationFlag f1, QFlags<QAccessible::RelationFlag> f2)```</span>
///
///
pub fn op_bit_or<Args>(args: Args) -> ::qt_core::flags::Flags<::accessible::RelationFlag>
  where Args: overloading::OpBitOrArgs
{
  args.exec()
}
/// C++ method: <span style='color: green;'>```bool operator==(const QAccessible::State& first, const QAccessible::State& second)```</span>
///
/// Warning: no exact match found in C++ documentation.Below is the <a href="http://doc.qt.io/qt-5/qpagelayout.html#operator-eq-eq">C++ documentation</a> for <code>bool operator==(const QPageLayout &lhs, const QPageLayout &rhs)</code>: <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if page layout <i>lhs</i> is equal to page layout <i>rhs</i>, i.e. if all the attributes are exactly equal.</p>
/// <p>Note that this is a strict equality, especially for page size where the <a href="http://doc.qt.io/qt-5/qpagesize.html">QPageSize</a> ID, name and size must exactly match, and the margins where the units must match.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qpagelayout.html#isEquivalentTo">QPageLayout::isEquivalentTo</a>().</p></div>
pub fn op_eq(first: &::accessible::State, second: &::accessible::State) -> bool {
  unsafe {
    ::ffi::qt_gui_c_QAccessible_G_operator_eq(first as *const ::accessible::State,
                                              second as *const ::accessible::State)
  }
}

/// C++ method: <span style='color: green;'>```QDebug operator<<(QDebug d, const QAccessibleEvent& ev)```</span>
///
/// Warning: no exact match found in C++ documentation.Below is the <a href="http://doc.qt.io/qt-5/qbrush.html#operator-lt-lt">C++ documentation</a> for <code>QDataStream &operator<<(QDataStream &stream, const QBrush &brush)</code>: <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Writes the given <i>brush</i> to the given <i>stream</i> and returns a reference to the <i>stream</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/datastreamformat.html">Serializing Qt Data Types</a>.</p></div>
pub fn op_shl(d: &::qt_core::debug::Debug, ev: &::accessible_event::AccessibleEvent) -> ::qt_core::debug::Debug {
  {
    let mut object: ::qt_core::debug::Debug =
      unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
    unsafe {
      ::ffi::qt_gui_c_QAccessible_G_operator_shl_to_output_d_ev(d as *const ::qt_core::debug::Debug,
                                                                ev as *const ::accessible_event::AccessibleEvent,
                                                                &mut object);
    }
    object
  }
}

/// C++ method: <span style='color: green;'>```QDebug operator<<(QDebug d, const QAccessibleInterface* iface)```</span>
///
/// Warning: no exact match found in C++ documentation.Below is the <a href="http://doc.qt.io/qt-5/qbrush.html#operator-lt-lt">C++ documentation</a> for <code>QDataStream &operator<<(QDataStream &stream, const QBrush &brush)</code>: <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Writes the given <i>brush</i> to the given <i>stream</i> and returns a reference to the <i>stream</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/datastreamformat.html">Serializing Qt Data Types</a>.</p></div>
pub unsafe fn op_shl_unsafe(d: &::qt_core::debug::Debug,
                            iface: *const ::accessible_interface::AccessibleInterface)
                            -> ::qt_core::debug::Debug {
  {
    let mut object: ::qt_core::debug::Debug = ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
    ::ffi::qt_gui_c_QAccessible_G_operator_shl_to_output_d_iface(d as *const ::qt_core::debug::Debug,
                                                                 iface,
                                                                 &mut object);
    object
  }
}

/// Types for emulating overloading for overloaded functions in this module
pub mod overloading {
  /// This trait represents a set of arguments accepted by [op_bit_or](../fn.op_bit_or.html) method.
  pub trait OpBitOrArgs {
    fn exec(self) -> ::qt_core::flags::Flags<::accessible::RelationFlag>;
  }
  impl OpBitOrArgs for (::accessible::RelationFlag, ::accessible::RelationFlag) {
    fn exec(self) -> ::qt_core::flags::Flags<::accessible::RelationFlag> {
      let f1 = self.0;
      let f2 = self.1;
      let ffi_result =
        unsafe {
          ::ffi::qt_gui_c_QAccessible_G_operator_bit_or_QAccessible_RelationFlag_QAccessible_RelationFlag(f1, f2)
        };
      ::qt_core::flags::Flags::from_int(ffi_result as i32)
    }
  }
  impl OpBitOrArgs for (::accessible::RelationFlag, ::qt_core::flags::Flags<::accessible::RelationFlag>) {
    fn exec(self) -> ::qt_core::flags::Flags<::accessible::RelationFlag> {
      let f1 = self.0;
      let f2 = self.1;
      let ffi_result = unsafe { ::ffi::qt_gui_c_QAccessible_G_operator_bit_or_QAccessible_RelationFlag_QFlags_QAccessible_RelationFlag(f1, f2.to_int() as ::libc::c_uint) };
      ::qt_core::flags::Flags::from_int(ffi_result as i32)
    }
  }
}