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 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827
// // DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAccessibleRole.idl // /// `interface nsIAccessibleRole : nsISupports` /// /// ```text /// /** /// * Defines cross platform (Gecko) roles. /// */ /// ``` /// // The actual type definition for the interface. This struct has methods // declared on it which will call through its vtable. You never want to pass // this type around by value, always pass it behind a reference. #[repr(C)] pub struct nsIAccessibleRole { vtable: *const nsIAccessibleRoleVTable, /// This field is a phantomdata to ensure that the VTable type and any /// struct containing it is not safe to send across threads, as XPCOM is /// generally not threadsafe. /// /// XPCOM interfaces in general are not safe to send across threads. __nosync: ::std::marker::PhantomData<::std::rc::Rc<u8>>, } // Implementing XpCom for an interface exposes its IID, which allows for easy // use of the `.query_interface<T>` helper method. This also defines that // method for nsIAccessibleRole. unsafe impl XpCom for nsIAccessibleRole { const IID: nsIID = nsID(0x05a9f33f, 0xdcfd, 0x4e7b, [0xb8, 0x25, 0x13, 0x8b, 0xa7, 0x84, 0xc1, 0xf5]); } // We need to implement the RefCounted trait so we can be used with `RefPtr`. // This trait teaches `RefPtr` how to manage our memory. unsafe impl RefCounted for nsIAccessibleRole { #[inline] unsafe fn addref(&self) { self.AddRef(); } #[inline] unsafe fn release(&self) { self.Release(); } } // This trait is implemented on all types which can be coerced to from nsIAccessibleRole. // It is used in the implementation of `fn coerce<T>`. We hide it from the // documentation, because it clutters it up a lot. #[doc(hidden)] pub trait nsIAccessibleRoleCoerce { /// Cheaply cast a value of this type from a `nsIAccessibleRole`. fn coerce_from(v: &nsIAccessibleRole) -> &Self; } // The trivial implementation: We can obviously coerce ourselves to ourselves. impl nsIAccessibleRoleCoerce for nsIAccessibleRole { #[inline] fn coerce_from(v: &nsIAccessibleRole) -> &Self { v } } impl nsIAccessibleRole { /// Cast this `nsIAccessibleRole` to one of its base interfaces. #[inline] pub fn coerce<T: nsIAccessibleRoleCoerce>(&self) -> &T { T::coerce_from(self) } } // Every interface struct type implements `Deref` to its base interface. This // causes methods on the base interfaces to be directly avaliable on the // object. For example, you can call `.AddRef` or `.QueryInterface` directly // on any interface which inherits from `nsISupports`. impl ::std::ops::Deref for nsIAccessibleRole { type Target = nsISupports; #[inline] fn deref(&self) -> &nsISupports { unsafe { ::std::mem::transmute(self) } } } // Ensure we can use .coerce() to cast to our base types as well. Any type which // our base interface can coerce from should be coercable from us as well. impl<T: nsISupportsCoerce> nsIAccessibleRoleCoerce for T { #[inline] fn coerce_from(v: &nsIAccessibleRole) -> &Self { T::coerce_from(v) } } // This struct represents the interface's VTable. A pointer to a statically // allocated version of this struct is at the beginning of every nsIAccessibleRole // object. It contains one pointer field for each method in the interface. In // the case where we can't generate a binding for a method, we include a void // pointer. #[doc(hidden)] #[repr(C)] pub struct nsIAccessibleRoleVTable { /// We need to include the members from the base interface's vtable at the start /// of the VTable definition. pub __base: nsISupportsVTable, } // The implementations of the function wrappers which are exposed to rust code. // Call these methods rather than manually calling through the VTable struct. impl nsIAccessibleRole { /// ```text /// /** /// * Used when accessible hans't strong defined role. /// */ /// ``` /// pub const ROLE_NOTHING: i64 = 0; /// ```text /// /** /// * Represents a title or caption bar for a window. It is used by MSAA only, /// * supported automatically by MS Windows. /// */ /// ``` /// pub const ROLE_TITLEBAR: i64 = 1; /// ```text /// /** /// * Represents the menu bar (positioned beneath the title bar of a window) /// * from which menus are selected by the user. The role is used by /// * xul:menubar or role="menubar". /// */ /// ``` /// pub const ROLE_MENUBAR: i64 = 2; /// ```text /// /** /// * Represents a vertical or horizontal scroll bar, which is part of the client /// * area or used in a control. /// */ /// ``` /// pub const ROLE_SCROLLBAR: i64 = 3; /// ```text /// /** /// * Represents a special mouse pointer, which allows a user to manipulate user /// * interface elements such as windows. For example, a user clicks and drags /// * a sizing grip in the lower-right corner of a window to resize it. /// */ /// ``` /// pub const ROLE_GRIP: i64 = 4; /// ```text /// /** /// * Represents a system sound, which is associated with various system events. /// */ /// ``` /// pub const ROLE_SOUND: i64 = 5; /// ```text /// /** /// * Represents the system mouse pointer. /// */ /// ``` /// pub const ROLE_CURSOR: i64 = 6; /// ```text /// /** /// * Represents the system caret. The role is supported for caret. /// */ /// ``` /// pub const ROLE_CARET: i64 = 7; /// ```text /// /** /// * Represents an alert or a condition that a user should be notified about. /// * Assistive Technologies typically respond to the role by reading the entire /// * onscreen contents of containers advertising this role. Should be used for /// * warning dialogs, etc. The role is used by xul:browsermessage, /// * role="alert". /// */ /// ``` /// pub const ROLE_ALERT: i64 = 8; /// ```text /// /** /// * Represents the window frame, which contains child objects such as /// * a title bar, client, and other objects contained in a window. The role /// * is supported automatically by MS Windows. /// */ /// ``` /// pub const ROLE_WINDOW: i64 = 9; /// ```text /// /** /// * A sub-document (<frame> or <iframe>) /// */ /// ``` /// pub const ROLE_INTERNAL_FRAME: i64 = 10; /// ```text /// /** /// * Represents a menu, which presents a list of options from which the user can /// * make a selection to perform an action. It is used for role="menu". /// */ /// ``` /// pub const ROLE_MENUPOPUP: i64 = 11; /// ```text /// /** /// * Represents a menu item, which is an entry in a menu that a user can choose /// * to carry out a command, select an option. It is used for xul:menuitem, /// * role="menuitem". /// */ /// ``` /// pub const ROLE_MENUITEM: i64 = 12; /// ```text /// /** /// * Represents a ToolTip that provides helpful hints. /// */ /// ``` /// pub const ROLE_TOOLTIP: i64 = 13; /// ```text /// /** /// * Represents a main window for an application. It is used for /// * role="application". Also refer to ROLE_APP_ROOT /// */ /// ``` /// pub const ROLE_APPLICATION: i64 = 14; /// ```text /// /** /// * Represents a document window. A document window is always contained within /// * an application window. It is used for role="document". /// */ /// ``` /// pub const ROLE_DOCUMENT: i64 = 15; /// ```text /// /** /// * Represents a pane within a frame or document window. Users can navigate /// * between panes and within the contents of the current pane, but cannot /// * navigate between items in different panes. Thus, panes represent a level /// * of grouping lower than frame windows or documents, but above individual /// * controls. It is used for the first child of a <frame> or <iframe>. /// */ /// ``` /// pub const ROLE_PANE: i64 = 16; /// ```text /// /** /// * Represents a graphical image used to represent data. /// */ /// ``` /// pub const ROLE_CHART: i64 = 17; /// ```text /// /** /// * Represents a dialog box or message box. It is used for xul:dialog, /// * role="dialog". /// */ /// ``` /// pub const ROLE_DIALOG: i64 = 18; /// ```text /// /** /// * Represents a window border. /// */ /// ``` /// pub const ROLE_BORDER: i64 = 19; /// ```text /// /** /// * Logically groups other objects. There is not always a parent-child /// * relationship between the grouping object and the objects it contains. It /// * is used for html:textfield, xul:groupbox, role="group". /// */ /// ``` /// pub const ROLE_GROUPING: i64 = 20; /// ```text /// /** /// * Used to visually divide a space into two regions, such as a separator menu /// * item or a bar that divides split panes within a window. It is used for /// * xul:separator, html:hr, role="separator". /// */ /// ``` /// pub const ROLE_SEPARATOR: i64 = 21; /// ```text /// /** /// * Represents a toolbar, which is a grouping of controls (push buttons or /// * toggle buttons) that provides easy access to frequently used features. It /// * is used for xul:toolbar, role="toolbar". /// */ /// ``` /// pub const ROLE_TOOLBAR: i64 = 22; /// ```text /// /** /// * Represents a status bar, which is an area at the bottom of a window that /// * displays information about the current operation, state of the application, /// * or selected object. The status bar has multiple fields, which display /// * different kinds of information. It is used for xul:statusbar. /// */ /// ``` /// pub const ROLE_STATUSBAR: i64 = 23; /// ```text /// /** /// * Represents a table that contains rows and columns of cells, and optionally, /// * row headers and column headers. It is used for html:table, /// * role="grid". Also refer to the following roles: ROLE_COLUMNHEADER, /// * ROLE_ROWHEADER, ROLE_COLUMN, ROLE_ROW, ROLE_CELL. /// */ /// ``` /// pub const ROLE_TABLE: i64 = 24; /// ```text /// /** /// * Represents a column header, providing a visual label for a column in /// * a table. It is used for XUL tree column headers, html:th, /// * role="colheader". Also refer to ROLE_TABLE. /// */ /// ``` /// pub const ROLE_COLUMNHEADER: i64 = 25; /// ```text /// /** /// * Represents a row header, which provides a visual label for a table row. /// * It is used for role="rowheader". Also, see ROLE_TABLE. /// */ /// ``` /// pub const ROLE_ROWHEADER: i64 = 26; /// ```text /// /** /// * Represents a column of cells within a table. Also, see ROLE_TABLE. /// */ /// ``` /// pub const ROLE_COLUMN: i64 = 27; /// ```text /// /** /// * Represents a row of cells within a table. Also, see ROLE_TABLE. /// */ /// ``` /// pub const ROLE_ROW: i64 = 28; /// ```text /// /** /// * Represents a cell within a table. It is used for html:td, /// * xul:tree cell and xul:listcell. Also, see ROLE_TABLE. /// */ /// ``` /// pub const ROLE_CELL: i64 = 29; /// ```text /// /** /// * Represents a link to something else. This object might look like text or /// * a graphic, but it acts like a button. It is used for /// * xul:label@class="text-link", html:a, html:area. /// */ /// ``` /// pub const ROLE_LINK: i64 = 30; /// ```text /// /** /// * Displays a Help topic in the form of a ToolTip or Help balloon. /// */ /// ``` /// pub const ROLE_HELPBALLOON: i64 = 31; /// ```text /// /** /// * Represents a cartoon-like graphic object, such as Microsoft Office /// * Assistant, which is displayed to provide help to users of an application. /// */ /// ``` /// pub const ROLE_CHARACTER: i64 = 32; /// ```text /// /** /// * Represents a list box, allowing the user to select one or more items. It /// * is used for xul:listbox, html:select@size, role="list". See also /// * ROLE_LIST_ITEM. /// */ /// ``` /// pub const ROLE_LIST: i64 = 33; /// ```text /// /** /// * Represents an item in a list. See also ROLE_LIST. /// */ /// ``` /// pub const ROLE_LISTITEM: i64 = 34; /// ```text /// /** /// * Represents an outline or tree structure, such as a tree view control, /// * that displays a hierarchical list and allows the user to expand and /// * collapse branches. Is is used for role="tree". /// */ /// ``` /// pub const ROLE_OUTLINE: i64 = 35; /// ```text /// /** /// * Represents an item in an outline or tree structure. It is used for /// * role="treeitem". /// */ /// ``` /// pub const ROLE_OUTLINEITEM: i64 = 36; /// ```text /// /** /// * Represents a page tab, it is a child of a page tab list. It is used for /// * xul:tab, role="treeitem". Also refer to ROLE_PAGETABLIST. /// */ /// ``` /// pub const ROLE_PAGETAB: i64 = 37; /// ```text /// /** /// * Represents a property sheet. It is used for xul:tabpanel, /// * role="tabpanel". /// */ /// ``` /// pub const ROLE_PROPERTYPAGE: i64 = 38; /// ```text /// /** /// * Represents an indicator, such as a pointer graphic, that points to the /// * current item. /// */ /// ``` /// pub const ROLE_INDICATOR: i64 = 39; /// ```text /// /** /// * Represents a picture. Is is used for xul:image, html:img. /// */ /// ``` /// pub const ROLE_GRAPHIC: i64 = 40; /// ```text /// /** /// * Represents read-only text, such as labels for other controls or /// * instructions in a dialog box. Static text cannot be modified or selected. /// * Is is used for xul:label, xul:description, html:label, role="label". /// */ /// ``` /// pub const ROLE_STATICTEXT: i64 = 41; /// ```text /// /** /// * Represents selectable text that allows edits or is designated read-only. /// */ /// ``` /// pub const ROLE_TEXT_LEAF: i64 = 42; /// ```text /// /** /// * Represents a push button control. It is used for xul:button, html:button, /// * role="button". /// */ /// ``` /// pub const ROLE_PUSHBUTTON: i64 = 43; /// ```text /// /** /// * Represents a check box control. It is used for xul:checkbox, /// * html:input@type="checkbox", role="checkbox". /// */ /// ``` /// pub const ROLE_CHECKBUTTON: i64 = 44; /// ```text /// /** /// * Represents an option button, also called a radio button. It is one of a /// * group of mutually exclusive options. All objects sharing a single parent /// * that have this attribute are assumed to be part of single mutually /// * exclusive group. It is used for xul:radio, html:input@type="radio", /// * role="radio". /// */ /// ``` /// pub const ROLE_RADIOBUTTON: i64 = 45; /// ```text /// /** /// * Represents a combo box; a popup button with an associated list box that /// * provides a set of predefined choices. It is used for html:select with a /// * size of 1 and xul:menulist. See also ROLE_EDITCOMBOBOX. /// */ /// ``` /// pub const ROLE_COMBOBOX: i64 = 46; /// ```text /// /** /// * Represents the calendar control. /// */ /// ``` /// pub const ROLE_DROPLIST: i64 = 47; /// ```text /// /** /// * Represents a progress bar, dynamically showing the user the percent /// * complete of an operation in progress. It is used for xul:progressmeter, /// * role="progressbar". /// */ /// ``` /// pub const ROLE_PROGRESSBAR: i64 = 48; /// ```text /// /** /// * Represents a dial or knob whose purpose is to allow a user to set a value. /// */ /// ``` /// pub const ROLE_DIAL: i64 = 49; /// ```text /// /** /// * Represents a hot-key field that allows the user to enter a combination or /// * sequence of keystrokes. /// */ /// ``` /// pub const ROLE_HOTKEYFIELD: i64 = 50; /// ```text /// /** /// * Represents a slider, which allows the user to adjust a setting in given /// * increments between minimum and maximum values. It is used by xul:scale, /// * role="slider". /// */ /// ``` /// pub const ROLE_SLIDER: i64 = 51; /// ```text /// /** /// * Represents a spin box, which is a control that allows the user to increment /// * or decrement the value displayed in a separate "buddy" control associated /// * with the spin box. It is used for xul:spinbuttons. /// */ /// ``` /// pub const ROLE_SPINBUTTON: i64 = 52; /// ```text /// /** /// * Represents a graphical image used to diagram data. It is used for svg:svg. /// */ /// ``` /// pub const ROLE_DIAGRAM: i64 = 53; /// ```text /// /** /// * Represents an animation control, which contains content that changes over /// * time, such as a control that displays a series of bitmap frames. /// */ /// ``` /// pub const ROLE_ANIMATION: i64 = 54; /// ```text /// /** /// * Represents a mathematical equation. It is used by MATHML, where there is a /// * rich DOM subtree for an equation. Use ROLE_FLAT_EQUATION for <img role="math" alt="[TeX]"/> /// */ /// ``` /// pub const ROLE_EQUATION: i64 = 55; /// ```text /// /** /// * Represents a button that drops down a list of items. /// */ /// ``` /// pub const ROLE_BUTTONDROPDOWN: i64 = 56; /// ```text /// /** /// * Represents a button that drops down a menu. /// */ /// ``` /// pub const ROLE_BUTTONMENU: i64 = 57; /// ```text /// /** /// * Represents a button that drops down a grid. It is used for xul:colorpicker. /// */ /// ``` /// pub const ROLE_BUTTONDROPDOWNGRID: i64 = 58; /// ```text /// /** /// * Represents blank space between other objects. /// */ /// ``` /// pub const ROLE_WHITESPACE: i64 = 59; /// ```text /// /** /// * Represents a container of page tab controls. Is it used for xul:tabs, /// * DHTML: role="tabs". Also refer to ROLE_PAGETAB. /// */ /// ``` /// pub const ROLE_PAGETABLIST: i64 = 60; /// ```text /// /** /// * Represents a control that displays time. /// */ /// ``` /// pub const ROLE_CLOCK: i64 = 61; /// ```text /// /** /// * Represents a button on a toolbar that has a drop-down list icon directly /// * adjacent to the button. /// */ /// ``` /// pub const ROLE_SPLITBUTTON: i64 = 62; /// ```text /// /** /// * Represents an edit control designed for an Internet Protocol (IP) address. /// * The edit control is divided into sections for the different parts of the /// * IP address. /// */ /// ``` /// pub const ROLE_IPADDRESS: i64 = 63; /// ```text /// /** /// * Represents a label control that has an accelerator. /// */ /// ``` /// pub const ROLE_ACCEL_LABEL: i64 = 64; /// ```text /// /** /// * Represents an arrow in one of the four cardinal directions. /// */ /// ``` /// pub const ROLE_ARROW: i64 = 65; /// ```text /// /** /// * Represents a control that can be drawn into and is used to trap events. /// * It is used for html:canvas. /// */ /// ``` /// pub const ROLE_CANVAS: i64 = 66; /// ```text /// /** /// * Represents a menu item with a check box. /// */ /// ``` /// pub const ROLE_CHECK_MENU_ITEM: i64 = 67; /// ```text /// /** /// * Represents a specialized dialog that lets the user choose a color. /// */ /// ``` /// pub const ROLE_COLOR_CHOOSER: i64 = 68; /// ```text /// /** /// * Represents control whose purpose is to allow a user to edit a date. /// */ /// ``` /// pub const ROLE_DATE_EDITOR: i64 = 69; /// ```text /// /** /// * An iconified internal frame in an ROLE_DESKTOP_PANE. Also refer to /// * ROLE_INTERNAL_FRAME. /// */ /// ``` /// pub const ROLE_DESKTOP_ICON: i64 = 70; /// ```text /// /** /// * A desktop pane. A pane that supports internal frames and iconified /// * versions of those internal frames. /// */ /// ``` /// pub const ROLE_DESKTOP_FRAME: i64 = 71; /// ```text /// /** /// * A directory pane. A pane that allows the user to navigate through /// * and select the contents of a directory. May be used by a file chooser. /// * Also refer to ROLE_FILE_CHOOSER. /// */ /// ``` /// pub const ROLE_DIRECTORY_PANE: i64 = 72; /// ```text /// /** /// * A file chooser. A specialized dialog that displays the files in the /// * directory and lets the user select a file, browse a different directory, /// * or specify a filename. May use the directory pane to show the contents of /// * a directory. Also refer to ROLE_DIRECTORY_PANE. /// */ /// ``` /// pub const ROLE_FILE_CHOOSER: i64 = 73; /// ```text /// /** /// * A font chooser. A font chooser is a component that lets the user pick /// * various attributes for fonts. /// */ /// ``` /// pub const ROLE_FONT_CHOOSER: i64 = 74; /// ```text /// /** /// * Frame role. A top level window with a title bar, border, menu bar, etc. /// * It is often used as the primary window for an application. /// */ /// ``` /// pub const ROLE_CHROME_WINDOW: i64 = 75; /// ```text /// /** /// * A glass pane. A pane that is guaranteed to be painted on top of all /// * panes beneath it. Also refer to ROLE_ROOT_PANE. /// */ /// ``` /// pub const ROLE_GLASS_PANE: i64 = 76; /// ```text /// /** /// * A document container for HTML, whose children represent the document /// * content. /// */ /// ``` /// pub const ROLE_HTML_CONTAINER: i64 = 77; /// ```text /// /** /// * A small fixed size picture, typically used to decorate components. /// */ /// ``` /// pub const ROLE_ICON: i64 = 78; /// ```text /// /** /// * Presents an icon or short string in an interface. /// */ /// ``` /// pub const ROLE_LABEL: i64 = 79; /// ```text /// /** /// * A layered pane. A specialized pane that allows its children to be drawn /// * in layers, providing a form of stacking order. This is usually the pane /// * that holds the menu bar as well as the pane that contains most of the /// * visual components in a window. Also refer to ROLE_GLASS_PANE and /// * ROLE_ROOT_PANE. /// */ /// ``` /// pub const ROLE_LAYERED_PANE: i64 = 80; /// ```text /// /** /// * A specialized pane whose primary use is inside a dialog. /// */ /// ``` /// pub const ROLE_OPTION_PANE: i64 = 81; /// ```text /// /** /// * A text object uses for passwords, or other places where the text content /// * is not shown visibly to the user. /// */ /// ``` /// pub const ROLE_PASSWORD_TEXT: i64 = 82; /// ```text /// /** /// * A temporary window that is usually used to offer the user a list of /// * choices, and then hides when the user selects one of those choices. /// */ /// ``` /// pub const ROLE_POPUP_MENU: i64 = 83; /// ```text /// /** /// * A radio button that is a menu item. /// */ /// ``` /// pub const ROLE_RADIO_MENU_ITEM: i64 = 84; /// ```text /// /** /// * A root pane. A specialized pane that has a glass pane and a layered pane /// * as its children. Also refer to ROLE_GLASS_PANE and ROLE_LAYERED_PANE. /// */ /// ``` /// pub const ROLE_ROOT_PANE: i64 = 85; /// ```text /// /** /// * A scroll pane. An object that allows a user to incrementally view a large /// * amount of information. Its children can include scroll bars and a /// * viewport. Also refer to ROLE_VIEW_PORT. /// */ /// ``` /// pub const ROLE_SCROLL_PANE: i64 = 86; /// ```text /// /** /// * A split pane. A specialized panel that presents two other panels at the /// * same time. Between the two panels is a divider the user can manipulate to /// * make one panel larger and the other panel smaller. /// */ /// ``` /// pub const ROLE_SPLIT_PANE: i64 = 87; /// ```text /// /** /// * The header for a column of a table. /// * XXX: it looks this role is dupe of ROLE_COLUMNHEADER. /// */ /// ``` /// pub const ROLE_TABLE_COLUMN_HEADER: i64 = 88; /// ```text /// /** /// * The header for a row of a table. /// * XXX: it looks this role is dupe of ROLE_ROWHEADER /// */ /// ``` /// pub const ROLE_TABLE_ROW_HEADER: i64 = 89; /// ```text /// /** /// * A menu item used to tear off and reattach its menu. /// */ /// ``` /// pub const ROLE_TEAR_OFF_MENU_ITEM: i64 = 90; /// ```text /// /** /// * Represents an accessible terminal. /// */ /// ``` /// pub const ROLE_TERMINAL: i64 = 91; /// ```text /// /** /// * Collection of objects that constitute a logical text entity. /// */ /// ``` /// pub const ROLE_TEXT_CONTAINER: i64 = 92; /// ```text /// /** /// * A toggle button. A specialized push button that can be checked or /// * unchecked, but does not provide a separate indicator for the current state. /// */ /// ``` /// pub const ROLE_TOGGLE_BUTTON: i64 = 93; /// ```text /// /** /// * Representas a control that is capable of expanding and collapsing rows as /// * well as showing multiple columns of data. /// * XXX: it looks like this role is dupe of ROLE_OUTLINE. /// */ /// ``` /// pub const ROLE_TREE_TABLE: i64 = 94; /// ```text /// /** /// * A viewport. An object usually used in a scroll pane. It represents the /// * portion of the entire data that the user can see. As the user manipulates /// * the scroll bars, the contents of the viewport can change. Also refer to /// * ROLE_SCROLL_PANE. /// */ /// ``` /// pub const ROLE_VIEWPORT: i64 = 95; /// ```text /// /** /// * Header of a document page. Also refer to ROLE_FOOTER. /// */ /// ``` /// pub const ROLE_HEADER: i64 = 96; /// ```text /// /** /// * Footer of a document page. Also refer to ROLE_HEADER. /// */ /// ``` /// pub const ROLE_FOOTER: i64 = 97; /// ```text /// /** /// * A paragraph of text. /// */ /// ``` /// pub const ROLE_PARAGRAPH: i64 = 98; /// ```text /// /** /// * A ruler such as those used in word processors. /// */ /// ``` /// pub const ROLE_RULER: i64 = 99; /// ```text /// /** /// * A text entry having dialog or list containing items for insertion into /// * an entry widget, for instance a list of words for completion of a /// * text entry. It is used for xul:textbox@autocomplete /// */ /// ``` /// pub const ROLE_AUTOCOMPLETE: i64 = 100; /// ```text /// /** /// * An editable text object in a toolbar. /// */ /// ``` /// pub const ROLE_EDITBAR: i64 = 101; /// ```text /// /** /// * An control whose textual content may be entered or modified by the user. /// */ /// ``` /// pub const ROLE_ENTRY: i64 = 102; /// ```text /// /** /// * A caption describing another object. /// */ /// ``` /// pub const ROLE_CAPTION: i64 = 103; /// ```text /// /** /// * A visual frame or container which contains a view of document content. /// * Document frames may occur within another Document instance, in which case /// * the second document may be said to be embedded in the containing instance. /// * HTML frames are often ROLE_DOCUMENT_FRAME. Either this object, or a /// * singleton descendant, should implement the Document interface. /// */ /// ``` /// pub const ROLE_DOCUMENT_FRAME: i64 = 104; /// ```text /// /** /// * Heading. /// */ /// ``` /// pub const ROLE_HEADING: i64 = 105; /// ```text /// /** /// * An object representing a page of document content. It is used in documents /// * which are accessed by the user on a page by page basis. /// */ /// ``` /// pub const ROLE_PAGE: i64 = 106; /// ```text /// /** /// * A container of document content. An example of the use of this role is to /// * represent an html:div. /// */ /// ``` /// pub const ROLE_SECTION: i64 = 107; /// ```text /// /** /// * An object which is redundant with another object in the accessible /// * hierarchy. ATs typically ignore objects with this role. /// */ /// ``` /// pub const ROLE_REDUNDANT_OBJECT: i64 = 108; /// ```text /// /** /// * A container of form controls. An example of the use of this role is to /// * represent an html:form. /// */ /// ``` /// pub const ROLE_FORM: i64 = 109; /// ```text /// /** /// * An object which is used to allow input of characters not found on a /// * keyboard, such as the input of Chinese characters on a Western keyboard. /// */ /// ``` /// pub const ROLE_IME: i64 = 110; /// ```text /// /** /// * XXX: document this. /// */ /// ``` /// pub const ROLE_APP_ROOT: i64 = 111; /// ```text /// /** /// * Represents a menu item, which is an entry in a menu that a user can choose /// * to display another menu. /// */ /// ``` /// pub const ROLE_PARENT_MENUITEM: i64 = 112; /// ```text /// /** /// * A calendar that allows the user to select a date. /// */ /// ``` /// pub const ROLE_CALENDAR: i64 = 113; /// ```text /// /** /// * A list of items that is shown by combobox. /// */ /// ``` /// pub const ROLE_COMBOBOX_LIST: i64 = 114; /// ```text /// /** /// * A item of list that is shown by combobox; /// */ /// ``` /// pub const ROLE_COMBOBOX_OPTION: i64 = 115; /// ```text /// /** /// * An image map -- has child links representing the areas /// */ /// ``` /// pub const ROLE_IMAGE_MAP: i64 = 116; /// ```text /// /** /// * An option in a listbox /// */ /// ``` /// pub const ROLE_OPTION: i64 = 117; /// ```text /// /** /// * A rich option in a listbox, it can have other widgets as children /// */ /// ``` /// pub const ROLE_RICH_OPTION: i64 = 118; /// ```text /// /** /// * A list of options /// */ /// ``` /// pub const ROLE_LISTBOX: i64 = 119; /// ```text /// /** /// * Represents a mathematical equation in the accessible name /// */ /// ``` /// pub const ROLE_FLAT_EQUATION: i64 = 120; /// ```text /// /** /// * Represents a cell within a grid. It is used for role="gridcell". Unlike /// * ROLE_CELL, it allows the calculation of the accessible name from subtree. /// * Also, see ROLE_TABLE. /// */ /// ``` /// pub const ROLE_GRID_CELL: i64 = 121; /// ```text /// /** /// * Represents an embedded object. It is used for html:object or html:embed. /// */ /// ``` /// pub const ROLE_EMBEDDED_OBJECT: i64 = 122; /// ```text /// /** /// * A note. Originally intended to be hidden until activated, but now also used /// * for things like html 'aside'. /// */ /// ``` /// pub const ROLE_NOTE: i64 = 123; /// ```text /// /** /// * A figure. Used for things like HTML5 figure element. /// */ /// ``` /// pub const ROLE_FIGURE: i64 = 124; /// ```text /// /** /// * Represents a rich item with a check box. /// */ /// ``` /// pub const ROLE_CHECK_RICH_OPTION: i64 = 125; /// ```text /// /** /// * An HTML definition list <dl> /// */ /// ``` /// pub const ROLE_DEFINITION_LIST: i64 = 126; /// ```text /// /** /// * An HTML definition term <dt> /// */ /// ``` /// pub const ROLE_TERM: i64 = 127; /// ```text /// /** /// * An HTML definition <dd> /// */ /// ``` /// pub const ROLE_DEFINITION: i64 = 128; /// ```text /// /** /// * A keyboard or keypad key. /// */ /// ``` /// pub const ROLE_KEY: i64 = 129; /// ```text /// /** /// * A switch control widget. /// */ /// ``` /// pub const ROLE_SWITCH: i64 = 130; /// ```text /// /** /// * A block of MathML code (math). /// */ /// ``` /// pub const ROLE_MATHML_MATH: i64 = 131; /// ```text /// /** /// * A MathML identifier (mi in MathML). /// */ /// ``` /// pub const ROLE_MATHML_IDENTIFIER: i64 = 132; /// ```text /// /** /// * A MathML number (mn in MathML). /// */ /// ``` /// pub const ROLE_MATHML_NUMBER: i64 = 133; /// ```text /// /** /// * A MathML operator (mo in MathML). /// */ /// ``` /// pub const ROLE_MATHML_OPERATOR: i64 = 134; /// ```text /// /** /// * A MathML text (mtext in MathML). /// */ /// ``` /// pub const ROLE_MATHML_TEXT: i64 = 135; /// ```text /// /** /// * A MathML string literal (ms in MathML). /// */ /// ``` /// pub const ROLE_MATHML_STRING_LITERAL: i64 = 136; /// ```text /// /** /// * A MathML glyph (mglyph in MathML). /// */ /// ``` /// pub const ROLE_MATHML_GLYPH: i64 = 137; /// ```text /// /** /// * A MathML row (mrow in MathML). /// */ /// ``` /// pub const ROLE_MATHML_ROW: i64 = 138; /// ```text /// /** /// * A MathML fraction (mfrac in MathML). /// */ /// ``` /// pub const ROLE_MATHML_FRACTION: i64 = 139; /// ```text /// /** /// * A MathML square root (msqrt in MathML). /// */ /// ``` /// pub const ROLE_MATHML_SQUARE_ROOT: i64 = 140; /// ```text /// /** /// * A MathML root (mroot in MathML). /// */ /// ``` /// pub const ROLE_MATHML_ROOT: i64 = 141; /// ```text /// /** /// * A MathML fenced element (mfenced in MathML). /// */ /// ``` /// pub const ROLE_MATHML_FENCED: i64 = 142; /// ```text /// /** /// * A MathML enclosed element (menclose in MathML). /// */ /// ``` /// pub const ROLE_MATHML_ENCLOSED: i64 = 143; /// ```text /// /** /// * A MathML styling element (mstyle in MathML). /// */ /// ``` /// pub const ROLE_MATHML_STYLE: i64 = 144; /// ```text /// /** /// * A MathML subscript (msub in MathML). /// */ /// ``` /// pub const ROLE_MATHML_SUB: i64 = 145; /// ```text /// /** /// * A MathML superscript (msup in MathML). /// */ /// ``` /// pub const ROLE_MATHML_SUP: i64 = 146; /// ```text /// /** /// * A MathML subscript and superscript (msubsup in MathML). /// */ /// ``` /// pub const ROLE_MATHML_SUB_SUP: i64 = 147; /// ```text /// /** /// * A MathML underscript (munder in MathML). /// */ /// ``` /// pub const ROLE_MATHML_UNDER: i64 = 148; /// ```text /// /** /// * A MathML overscript (mover in MathML). /// */ /// ``` /// pub const ROLE_MATHML_OVER: i64 = 149; /// ```text /// /** /// * A MathML underscript and overscript (munderover in MathML). /// */ /// ``` /// pub const ROLE_MATHML_UNDER_OVER: i64 = 150; /// ```text /// /** /// * A MathML multiple subscript and superscript element (mmultiscripts in /// * MathML). /// */ /// ``` /// pub const ROLE_MATHML_MULTISCRIPTS: i64 = 151; /// ```text /// /** /// * A MathML table (mtable in MathML). /// */ /// ``` /// pub const ROLE_MATHML_TABLE: i64 = 152; /// ```text /// /** /// * A MathML labelled table row (mlabeledtr in MathML). /// */ /// ``` /// pub const ROLE_MATHML_LABELED_ROW: i64 = 153; /// ```text /// /** /// * A MathML table row (mtr in MathML). /// */ /// ``` /// pub const ROLE_MATHML_TABLE_ROW: i64 = 154; /// ```text /// /** /// * A MathML table entry or cell (mtd in MathML). /// */ /// ``` /// pub const ROLE_MATHML_CELL: i64 = 155; /// ```text /// /** /// * A MathML interactive element (maction in MathML). /// */ /// ``` /// pub const ROLE_MATHML_ACTION: i64 = 156; /// ```text /// /** /// * A MathML error message (merror in MathML). /// */ /// ``` /// pub const ROLE_MATHML_ERROR: i64 = 157; /// ```text /// /** /// * A MathML stacked (rows of numbers) element (mstack in MathML). /// */ /// ``` /// pub const ROLE_MATHML_STACK: i64 = 158; /// ```text /// /** /// * A MathML long division element (mlongdiv in MathML). /// */ /// ``` /// pub const ROLE_MATHML_LONG_DIVISION: i64 = 159; /// ```text /// /** /// * A MathML stack group (msgroup in MathML). /// */ /// ``` /// pub const ROLE_MATHML_STACK_GROUP: i64 = 160; /// ```text /// /** /// * A MathML stack row (msrow in MathML). /// */ /// ``` /// pub const ROLE_MATHML_STACK_ROW: i64 = 161; /// ```text /// /** /// * MathML carries, borrows, or crossouts for a row (mscarries in MathML). /// */ /// ``` /// pub const ROLE_MATHML_STACK_CARRIES: i64 = 162; /// ```text /// /** /// * A MathML carry, borrow, or crossout for a column (mscarry in MathML). /// */ /// ``` /// pub const ROLE_MATHML_STACK_CARRY: i64 = 163; /// ```text /// /** /// * A MathML line in a stack (msline in MathML). /// */ /// ``` /// pub const ROLE_MATHML_STACK_LINE: i64 = 164; /// ```text /// /** /// * A group containing radio buttons /// */ /// ``` /// pub const ROLE_RADIO_GROUP: i64 = 165; /// ```text /// /** /// * A text container exposing brief amount of information. See related /// * TEXT_CONTAINER role. /// */ /// ``` /// pub const ROLE_TEXT: i64 = 166; /// ```text /// /** /// * A text container exposing brief amount of information. See related /// * DETAILS role. /// */ /// ``` /// pub const ROLE_DETAILS: i64 = 167; /// ```text /// /** /// * A text container exposing brief amount of information. See related /// * SUMMARY role. /// */ /// ``` /// pub const ROLE_SUMMARY: i64 = 168; /// ```text /// /** /// * An ARIA landmark. See related NAVIGATION role. /// */ /// ``` /// pub const ROLE_LANDMARK: i64 = 169; /// ```text /// /** /// * A specific type of ARIA landmark. The ability to distinguish navigation /// * landmarks from other types of landmarks is needed because macOS has a /// * specific AXSubrole and AXRoleDescription for navigation landmarks. /// */ /// ``` /// pub const ROLE_NAVIGATION: i64 = 170; /// ```text /// /** /// * An object that contains the text of a footnote. /// */ /// ``` /// pub const ROLE_FOOTNOTE: i64 = 171; /// ```text /// /** /// * A complete or self-contained composition in a document, page, application, /// * or site and that is, in principle, independently distributable or reusable, /// * e.g. in syndication. /// */ /// ``` /// pub const ROLE_ARTICLE: i64 = 172; /// ```text /// /** /// * A perceivable section containing content that is relevant to a specific, /// * author-specified purpose and sufficiently important that users will likely /// * want to be able to navigate to the section easily and to have it listed in /// * a summary of the page. /// */ /// ``` /// pub const ROLE_REGION: i64 = 173; /// ```text /// /** /// * Represents a control with a text input and a popup with a set of predefined /// * choices. It is used for ARIA's combobox role. See also ROLE_COMBOBOX. /// */ /// ``` /// pub const ROLE_EDITCOMBOBOX: i64 = 174; }