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 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338
/// C++ type: <span style='color: green;'>```QComboBox```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qcombobox.html">QComboBox</a> widget is a combined button and popup list.</p>
/// <p>A <a href="http://doc.qt.io/qt-5/qcombobox.html">QComboBox</a> provides a means of presenting a list of options to the user in a way that takes up the minimum amount of screen space.</p>
/// <p>A combobox is a selection widget that displays the current item, and can pop up a list of selectable items. A combobox may be editable, allowing the user to modify each item in the list.</p>
/// <p>Comboboxes can contain pixmaps as well as strings; the <a href="http://doc.qt.io/qt-5/qcombobox.html#insertItem">insertItem</a>() and <a href="http://doc.qt.io/qt-5/qcombobox.html#setItemText">setItemText</a>() functions are suitably overloaded. For editable comboboxes, the function <a href="http://doc.qt.io/qt-5/qcombobox.html#clearEditText">clearEditText</a>() is provided, to clear the displayed string without changing the combobox's contents.</p>
/// <p>There are two signals emitted if the current item of a combobox changes, <a href="http://doc.qt.io/qt-5/qcombobox.html#currentIndexChanged">currentIndexChanged</a>() and <a href="http://doc.qt.io/qt-5/qcombobox.html#activated">activated</a>(). <a href="http://doc.qt.io/qt-5/qcombobox.html#currentIndexChanged">currentIndexChanged</a>() is always emitted regardless if the change was done programmatically or by user interaction, while <a href="http://doc.qt.io/qt-5/qcombobox.html#activated">activated</a>() is only emitted when the change is caused by user interaction. The <a href="http://doc.qt.io/qt-5/qcombobox.html#highlighted">highlighted</a>() signal is emitted when the user highlights an item in the combobox popup list. All three signals exist in two versions, one with a <a href="http://doc.qt.io/qt-5/qstring.html">QString</a> argument and one with an <code>int</code> argument. If the user selects or highlights a pixmap, only the <code>int</code> signals are emitted. Whenever the text of an editable combobox is changed the <a href="http://doc.qt.io/qt-5/qcombobox.html#editTextChanged">editTextChanged</a>() signal is emitted.</p>
/// <p>When the user enters a new string in an editable combobox, the widget may or may not insert it, and it can insert it in several locations. The default policy is <a href="http://doc.qt.io/qt-5/qcombobox.html#InsertPolicy-enum">InsertAtBottom</a> but you can change this using <a href="http://doc.qt.io/qt-5/qcombobox.html#insertPolicy-prop">setInsertPolicy</a>().</p>
/// <p>It is possible to constrain the input to an editable combobox using <a href="http://doc.qt.io/qt-5/qvalidator.html">QValidator</a>; see <a href="http://doc.qt.io/qt-5/qcombobox.html#setValidator">setValidator</a>(). By default, any input is accepted.</p>
/// <p>A combobox can be populated using the insert functions, <a href="http://doc.qt.io/qt-5/qcombobox.html#insertItem">insertItem</a>() and <a href="http://doc.qt.io/qt-5/qcombobox.html#insertItems">insertItems</a>() for example. Items can be changed with <a href="http://doc.qt.io/qt-5/qcombobox.html#setItemText">setItemText</a>(). An item can be removed with <a href="http://doc.qt.io/qt-5/qcombobox.html#removeItem">removeItem</a>() and all items can be removed with <a href="http://doc.qt.io/qt-5/qcombobox.html#clear">clear</a>(). The text of the current item is returned by <a href="http://doc.qt.io/qt-5/qcombobox.html#currentText-prop">currentText</a>(), and the text of a numbered item is returned with text(). The current item can be set with <a href="http://doc.qt.io/qt-5/qcombobox.html#currentIndex-prop">setCurrentIndex</a>(). The number of items in the combobox is returned by <a href="http://doc.qt.io/qt-5/qcombobox.html#count-prop">count</a>(); the maximum number of items can be set with <a href="http://doc.qt.io/qt-5/qcombobox.html#maxCount-prop">setMaxCount</a>(). You can allow editing using <a href="http://doc.qt.io/qt-5/qcombobox.html#editable-prop">setEditable</a>(). For editable comboboxes you can set auto-completion using <a href="http://doc.qt.io/qt-5/qcombobox.html#setCompleter">setCompleter</a>() and whether or not the user can add duplicates is set with <a href="http://doc.qt.io/qt-5/qcombobox.html#duplicatesEnabled-prop">setDuplicatesEnabled</a>().</p>
/// <p><a href="http://doc.qt.io/qt-5/qcombobox.html">QComboBox</a> uses the <a href="http://doc.qt.io/qt-5/model-view-programming.html">model/view framework</a> for its popup list and to store its items. By default a <a href="http://doc.qt.io/qt-5/qstandarditemmodel.html">QStandardItemModel</a> stores the items and a <a href="http://doc.qt.io/qt-5/qlistview.html">QListView</a> subclass displays the popuplist. You can access the model and view directly (with <a href="http://doc.qt.io/qt-5/qcombobox.html#model">model</a>() and <a href="http://doc.qt.io/qt-5/qcombobox.html#view">view</a>()), but <a href="http://doc.qt.io/qt-5/qcombobox.html">QComboBox</a> also provides functions to set and get item data (e.g., <a href="http://doc.qt.io/qt-5/qcombobox.html#setItemData">setItemData</a>() and <a href="http://doc.qt.io/qt-5/qcombobox.html#itemText">itemText</a>()). You can also set a new model and view (with <a href="http://doc.qt.io/qt-5/qcombobox.html#setModel">setModel</a>() and <a href="http://doc.qt.io/qt-5/qcombobox.html#setView">setView</a>()). For the text and icon in the combobox label, the data in the model that has the <a href="http://doc.qt.io/qt-5/qt.html#ItemDataRole-enum">Qt::DisplayRole</a> and <a href="http://doc.qt.io/qt-5/qt.html#ItemDataRole-enum">Qt::DecorationRole</a> is used. Note that you cannot alter the <a href="http://doc.qt.io/qt-5/qabstractitemview.html#SelectionMode-enum">SelectionMode</a> of the <a href="http://doc.qt.io/qt-5/qcombobox.html#view">view</a>(), e.g., by using <a href="http://doc.qt.io/qt-5/qabstractitemview.html#selectionMode-prop">setSelectionMode()</a>.</p>
/// <p class="centerAlign"><img src="http://doc.qt.io/qt-5/images/qstyle-comboboxes.png" alt="Comboboxes in the different built-in styles."></img></p></div>
#[repr(C)]
pub struct ComboBox(u8);
impl ComboBox {
/// C++ method: <span style='color: green;'>```QComboBox::addItem```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn add_item(&mut self, (&::qt_gui::icon::Icon, &::qt_core::string::String)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QComboBox::addItem(const QIcon& icon, const QString& text)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#addItem-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Adds an item to the combobox with the given <i>icon</i> and <i>text</i>, and containing the specified <i>userData</i> (stored in the <a href="http://doc.qt.io/qt-5/qt.html#ItemDataRole-enum">Qt::UserRole</a>). The item is appended to the list of existing items.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn add_item(&mut self, (&::qt_gui::icon::Icon, &::qt_core::string::String, &::qt_core::variant::Variant)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QComboBox::addItem(const QIcon& icon, const QString& text, const QVariant& userData = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#addItem-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Adds an item to the combobox with the given <i>icon</i> and <i>text</i>, and containing the specified <i>userData</i> (stored in the <a href="http://doc.qt.io/qt-5/qt.html#ItemDataRole-enum">Qt::UserRole</a>). The item is appended to the list of existing items.</p></div>
///
/// ## Variant 3
///
/// Rust arguments: ```fn add_item(&mut self, &::qt_core::string::String) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QComboBox::addItem(const QString& text)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#addItem">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Adds an item to the combobox with the given <i>text</i>, and containing the specified <i>userData</i> (stored in the <a href="http://doc.qt.io/qt-5/qt.html#ItemDataRole-enum">Qt::UserRole</a>). The item is appended to the list of existing items.</p></div>
///
/// ## Variant 4
///
/// Rust arguments: ```fn add_item(&mut self, (&::qt_core::string::String, &::qt_core::variant::Variant)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QComboBox::addItem(const QString& text, const QVariant& userData = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#addItem">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Adds an item to the combobox with the given <i>text</i>, and containing the specified <i>userData</i> (stored in the <a href="http://doc.qt.io/qt-5/qt.html#ItemDataRole-enum">Qt::UserRole</a>). The item is appended to the list of existing items.</p></div>
pub fn add_item<'largs, Args>(&'largs mut self, args: Args) -> ()
where Args: overloading::ComboBoxAddItemArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```void QComboBox::addItems(const QStringList& texts)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#addItems">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Adds each of the strings in the given <i>texts</i> to the combobox. Each item is appended to the list of existing items in turn.</p></div>
pub fn add_items(&mut self, texts: &::qt_core::string_list::StringList) {
unsafe {
::ffi::qt_widgets_c_QComboBox_addItems(self as *mut ::combo_box::ComboBox,
texts as *const ::qt_core::string_list::StringList)
}
}
/// C++ method: <span style='color: green;'>```bool QComboBox::autoCompletion() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox-obsolete.html#autoCompletion-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds whether the combobox provides auto-completion for editable items.</p>
/// <p>Use <a href="http://doc.qt.io/qt-5/qcombobox.html#setCompleter">setCompleter</a>() instead.</p>
/// <p>By default, this property is <code>true</code>.</p>
/// <p>This property was introduced in Qt 4.1.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qcombobox-obsolete.html#autoCompletion">autoCompletion</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qcombobox-obsolete.html#setAutoCompletion">setAutoCompletion</a></b></span>(bool <i>enable</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#editable-prop">editable</a>.</p></div>
pub fn auto_completion(&self) -> bool {
unsafe { ::ffi::qt_widgets_c_QComboBox_autoCompletion(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```Qt::CaseSensitivity QComboBox::autoCompletionCaseSensitivity() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox-obsolete.html#autoCompletionCaseSensitivity-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds whether string comparisons are case-sensitive or case-insensitive for auto-completion.</p>
/// <p>By default, this property is <a href="http://doc.qt.io/qt-5/qt.html#CaseSensitivity-enum">Qt::CaseInsensitive</a>.</p>
/// <p>Use <a href="http://doc.qt.io/qt-5/qcombobox.html#setCompleter">setCompleter</a>() instead. Case sensitivity of the auto completion can be changed using <a href="http://doc.qt.io/qt-5/qcompleter.html#caseSensitivity-prop">QCompleter::setCaseSensitivity</a>().</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt::CaseSensitivity </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qcombobox-obsolete.html#autoCompletionCaseSensitivity">autoCompletionCaseSensitivity</a></b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qcombobox-obsolete.html#setAutoCompletionCaseSensitivity">setAutoCompletionCaseSensitivity</a></b></span>(Qt::CaseSensitivity <i>sensitivity</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox-obsolete.html#autoCompletion-prop">autoCompletion</a>.</p>
///
/// <h2>Member Function Documentation</h2></div>
pub fn auto_completion_case_sensitivity(&self) -> ::qt_core::qt::CaseSensitivity {
unsafe { ::ffi::qt_widgets_c_QComboBox_autoCompletionCaseSensitivity(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```[slot] void QComboBox::clear()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#clear">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Clears the combobox, removing all items.</p>
/// <p>Note: If you have set an external model on the combobox this model will still be cleared when calling this function.</p></div>
pub fn clear(&mut self) {
unsafe { ::ffi::qt_widgets_c_QComboBox_clear(self as *mut ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```[slot] void QComboBox::clearEditText()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#clearEditText">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Clears the contents of the line edit used for editing in the combobox.</p></div>
pub fn clear_edit_text(&mut self) {
unsafe { ::ffi::qt_widgets_c_QComboBox_clearEditText(self as *mut ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```QCompleter* QComboBox::completer() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#completer">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the completer that is used to auto complete text input for the combobox.</p>
/// <p>This function was introduced in Qt 4.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#setCompleter">setCompleter</a>() and <a href="http://doc.qt.io/qt-5/qcombobox.html#editable-prop">editable</a>.</p></div>
pub fn completer(&self) -> *mut ::completer::Completer {
unsafe { ::ffi::qt_widgets_c_QComboBox_completer(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```int QComboBox::count() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#count-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the number of items in the combobox.</p>
/// <p>By default, for an empty combo box, this property has a value of 0.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>count</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub fn count(&self) -> ::libc::c_int {
unsafe { ::ffi::qt_widgets_c_QComboBox_count(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```QComboBox::currentData```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn current_data(&self, ()) -> ::qt_core::variant::Variant```<br>
/// C++ method: <span style='color: green;'>```QVariant QComboBox::currentData() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#currentData-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the data for the current item.</p>
/// <p>By default, for an empty combo box or a combo box in which no current item is set, this property contains an invalid <a href="http://doc.qt.io/qt-5/qvariant.html">QVariant</a>.</p>
/// <p>This property was introduced in Qt 5.2.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>currentData</b></span>(int <i>role</i> = Qt::UserRole) const</td></tr>
/// </tbody></table></div></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn current_data(&self, ::libc::c_int) -> ::qt_core::variant::Variant```<br>
/// C++ method: <span style='color: green;'>```QVariant QComboBox::currentData(int role = ?) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#currentData-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the data for the current item.</p>
/// <p>By default, for an empty combo box or a combo box in which no current item is set, this property contains an invalid <a href="http://doc.qt.io/qt-5/qvariant.html">QVariant</a>.</p>
/// <p>This property was introduced in Qt 5.2.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QVariant </td><td class="memItemRight bottomAlign"><span class="name"><b>currentData</b></span>(int <i>role</i> = Qt::UserRole) const</td></tr>
/// </tbody></table></div></div>
pub fn current_data<'largs, Args>(&'largs self, args: Args) -> ::qt_core::variant::Variant
where Args: overloading::ComboBoxCurrentDataArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```int QComboBox::currentIndex() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#currentIndex-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the index of the current item in the combobox.</p>
/// <p>The current index can change when inserting or removing items.</p>
/// <p>By default, for an empty combo box or a combo box in which no current item is set, this property has a value of -1.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>currentIndex</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCurrentIndex</b></span>(int <i>index</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qcombobox.html#currentIndexChanged">currentIndexChanged</a></b></span>(int <i>index</i>)</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qcombobox.html#currentIndexChanged-1">currentIndexChanged</a></b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div></div>
pub fn current_index(&self) -> ::libc::c_int {
unsafe { ::ffi::qt_widgets_c_QComboBox_currentIndex(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```QString QComboBox::currentText() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#currentText-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the current text.</p>
/// <p>If the combo box is editable, the current text is the value displayed by the line edit. Otherwise, it is the value of the current item or an empty string if the combo box is empty or no current item is set.</p>
/// <p>The setter setCurrentText() simply calls <a href="http://doc.qt.io/qt-5/qcombobox.html#setEditText">setEditText</a>() if the combo box is editable. Otherwise, if there is a matching text in the list, <a href="http://doc.qt.io/qt-5/qcombobox.html#currentIndex-prop">currentIndex</a> is set to the corresponding index.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>currentText</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCurrentText</b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qcombobox.html#currentTextChanged">currentTextChanged</a></b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#editable-prop">editable</a> and <a href="http://doc.qt.io/qt-5/qcombobox.html#setEditText">setEditText</a>().</p></div>
pub fn current_text(&self) -> ::qt_core::string::String {
{
let mut object: ::qt_core::string::String =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QComboBox_currentText_to_output(self as *const ::combo_box::ComboBox, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```bool QComboBox::duplicatesEnabled() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#duplicatesEnabled-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds whether the user can enter duplicate items into the combobox.</p>
/// <p>Note that it is always possible to programmatically insert duplicate items into the combobox.</p>
/// <p>By default, this property is <code>false</code> (duplicates are not allowed).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>duplicatesEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDuplicatesEnabled</b></span>(bool <i>enable</i>)</td></tr>
/// </tbody></table></div></div>
pub fn duplicates_enabled(&self) -> bool {
unsafe { ::ffi::qt_widgets_c_QComboBox_duplicatesEnabled(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```virtual bool QComboBox::event(QEvent* event)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#event">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qobject.html#event">QObject::event</a>().</p></div>
pub unsafe fn event(&mut self, event: *mut ::qt_core::event::Event) -> bool {
::ffi::qt_widgets_c_QComboBox_event(self as *mut ::combo_box::ComboBox, event)
}
/// C++ method: <span style='color: green;'>```QComboBox::findData```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn find_data(&self, &::qt_core::variant::Variant) -> ::libc::c_int```<br>
/// C++ method: <span style='color: green;'>```int QComboBox::findData(const QVariant& data) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#findData">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index of the item containing the given <i>data</i> for the given <i>role</i>; otherwise returns -1.</p>
/// <p>The <i>flags</i> specify how the items in the combobox are searched.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn find_data(&self, (&::qt_core::variant::Variant, ::libc::c_int)) -> ::libc::c_int```<br>
/// C++ method: <span style='color: green;'>```int QComboBox::findData(const QVariant& data, int role = ?) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#findData">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index of the item containing the given <i>data</i> for the given <i>role</i>; otherwise returns -1.</p>
/// <p>The <i>flags</i> specify how the items in the combobox are searched.</p></div>
///
/// ## Variant 3
///
/// Rust arguments: ```fn find_data(&self, (&::qt_core::variant::Variant, ::libc::c_int, ::qt_core::flags::Flags<::qt_core::qt::MatchFlag>)) -> ::libc::c_int```<br>
/// C++ method: <span style='color: green;'>```int QComboBox::findData(const QVariant& data, int role = ?, QFlags<Qt::MatchFlag> flags = ?) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#findData">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index of the item containing the given <i>data</i> for the given <i>role</i>; otherwise returns -1.</p>
/// <p>The <i>flags</i> specify how the items in the combobox are searched.</p></div>
pub fn find_data<'largs, Args>(&'largs self, args: Args) -> ::libc::c_int
where Args: overloading::ComboBoxFindDataArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```QComboBox::findText```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn find_text(&self, &::qt_core::string::String) -> ::libc::c_int```<br>
/// C++ method: <span style='color: green;'>```int QComboBox::findText(const QString& text) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#findText">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index of the item containing the given <i>text</i>; otherwise returns -1.</p>
/// <p>The <i>flags</i> specify how the items in the combobox are searched.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn find_text(&self, (&::qt_core::string::String, ::qt_core::flags::Flags<::qt_core::qt::MatchFlag>)) -> ::libc::c_int```<br>
/// C++ method: <span style='color: green;'>```int QComboBox::findText(const QString& text, QFlags<Qt::MatchFlag> flags = ?) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#findText">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the index of the item containing the given <i>text</i>; otherwise returns -1.</p>
/// <p>The <i>flags</i> specify how the items in the combobox are searched.</p></div>
pub fn find_text<'largs, Args>(&'largs self, args: Args) -> ::libc::c_int
where Args: overloading::ComboBoxFindTextArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```bool QComboBox::hasFrame() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#frame-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds whether the combo box draws itself with a frame.</p>
/// <p>If enabled (the default) the combo box draws itself inside a frame, otherwise the combo box draws itself without any frame.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>hasFrame</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFrame</b></span>(<i>bool</i>)</td></tr>
/// </tbody></table></div></div>
pub fn has_frame(&self) -> bool {
unsafe { ::ffi::qt_widgets_c_QComboBox_hasFrame(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```virtual void QComboBox::hidePopup()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#hidePopup">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Hides the list of items in the combobox if it is currently visible and resets the internal state, so that if the custom pop-up was shown inside the reimplemented <a href="http://doc.qt.io/qt-5/qcombobox.html#showPopup">showPopup</a>(), then you also need to reimplement the hidePopup() function to hide your custom pop-up and call the base class implementation to reset the internal state whenever your custom pop-up widget is hidden.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#showPopup">showPopup</a>().</p></div>
pub fn hide_popup(&mut self) {
unsafe { ::ffi::qt_widgets_c_QComboBox_hidePopup(self as *mut ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```QSize QComboBox::iconSize() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#iconSize-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the size of the icons shown in the combobox.</p>
/// <p>Unless explicitly set this returns the default value of the current style. This size is the maximum size that icons can have; icons of smaller size are not scaled up.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>iconSize</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setIconSize</b></span>(const QSize &<i>size</i>)</td></tr>
/// </tbody></table></div></div>
pub fn icon_size(&self) -> ::qt_core::size::Size {
{
let mut object: ::qt_core::size::Size =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QComboBox_iconSize_to_output(self as *const ::combo_box::ComboBox, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```QComboBox::inputMethodQuery```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn input_method_query(&self, ::qt_core::qt::InputMethodQuery) -> ::qt_core::variant::Variant```<br>
/// C++ method: <span style='color: green;'>```virtual QVariant QComboBox::inputMethodQuery(Qt::InputMethodQuery arg1) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#inputMethodQuery">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qwidget.html#inputMethodQuery">QWidget::inputMethodQuery</a>().</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn input_method_query(&self, (::qt_core::qt::InputMethodQuery, &::qt_core::variant::Variant)) -> ::qt_core::variant::Variant```<br>
/// C++ method: <span style='color: green;'>```QVariant QComboBox::inputMethodQuery(Qt::InputMethodQuery query, const QVariant& argument) const```</span>
///
///
pub fn input_method_query<'largs, Args>(&'largs self, args: Args) -> ::qt_core::variant::Variant
where Args: overloading::ComboBoxInputMethodQueryArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```QComboBox::insertItem```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn insert_item(&mut self, (::libc::c_int, &::qt_gui::icon::Icon, &::qt_core::string::String)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QComboBox::insertItem(int index, const QIcon& icon, const QString& text)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#insertItem-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts the <i>icon</i>, <i>text</i> and <i>userData</i> (stored in the <a href="http://doc.qt.io/qt-5/qt.html#ItemDataRole-enum">Qt::UserRole</a>) into the combobox at the given <i>index</i>.</p>
/// <p>If the index is equal to or higher than the total number of items, the new item is appended to the list of existing items. If the index is zero or negative, the new item is prepended to the list of existing items.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#insertItems">insertItems</a>().</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn insert_item(&mut self, (::libc::c_int, &::qt_gui::icon::Icon, &::qt_core::string::String, &::qt_core::variant::Variant)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QComboBox::insertItem(int index, const QIcon& icon, const QString& text, const QVariant& userData = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#insertItem-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts the <i>icon</i>, <i>text</i> and <i>userData</i> (stored in the <a href="http://doc.qt.io/qt-5/qt.html#ItemDataRole-enum">Qt::UserRole</a>) into the combobox at the given <i>index</i>.</p>
/// <p>If the index is equal to or higher than the total number of items, the new item is appended to the list of existing items. If the index is zero or negative, the new item is prepended to the list of existing items.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#insertItems">insertItems</a>().</p></div>
///
/// ## Variant 3
///
/// Rust arguments: ```fn insert_item(&mut self, (::libc::c_int, &::qt_core::string::String)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QComboBox::insertItem(int index, const QString& text)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#insertItem">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts the <i>text</i> and <i>userData</i> (stored in the <a href="http://doc.qt.io/qt-5/qt.html#ItemDataRole-enum">Qt::UserRole</a>) into the combobox at the given <i>index</i>.</p>
/// <p>If the index is equal to or higher than the total number of items, the new item is appended to the list of existing items. If the index is zero or negative, the new item is prepended to the list of existing items.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#insertItems">insertItems</a>().</p></div>
///
/// ## Variant 4
///
/// Rust arguments: ```fn insert_item(&mut self, (::libc::c_int, &::qt_core::string::String, &::qt_core::variant::Variant)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QComboBox::insertItem(int index, const QString& text, const QVariant& userData = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#insertItem">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts the <i>text</i> and <i>userData</i> (stored in the <a href="http://doc.qt.io/qt-5/qt.html#ItemDataRole-enum">Qt::UserRole</a>) into the combobox at the given <i>index</i>.</p>
/// <p>If the index is equal to or higher than the total number of items, the new item is appended to the list of existing items. If the index is zero or negative, the new item is prepended to the list of existing items.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#insertItems">insertItems</a>().</p></div>
pub fn insert_item<'largs, Args>(&'largs mut self, args: Args) -> ()
where Args: overloading::ComboBoxInsertItemArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```void QComboBox::insertItems(int index, const QStringList& texts)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#insertItems">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts the strings from the <i>list</i> into the combobox as separate items, starting at the <i>index</i> specified.</p>
/// <p>If the index is equal to or higher than the total number of items, the new items are appended to the list of existing items. If the index is zero or negative, the new items are prepended to the list of existing items.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#insertItem">insertItem</a>().</p></div>
pub fn insert_items(&mut self, index: ::libc::c_int, texts: &::qt_core::string_list::StringList) {
unsafe {
::ffi::qt_widgets_c_QComboBox_insertItems(self as *mut ::combo_box::ComboBox,
index,
texts as *const ::qt_core::string_list::StringList)
}
}
/// C++ method: <span style='color: green;'>```QComboBox::InsertPolicy QComboBox::insertPolicy() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#insertPolicy-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the policy used to determine where user-inserted items should appear in the combobox.</p>
/// <p>The default value is <a href="http://doc.qt.io/qt-5/qcombobox.html#InsertPolicy-enum">InsertAtBottom</a>, indicating that new items will appear at the bottom of the list of items.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> InsertPolicy </td><td class="memItemRight bottomAlign"><span class="name"><b>insertPolicy</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setInsertPolicy</b></span>(InsertPolicy <i>policy</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#InsertPolicy-enum">InsertPolicy</a>.</p></div>
pub fn insert_policy(&self) -> ::combo_box::InsertPolicy {
unsafe { ::ffi::qt_widgets_c_QComboBox_insertPolicy(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```void QComboBox::insertSeparator(int index)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#insertSeparator">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Inserts a separator item into the combobox at the given <i>index</i>.</p>
/// <p>If the index is equal to or higher than the total number of items, the new item is appended to the list of existing items. If the index is zero or negative, the new item is prepended to the list of existing items.</p>
/// <p>This function was introduced in Qt 4.4.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#insertItem">insertItem</a>().</p></div>
pub fn insert_separator(&mut self, index: ::libc::c_int) {
unsafe { ::ffi::qt_widgets_c_QComboBox_insertSeparator(self as *mut ::combo_box::ComboBox, index) }
}
/// C++ method: <span style='color: green;'>```bool QComboBox::isEditable() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#editable-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds whether the combo box can be edited by the user.</p>
/// <p>By default, this property is <code>false</code>. The effect of editing depends on the insert policy.</p>
/// <p><b>Note: </b>When disabling the <i>editable</i> state, the validator and completer are removed.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isEditable</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEditable</b></span>(bool <i>editable</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#InsertPolicy-enum">InsertPolicy</a>.</p></div>
pub fn is_editable(&self) -> bool {
unsafe { ::ffi::qt_widgets_c_QComboBox_isEditable(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```QComboBox::itemData```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn item_data(&self, ::libc::c_int) -> ::qt_core::variant::Variant```<br>
/// C++ method: <span style='color: green;'>```QVariant QComboBox::itemData(int index) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#itemData">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the data for the given <i>role</i> in the given <i>index</i> in the combobox, or QVariant::Invalid if there is no data for this role.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#setItemData">setItemData</a>().</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn item_data(&self, (::libc::c_int, ::libc::c_int)) -> ::qt_core::variant::Variant```<br>
/// C++ method: <span style='color: green;'>```QVariant QComboBox::itemData(int index, int role = ?) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#itemData">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the data for the given <i>role</i> in the given <i>index</i> in the combobox, or QVariant::Invalid if there is no data for this role.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#setItemData">setItemData</a>().</p></div>
pub fn item_data<'largs, Args>(&'largs self, args: Args) -> ::qt_core::variant::Variant
where Args: overloading::ComboBoxItemDataArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```QAbstractItemDelegate* QComboBox::itemDelegate() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#itemDelegate">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the item delegate used by the popup list view.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#setItemDelegate">setItemDelegate</a>().</p></div>
pub fn item_delegate(&self) -> *mut ::abstract_item_delegate::AbstractItemDelegate {
unsafe { ::ffi::qt_widgets_c_QComboBox_itemDelegate(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```QIcon QComboBox::itemIcon(int index) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#itemIcon">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the icon for the given <i>index</i> in the combobox.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#setItemIcon">setItemIcon</a>().</p></div>
pub fn item_icon(&self, index: ::libc::c_int) -> ::qt_gui::icon::Icon {
{
let mut object: ::qt_gui::icon::Icon =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QComboBox_itemIcon_to_output(self as *const ::combo_box::ComboBox, index, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```QString QComboBox::itemText(int index) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#itemText">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the text for the given <i>index</i> in the combobox.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#setItemText">setItemText</a>().</p></div>
pub fn item_text(&self, index: ::libc::c_int) -> ::qt_core::string::String {
{
let mut object: ::qt_core::string::String =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QComboBox_itemText_to_output(self as *const ::combo_box::ComboBox, index, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```QLineEdit* QComboBox::lineEdit() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#lineEdit">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the line edit used to edit items in the combobox, or 0 if there is no line edit.</p>
/// <p>Only editable combo boxes have a line edit.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#setLineEdit">setLineEdit</a>().</p></div>
pub fn line_edit(&self) -> *mut ::line_edit::LineEdit {
unsafe { ::ffi::qt_widgets_c_QComboBox_lineEdit(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```int QComboBox::maxCount() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#maxCount-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the maximum number of items allowed in the combobox.</p>
/// <p><b>Note: </b>If you set the maximum number to be less then the current amount of items in the combobox, the extra items will be truncated. This also applies if you have set an external model on the combobox.</p><p>By default, this property's value is derived from the highest signed integer available (typically 2147483647).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>maxCount</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMaxCount</b></span>(int <i>max</i>)</td></tr>
/// </tbody></table></div></div>
pub fn max_count(&self) -> ::libc::c_int {
unsafe { ::ffi::qt_widgets_c_QComboBox_maxCount(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```int QComboBox::maxVisibleItems() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#maxVisibleItems-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the maximum allowed size on screen of the combo box, measured in items.</p>
/// <p>By default, this property has a value of 10.</p>
/// <p><b>Note: </b>This property is ignored for non-editable comboboxes in styles that returns true for <a href="http://doc.qt.io/qt-5/qstyle.html#StyleHint-enum">QStyle::SH_ComboBox_Popup</a> such as the Mac style or the Gtk+ Style.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>maxVisibleItems</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMaxVisibleItems</b></span>(int <i>maxItems</i>)</td></tr>
/// </tbody></table></div></div>
pub fn max_visible_items(&self) -> ::libc::c_int {
unsafe { ::ffi::qt_widgets_c_QComboBox_maxVisibleItems(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```virtual const QMetaObject* QComboBox::metaObject() const```</span>
///
///
pub fn meta_object(&self) -> *const ::qt_core::meta_object::MetaObject {
unsafe { ::ffi::qt_widgets_c_QComboBox_metaObject(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```int QComboBox::minimumContentsLength() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#minimumContentsLength-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the minimum number of characters that should fit into the combobox.</p>
/// <p>The default value is 0.</p>
/// <p>If this property is set to a positive value, the <a href="http://doc.qt.io/qt-5/qcombobox.html#minimumSizeHint">minimumSizeHint</a>() and <a href="http://doc.qt.io/qt-5/qcombobox.html#sizeHint">sizeHint</a>() take it into account.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>minimumContentsLength</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinimumContentsLength</b></span>(int <i>characters</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#sizeAdjustPolicy-prop">sizeAdjustPolicy</a>.</p></div>
pub fn minimum_contents_length(&self) -> ::libc::c_int {
unsafe { ::ffi::qt_widgets_c_QComboBox_minimumContentsLength(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```virtual QSize QComboBox::minimumSizeHint() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#minimumSizeHint">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qwidget.html#minimumSizeHint-prop">QWidget::minimumSizeHint</a>().</p></div>
pub fn minimum_size_hint(&self) -> ::qt_core::size::Size {
{
let mut object: ::qt_core::size::Size =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QComboBox_minimumSizeHint_to_output(self as *const ::combo_box::ComboBox, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```QAbstractItemModel* QComboBox::model() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#model">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the model used by the combobox.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#setModel">setModel</a>().</p></div>
pub fn model(&self) -> *mut ::qt_core::abstract_item_model::AbstractItemModel {
unsafe { ::ffi::qt_widgets_c_QComboBox_model(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```int QComboBox::modelColumn() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#modelColumn-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the column in the model that is visible.</p>
/// <p>If set prior to populating the combo box, the pop-up view will not be affected and will show the first column (using this property's default value).</p>
/// <p>By default, this property has a value of 0.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>modelColumn</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setModelColumn</b></span>(int <i>visibleColumn</i>)</td></tr>
/// </tbody></table></div></div>
pub fn model_column(&self) -> ::libc::c_int {
unsafe { ::ffi::qt_widgets_c_QComboBox_modelColumn(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```[constructor] void QComboBox::QComboBox()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#QComboBox">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a combobox with the given <i>parent</i>, using the default model <a href="http://doc.qt.io/qt-5/qstandarditemmodel.html">QStandardItemModel</a>.</p></div>
pub fn new() -> ::cpp_utils::CppBox<::combo_box::ComboBox> {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QComboBox_new_no_args() };
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
/// C++ method: <span style='color: green;'>```[constructor] void QComboBox::QComboBox(QWidget* parent = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#QComboBox">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a combobox with the given <i>parent</i>, using the default model <a href="http://doc.qt.io/qt-5/qstandarditemmodel.html">QStandardItemModel</a>.</p></div>
pub unsafe fn new_unsafe(parent: *mut ::widget::Widget) -> ::cpp_utils::CppBox<::combo_box::ComboBox> {
let ffi_result = ::ffi::qt_widgets_c_QComboBox_new_parent(parent);
::cpp_utils::CppBox::new(ffi_result)
}
/// C++ method: <span style='color: green;'>```virtual int QComboBox::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>
///
///
pub unsafe fn qt_metacall(&mut self,
arg1: ::qt_core::meta_object::Call,
arg2: ::libc::c_int,
arg3: *mut *mut ::libc::c_void)
-> ::libc::c_int {
::ffi::qt_widgets_c_QComboBox_qt_metacall(self as *mut ::combo_box::ComboBox, arg1, arg2, arg3)
}
/// C++ method: <span style='color: green;'>```virtual void* QComboBox::qt_metacast(const char* arg1)```</span>
///
///
pub unsafe fn qt_metacast(&mut self, arg1: *const ::libc::c_char) -> *mut ::libc::c_void {
::ffi::qt_widgets_c_QComboBox_qt_metacast(self as *mut ::combo_box::ComboBox, arg1)
}
/// C++ method: <span style='color: green;'>```void QComboBox::removeItem(int index)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#removeItem">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Removes the item at the given <i>index</i> from the combobox. This will update the current index if the index is removed.</p>
/// <p>This function does nothing if <i>index</i> is out of range.</p></div>
pub fn remove_item(&mut self, index: ::libc::c_int) {
unsafe { ::ffi::qt_widgets_c_QComboBox_removeItem(self as *mut ::combo_box::ComboBox, index) }
}
/// C++ method: <span style='color: green;'>```QModelIndex QComboBox::rootModelIndex() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#rootModelIndex">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the root model item index for the items in the combobox.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#setRootModelIndex">setRootModelIndex</a>().</p></div>
pub fn root_model_index(&self) -> ::qt_core::model_index::ModelIndex {
{
let mut object: ::qt_core::model_index::ModelIndex =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QComboBox_rootModelIndex_to_output(self as *const ::combo_box::ComboBox, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```void QComboBox::setAutoCompletion(bool enable)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox-obsolete.html#setAutoCompletion">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Use <a href="http://doc.qt.io/qt-5/qcombobox.html#setCompleter">setCompleter</a>() instead.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qcombobox-obsolete.html#autoCompletion-prop">autoCompletion</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox-obsolete.html#autoCompletion">autoCompletion</a>().</p></div>
pub fn set_auto_completion(&mut self, enable: bool) {
unsafe { ::ffi::qt_widgets_c_QComboBox_setAutoCompletion(self as *mut ::combo_box::ComboBox, enable) }
}
/// C++ method: <span style='color: green;'>```void QComboBox::setAutoCompletionCaseSensitivity(Qt::CaseSensitivity sensitivity)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox-obsolete.html#setAutoCompletionCaseSensitivity">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Use <a href="http://doc.qt.io/qt-5/qcombobox.html#setCompleter">setCompleter</a>() and <a href="http://doc.qt.io/qt-5/qcompleter.html#caseSensitivity-prop">QCompleter::setCaseSensitivity</a>() instead.</p>
/// <p><b>Note:</b> Setter function for property <a href="http://doc.qt.io/qt-5/qcombobox-obsolete.html#autoCompletionCaseSensitivity-prop">autoCompletionCaseSensitivity</a>. </p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox-obsolete.html#autoCompletionCaseSensitivity">autoCompletionCaseSensitivity</a>().</p></div>
pub fn set_auto_completion_case_sensitivity(&mut self, sensitivity: ::qt_core::qt::CaseSensitivity) {
unsafe {
::ffi::qt_widgets_c_QComboBox_setAutoCompletionCaseSensitivity(self as *mut ::combo_box::ComboBox, sensitivity)
}
}
/// C++ method: <span style='color: green;'>```void QComboBox::setCompleter(QCompleter* c)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#setCompleter">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the <i>completer</i> to use instead of the current completer. If <i>completer</i> is 0, auto completion is disabled.</p>
/// <p>By default, for an editable combo box, a <a href="http://doc.qt.io/qt-5/qcompleter.html">QCompleter</a> that performs case insensitive inline completion is automatically created.</p>
/// <p><b>Note: </b>The completer is removed when the <i>editable</i> property becomes <code>false</code>.</p><p>This function was introduced in Qt 4.2.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#completer">completer</a>().</p></div>
pub unsafe fn set_completer(&mut self, c: *mut ::completer::Completer) {
::ffi::qt_widgets_c_QComboBox_setCompleter(self as *mut ::combo_box::ComboBox, c)
}
/// C++ method: <span style='color: green;'>```[slot] void QComboBox::setCurrentIndex(int index)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#currentIndex-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the index of the current item in the combobox.</p>
/// <p>The current index can change when inserting or removing items.</p>
/// <p>By default, for an empty combo box or a combo box in which no current item is set, this property has a value of -1.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>currentIndex</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCurrentIndex</b></span>(int <i>index</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qcombobox.html#currentIndexChanged">currentIndexChanged</a></b></span>(int <i>index</i>)</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qcombobox.html#currentIndexChanged-1">currentIndexChanged</a></b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div></div>
pub fn set_current_index(&mut self, index: ::libc::c_int) {
unsafe { ::ffi::qt_widgets_c_QComboBox_setCurrentIndex(self as *mut ::combo_box::ComboBox, index) }
}
/// C++ method: <span style='color: green;'>```[slot] void QComboBox::setCurrentText(const QString& text)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#currentText-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the current text.</p>
/// <p>If the combo box is editable, the current text is the value displayed by the line edit. Otherwise, it is the value of the current item or an empty string if the combo box is empty or no current item is set.</p>
/// <p>The setter setCurrentText() simply calls <a href="http://doc.qt.io/qt-5/qcombobox.html#setEditText">setEditText</a>() if the combo box is editable. Otherwise, if there is a matching text in the list, <a href="http://doc.qt.io/qt-5/qcombobox.html#currentIndex-prop">currentIndex</a> is set to the corresponding index.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>currentText</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setCurrentText</b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qcombobox.html#currentTextChanged">currentTextChanged</a></b></span>(const QString &<i>text</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#editable-prop">editable</a> and <a href="http://doc.qt.io/qt-5/qcombobox.html#setEditText">setEditText</a>().</p></div>
pub fn set_current_text(&mut self, text: &::qt_core::string::String) {
unsafe {
::ffi::qt_widgets_c_QComboBox_setCurrentText(self as *mut ::combo_box::ComboBox,
text as *const ::qt_core::string::String)
}
}
/// C++ method: <span style='color: green;'>```void QComboBox::setDuplicatesEnabled(bool enable)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#duplicatesEnabled-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds whether the user can enter duplicate items into the combobox.</p>
/// <p>Note that it is always possible to programmatically insert duplicate items into the combobox.</p>
/// <p>By default, this property is <code>false</code> (duplicates are not allowed).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>duplicatesEnabled</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDuplicatesEnabled</b></span>(bool <i>enable</i>)</td></tr>
/// </tbody></table></div></div>
pub fn set_duplicates_enabled(&mut self, enable: bool) {
unsafe { ::ffi::qt_widgets_c_QComboBox_setDuplicatesEnabled(self as *mut ::combo_box::ComboBox, enable) }
}
/// C++ method: <span style='color: green;'>```[slot] void QComboBox::setEditText(const QString& text)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#setEditText">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the <i>text</i> in the combobox's text edit.</p></div>
pub fn set_edit_text(&mut self, text: &::qt_core::string::String) {
unsafe {
::ffi::qt_widgets_c_QComboBox_setEditText(self as *mut ::combo_box::ComboBox,
text as *const ::qt_core::string::String)
}
}
/// C++ method: <span style='color: green;'>```void QComboBox::setEditable(bool editable)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#editable-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds whether the combo box can be edited by the user.</p>
/// <p>By default, this property is <code>false</code>. The effect of editing depends on the insert policy.</p>
/// <p><b>Note: </b>When disabling the <i>editable</i> state, the validator and completer are removed.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isEditable</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEditable</b></span>(bool <i>editable</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#InsertPolicy-enum">InsertPolicy</a>.</p></div>
pub fn set_editable(&mut self, editable: bool) {
unsafe { ::ffi::qt_widgets_c_QComboBox_setEditable(self as *mut ::combo_box::ComboBox, editable) }
}
/// C++ method: <span style='color: green;'>```void QComboBox::setFrame(bool arg1)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#frame-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds whether the combo box draws itself with a frame.</p>
/// <p>If enabled (the default) the combo box draws itself inside a frame, otherwise the combo box draws itself without any frame.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>hasFrame</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFrame</b></span>(<i>bool</i>)</td></tr>
/// </tbody></table></div></div>
pub fn set_frame(&mut self, arg1: bool) {
unsafe { ::ffi::qt_widgets_c_QComboBox_setFrame(self as *mut ::combo_box::ComboBox, arg1) }
}
/// C++ method: <span style='color: green;'>```void QComboBox::setIconSize(const QSize& size)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#iconSize-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the size of the icons shown in the combobox.</p>
/// <p>Unless explicitly set this returns the default value of the current style. This size is the maximum size that icons can have; icons of smaller size are not scaled up.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>iconSize</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setIconSize</b></span>(const QSize &<i>size</i>)</td></tr>
/// </tbody></table></div></div>
pub fn set_icon_size(&mut self, size: &::qt_core::size::Size) {
unsafe {
::ffi::qt_widgets_c_QComboBox_setIconSize(self as *mut ::combo_box::ComboBox,
size as *const ::qt_core::size::Size)
}
}
/// C++ method: <span style='color: green;'>```void QComboBox::setInsertPolicy(QComboBox::InsertPolicy policy)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#insertPolicy-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the policy used to determine where user-inserted items should appear in the combobox.</p>
/// <p>The default value is <a href="http://doc.qt.io/qt-5/qcombobox.html#InsertPolicy-enum">InsertAtBottom</a>, indicating that new items will appear at the bottom of the list of items.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> InsertPolicy </td><td class="memItemRight bottomAlign"><span class="name"><b>insertPolicy</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setInsertPolicy</b></span>(InsertPolicy <i>policy</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#InsertPolicy-enum">InsertPolicy</a>.</p></div>
pub fn set_insert_policy(&mut self, policy: ::combo_box::InsertPolicy) {
unsafe { ::ffi::qt_widgets_c_QComboBox_setInsertPolicy(self as *mut ::combo_box::ComboBox, policy) }
}
/// C++ method: <span style='color: green;'>```QComboBox::setItemData```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn set_item_data(&mut self, (::libc::c_int, &::qt_core::variant::Variant)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QComboBox::setItemData(int index, const QVariant& value)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#setItemData">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the data <i>role</i> for the item on the given <i>index</i> in the combobox to the specified <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#itemData">itemData</a>().</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn set_item_data(&mut self, (::libc::c_int, &::qt_core::variant::Variant, ::libc::c_int)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QComboBox::setItemData(int index, const QVariant& value, int role = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#setItemData">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the data <i>role</i> for the item on the given <i>index</i> in the combobox to the specified <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#itemData">itemData</a>().</p></div>
pub fn set_item_data<'largs, Args>(&'largs mut self, args: Args) -> ()
where Args: overloading::ComboBoxSetItemDataArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```void QComboBox::setItemDelegate(QAbstractItemDelegate* delegate)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#setItemDelegate">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the item <i>delegate</i> for the popup list view. The combobox takes ownership of the delegate.</p>
/// <p><b>Warning:</b> You should not share the same instance of a delegate between comboboxes, widget mappers or views. Doing so can cause incorrect or unintuitive editing behavior since each view connected to a given delegate may receive the <a href="http://doc.qt.io/qt-5/qabstractitemdelegate.html#closeEditor">closeEditor()</a> signal, and attempt to access, modify or close an editor that has already been closed.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#itemDelegate">itemDelegate</a>().</p></div>
pub unsafe fn set_item_delegate(&mut self, delegate: *mut ::abstract_item_delegate::AbstractItemDelegate) {
::ffi::qt_widgets_c_QComboBox_setItemDelegate(self as *mut ::combo_box::ComboBox, delegate)
}
/// C++ method: <span style='color: green;'>```void QComboBox::setItemIcon(int index, const QIcon& icon)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#setItemIcon">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the <i>icon</i> for the item on the given <i>index</i> in the combobox.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#itemIcon">itemIcon</a>().</p></div>
pub fn set_item_icon(&mut self, index: ::libc::c_int, icon: &::qt_gui::icon::Icon) {
unsafe {
::ffi::qt_widgets_c_QComboBox_setItemIcon(self as *mut ::combo_box::ComboBox,
index,
icon as *const ::qt_gui::icon::Icon)
}
}
/// C++ method: <span style='color: green;'>```void QComboBox::setItemText(int index, const QString& text)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#setItemText">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the <i>text</i> for the item on the given <i>index</i> in the combobox.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#itemText">itemText</a>().</p></div>
pub fn set_item_text(&mut self, index: ::libc::c_int, text: &::qt_core::string::String) {
unsafe {
::ffi::qt_widgets_c_QComboBox_setItemText(self as *mut ::combo_box::ComboBox,
index,
text as *const ::qt_core::string::String)
}
}
/// C++ method: <span style='color: green;'>```void QComboBox::setLineEdit(QLineEdit* edit)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#setLineEdit">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the line <i>edit</i> to use instead of the current line edit widget.</p>
/// <p>The combo box takes ownership of the line edit.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#lineEdit">lineEdit</a>().</p></div>
pub unsafe fn set_line_edit(&mut self, edit: *mut ::line_edit::LineEdit) {
::ffi::qt_widgets_c_QComboBox_setLineEdit(self as *mut ::combo_box::ComboBox, edit)
}
/// C++ method: <span style='color: green;'>```void QComboBox::setMaxCount(int max)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#maxCount-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the maximum number of items allowed in the combobox.</p>
/// <p><b>Note: </b>If you set the maximum number to be less then the current amount of items in the combobox, the extra items will be truncated. This also applies if you have set an external model on the combobox.</p><p>By default, this property's value is derived from the highest signed integer available (typically 2147483647).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>maxCount</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMaxCount</b></span>(int <i>max</i>)</td></tr>
/// </tbody></table></div></div>
pub fn set_max_count(&mut self, max: ::libc::c_int) {
unsafe { ::ffi::qt_widgets_c_QComboBox_setMaxCount(self as *mut ::combo_box::ComboBox, max) }
}
/// C++ method: <span style='color: green;'>```void QComboBox::setMaxVisibleItems(int maxItems)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#maxVisibleItems-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the maximum allowed size on screen of the combo box, measured in items.</p>
/// <p>By default, this property has a value of 10.</p>
/// <p><b>Note: </b>This property is ignored for non-editable comboboxes in styles that returns true for <a href="http://doc.qt.io/qt-5/qstyle.html#StyleHint-enum">QStyle::SH_ComboBox_Popup</a> such as the Mac style or the Gtk+ Style.</p><p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>maxVisibleItems</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMaxVisibleItems</b></span>(int <i>maxItems</i>)</td></tr>
/// </tbody></table></div></div>
pub fn set_max_visible_items(&mut self, max_items: ::libc::c_int) {
unsafe { ::ffi::qt_widgets_c_QComboBox_setMaxVisibleItems(self as *mut ::combo_box::ComboBox, max_items) }
}
/// C++ method: <span style='color: green;'>```void QComboBox::setMinimumContentsLength(int characters)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#minimumContentsLength-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the minimum number of characters that should fit into the combobox.</p>
/// <p>The default value is 0.</p>
/// <p>If this property is set to a positive value, the <a href="http://doc.qt.io/qt-5/qcombobox.html#minimumSizeHint">minimumSizeHint</a>() and <a href="http://doc.qt.io/qt-5/qcombobox.html#sizeHint">sizeHint</a>() take it into account.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>minimumContentsLength</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMinimumContentsLength</b></span>(int <i>characters</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#sizeAdjustPolicy-prop">sizeAdjustPolicy</a>.</p></div>
pub fn set_minimum_contents_length(&mut self, characters: ::libc::c_int) {
unsafe { ::ffi::qt_widgets_c_QComboBox_setMinimumContentsLength(self as *mut ::combo_box::ComboBox, characters) }
}
/// C++ method: <span style='color: green;'>```void QComboBox::setModel(QAbstractItemModel* model)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#setModel">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the model to be <i>model</i>. <i>model</i> must not be 0. If you want to clear the contents of a model, call <a href="http://doc.qt.io/qt-5/qcombobox.html#clear">clear</a>().</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#model">model</a>() and <a href="http://doc.qt.io/qt-5/qcombobox.html#clear">clear</a>().</p></div>
pub unsafe fn set_model(&mut self, model: *mut ::qt_core::abstract_item_model::AbstractItemModel) {
::ffi::qt_widgets_c_QComboBox_setModel(self as *mut ::combo_box::ComboBox, model)
}
/// C++ method: <span style='color: green;'>```void QComboBox::setModelColumn(int visibleColumn)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#modelColumn-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the column in the model that is visible.</p>
/// <p>If set prior to populating the combo box, the pop-up view will not be affected and will show the first column (using this property's default value).</p>
/// <p>By default, this property has a value of 0.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>modelColumn</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setModelColumn</b></span>(int <i>visibleColumn</i>)</td></tr>
/// </tbody></table></div></div>
pub fn set_model_column(&mut self, visible_column: ::libc::c_int) {
unsafe { ::ffi::qt_widgets_c_QComboBox_setModelColumn(self as *mut ::combo_box::ComboBox, visible_column) }
}
/// C++ method: <span style='color: green;'>```void QComboBox::setRootModelIndex(const QModelIndex& index)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#setRootModelIndex">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the root model item <i>index</i> for the items in the combobox.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#rootModelIndex">rootModelIndex</a>().</p></div>
pub fn set_root_model_index(&mut self, index: &::qt_core::model_index::ModelIndex) {
unsafe {
::ffi::qt_widgets_c_QComboBox_setRootModelIndex(self as *mut ::combo_box::ComboBox,
index as *const ::qt_core::model_index::ModelIndex)
}
}
/// C++ method: <span style='color: green;'>```void QComboBox::setSizeAdjustPolicy(QComboBox::SizeAdjustPolicy policy)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#sizeAdjustPolicy-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the policy describing how the size of the combobox changes when the content changes.</p>
/// <p>The default value is <a href="http://doc.qt.io/qt-5/qcombobox.html#SizeAdjustPolicy-enum">AdjustToContentsOnFirstShow</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> SizeAdjustPolicy </td><td class="memItemRight bottomAlign"><span class="name"><b>sizeAdjustPolicy</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSizeAdjustPolicy</b></span>(SizeAdjustPolicy <i>policy</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#SizeAdjustPolicy-enum">SizeAdjustPolicy</a>.</p></div>
pub fn set_size_adjust_policy(&mut self, policy: ::combo_box::SizeAdjustPolicy) {
unsafe { ::ffi::qt_widgets_c_QComboBox_setSizeAdjustPolicy(self as *mut ::combo_box::ComboBox, policy) }
}
/// C++ method: <span style='color: green;'>```void QComboBox::setValidator(const QValidator* v)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#setValidator">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the <i>validator</i> to use instead of the current validator.</p>
/// <p><b>Note: </b>The validator is removed when the editable property becomes <code>false</code>.</p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#validator">validator</a>().</p></div>
pub unsafe fn set_validator(&mut self, v: *const ::qt_gui::validator::Validator) {
::ffi::qt_widgets_c_QComboBox_setValidator(self as *mut ::combo_box::ComboBox, v)
}
/// C++ method: <span style='color: green;'>```void QComboBox::setView(QAbstractItemView* itemView)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#setView">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the view to be used in the combobox popup to the given <i>itemView</i>. The combobox takes ownership of the view.</p>
/// <p>Note: If you want to use the convenience views (like <a href="http://doc.qt.io/qt-5/qlistwidget.html">QListWidget</a>, <a href="http://doc.qt.io/qt-5/qtablewidget.html">QTableWidget</a> or <a href="http://doc.qt.io/qt-5/qtreewidget.html">QTreeWidget</a>), make sure to call <a href="http://doc.qt.io/qt-5/qcombobox.html#setModel">setModel</a>() on the combobox with the convenience widgets model before calling this function.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#view">view</a>().</p></div>
pub unsafe fn set_view(&mut self, item_view: *mut ::abstract_item_view::AbstractItemView) {
::ffi::qt_widgets_c_QComboBox_setView(self as *mut ::combo_box::ComboBox, item_view)
}
/// C++ method: <span style='color: green;'>```virtual void QComboBox::showPopup()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#showPopup">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Displays the list of items in the combobox. If the list is empty then the no items will be shown.</p>
/// <p>If you reimplement this function to show a custom pop-up, make sure you call <a href="http://doc.qt.io/qt-5/qcombobox.html#hidePopup">hidePopup</a>() to reset the internal state.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#hidePopup">hidePopup</a>().</p></div>
pub fn show_popup(&mut self) {
unsafe { ::ffi::qt_widgets_c_QComboBox_showPopup(self as *mut ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```QComboBox::SizeAdjustPolicy QComboBox::sizeAdjustPolicy() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#sizeAdjustPolicy-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the policy describing how the size of the combobox changes when the content changes.</p>
/// <p>The default value is <a href="http://doc.qt.io/qt-5/qcombobox.html#SizeAdjustPolicy-enum">AdjustToContentsOnFirstShow</a>.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> SizeAdjustPolicy </td><td class="memItemRight bottomAlign"><span class="name"><b>sizeAdjustPolicy</b></span>() const</td></tr>
/// <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSizeAdjustPolicy</b></span>(SizeAdjustPolicy <i>policy</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#SizeAdjustPolicy-enum">SizeAdjustPolicy</a>.</p></div>
pub fn size_adjust_policy(&self) -> ::combo_box::SizeAdjustPolicy {
unsafe { ::ffi::qt_widgets_c_QComboBox_sizeAdjustPolicy(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```virtual QSize QComboBox::sizeHint() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#sizeHint">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reimplemented from <a href="http://doc.qt.io/qt-5/qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
/// <p>This implementation caches the size hint to avoid resizing when the contents change dynamically. To invalidate the cached value change the <a href="http://doc.qt.io/qt-5/qcombobox.html#sizeAdjustPolicy-prop">sizeAdjustPolicy</a>.</p></div>
pub fn size_hint(&self) -> ::qt_core::size::Size {
{
let mut object: ::qt_core::size::Size =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QComboBox_sizeHint_to_output(self as *const ::combo_box::ComboBox, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```static QString QComboBox::tr(const char* s, const char* c, int n)```</span>
///
///
pub unsafe fn tr(s: *const ::libc::c_char, c: *const ::libc::c_char, n: ::libc::c_int) -> ::qt_core::string::String {
{
let mut object: ::qt_core::string::String =
::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
::ffi::qt_widgets_c_QComboBox_tr_to_output(s, c, n, &mut object);
object
}
}
/// C++ method: <span style='color: green;'>```static QString QComboBox::trUtf8(const char* s, const char* c, int n)```</span>
///
///
pub unsafe fn tr_utf8(s: *const ::libc::c_char,
c: *const ::libc::c_char,
n: ::libc::c_int)
-> ::qt_core::string::String {
{
let mut object: ::qt_core::string::String =
::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
::ffi::qt_widgets_c_QComboBox_trUtf8_to_output(s, c, n, &mut object);
object
}
}
/// C++ method: <span style='color: green;'>```const QValidator* QComboBox::validator() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#validator">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the validator that is used to constrain text input for the combobox.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#setValidator">setValidator</a>() and <a href="http://doc.qt.io/qt-5/qcombobox.html#editable-prop">editable</a>.</p></div>
pub fn validator(&self) -> *const ::qt_gui::validator::Validator {
unsafe { ::ffi::qt_widgets_c_QComboBox_validator(self as *const ::combo_box::ComboBox) }
}
/// C++ method: <span style='color: green;'>```QAbstractItemView* QComboBox::view() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#view">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the list view used for the combobox popup.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qcombobox.html#setView">setView</a>().</p></div>
pub fn view(&self) -> *mut ::abstract_item_view::AbstractItemView {
unsafe { ::ffi::qt_widgets_c_QComboBox_view(self as *const ::combo_box::ComboBox) }
}
}
impl ::cpp_utils::CppDeletable for ::combo_box::ComboBox {
fn deleter() -> ::cpp_utils::Deleter<Self> {
::ffi::qt_widgets_c_QComboBox_delete
}
}
/// Types for accessing built-in Qt signals and slots present in this module
pub mod connection {
use ::cpp_utils::StaticCast;
/// Provides access to built-in Qt signals of `ComboBox`.
pub struct Signals<'a>(&'a ::combo_box::ComboBox);
/// Represents a built-in Qt signal `QComboBox::editTextChanged`.
///
/// An object of this type can be created from `ComboBox` with `object.signals().edit_text_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct EditTextChanged<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for EditTextChanged<'a> {
type Arguments = (&'static ::qt_core::string::String,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2editTextChanged(const QString&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for EditTextChanged<'a> {}
/// Represents a built-in Qt signal `QComboBox::highlighted`.
///
/// An object of this type can be created from `ComboBox` with `object.signals().highlighted_c_int()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct HighlightedCInt<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for HighlightedCInt<'a> {
type Arguments = (::libc::c_int,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2highlighted(int)\0"
}
}
impl<'a> ::qt_core::connection::Signal for HighlightedCInt<'a> {}
/// Represents a built-in Qt signal `QComboBox::highlighted`.
///
/// An object of this type can be created from `ComboBox` with `object.signals().highlighted_qt_core_string_ref()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct HighlightedQtCoreStringRef<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for HighlightedQtCoreStringRef<'a> {
type Arguments = (&'static ::qt_core::string::String,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2highlighted(const QString&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for HighlightedQtCoreStringRef<'a> {}
/// Represents a built-in Qt signal `QComboBox::customContextMenuRequested`.
///
/// An object of this type can be created from `ComboBox` with `object.signals().custom_context_menu_requested()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct CustomContextMenuRequested<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for CustomContextMenuRequested<'a> {
type Arguments = (&'static ::qt_core::point::Point,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2customContextMenuRequested(const QPoint&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for CustomContextMenuRequested<'a> {}
/// Represents a built-in Qt signal `QComboBox::windowIconChanged`.
///
/// An object of this type can be created from `ComboBox` with `object.signals().window_icon_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct WindowIconChanged<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for WindowIconChanged<'a> {
type Arguments = (&'static ::qt_gui::icon::Icon,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2windowIconChanged(const QIcon&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for WindowIconChanged<'a> {}
/// Represents a built-in Qt signal `QComboBox::windowIconTextChanged`.
///
/// An object of this type can be created from `ComboBox` with `object.signals().window_icon_text_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct WindowIconTextChanged<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for WindowIconTextChanged<'a> {
type Arguments = (&'static ::qt_core::string::String,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2windowIconTextChanged(const QString&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for WindowIconTextChanged<'a> {}
/// Represents a built-in Qt signal `QComboBox::currentTextChanged`.
///
/// An object of this type can be created from `ComboBox` with `object.signals().current_text_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct CurrentTextChanged<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for CurrentTextChanged<'a> {
type Arguments = (&'static ::qt_core::string::String,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2currentTextChanged(const QString&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for CurrentTextChanged<'a> {}
/// Represents a built-in Qt signal `QComboBox::currentIndexChanged`.
///
/// An object of this type can be created from `ComboBox` with `object.signals().current_index_changed_c_int()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct CurrentIndexChangedCInt<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for CurrentIndexChangedCInt<'a> {
type Arguments = (::libc::c_int,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2currentIndexChanged(int)\0"
}
}
impl<'a> ::qt_core::connection::Signal for CurrentIndexChangedCInt<'a> {}
/// Represents a built-in Qt signal `QComboBox::currentIndexChanged`.
///
/// An object of this type can be created from `ComboBox` with `object.signals().current_index_changed_qt_core_string_ref()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct CurrentIndexChangedQtCoreStringRef<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for CurrentIndexChangedQtCoreStringRef<'a> {
type Arguments = (&'static ::qt_core::string::String,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2currentIndexChanged(const QString&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for CurrentIndexChangedQtCoreStringRef<'a> {}
/// Represents a built-in Qt signal `QComboBox::windowTitleChanged`.
///
/// An object of this type can be created from `ComboBox` with `object.signals().window_title_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct WindowTitleChanged<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for WindowTitleChanged<'a> {
type Arguments = (&'static ::qt_core::string::String,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2windowTitleChanged(const QString&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for WindowTitleChanged<'a> {}
/// Represents a built-in Qt signal `QComboBox::activated`.
///
/// An object of this type can be created from `ComboBox` with `object.signals().activated_c_int()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct ActivatedCInt<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for ActivatedCInt<'a> {
type Arguments = (::libc::c_int,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2activated(int)\0"
}
}
impl<'a> ::qt_core::connection::Signal for ActivatedCInt<'a> {}
/// Represents a built-in Qt signal `QComboBox::activated`.
///
/// An object of this type can be created from `ComboBox` with `object.signals().activated_qt_core_string_ref()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct ActivatedQtCoreStringRef<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for ActivatedQtCoreStringRef<'a> {
type Arguments = (&'static ::qt_core::string::String,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2activated(const QString&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for ActivatedQtCoreStringRef<'a> {}
impl<'a> Signals<'a> {
/// Returns an object representing a built-in Qt signal `QComboBox::editTextChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn edit_text_changed(&self) -> EditTextChanged {
EditTextChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QComboBox::highlighted`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn highlighted_c_int(&self) -> HighlightedCInt {
HighlightedCInt(self.0)
}
/// Returns an object representing a built-in Qt signal `QComboBox::highlighted`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn highlighted_qt_core_string_ref(&self) -> HighlightedQtCoreStringRef {
HighlightedQtCoreStringRef(self.0)
}
/// Returns an object representing a built-in Qt signal `QComboBox::customContextMenuRequested`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn custom_context_menu_requested(&self) -> CustomContextMenuRequested {
CustomContextMenuRequested(self.0)
}
/// Returns an object representing a built-in Qt signal `QComboBox::windowIconChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn window_icon_changed(&self) -> WindowIconChanged {
WindowIconChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QComboBox::windowIconTextChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn window_icon_text_changed(&self) -> WindowIconTextChanged {
WindowIconTextChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QComboBox::currentTextChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn current_text_changed(&self) -> CurrentTextChanged {
CurrentTextChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QComboBox::currentIndexChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn current_index_changed_c_int(&self) -> CurrentIndexChangedCInt {
CurrentIndexChangedCInt(self.0)
}
/// Returns an object representing a built-in Qt signal `QComboBox::currentIndexChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn current_index_changed_qt_core_string_ref(&self) -> CurrentIndexChangedQtCoreStringRef {
CurrentIndexChangedQtCoreStringRef(self.0)
}
/// Returns an object representing a built-in Qt signal `QComboBox::windowTitleChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn window_title_changed(&self) -> WindowTitleChanged {
WindowTitleChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QComboBox::activated`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn activated_c_int(&self) -> ActivatedCInt {
ActivatedCInt(self.0)
}
/// Returns an object representing a built-in Qt signal `QComboBox::activated`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn activated_qt_core_string_ref(&self) -> ActivatedQtCoreStringRef {
ActivatedQtCoreStringRef(self.0)
}
}
/// Provides access to built-in Qt slots of `ComboBox`.
pub struct Slots<'a>(&'a ::combo_box::ComboBox);
/// Represents a built-in Qt slot `QComboBox::setStyleSheet`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().set_style_sheet()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct SetStyleSheet<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for SetStyleSheet<'a> {
type Arguments = (&'static ::qt_core::string::String,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1setStyleSheet(const QString&)\0"
}
}
/// Represents a built-in Qt slot `QComboBox::close`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().close()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct Close<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for Close<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1close()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::raise`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().raise()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct Raise<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for Raise<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1raise()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::setCurrentText`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().set_current_text()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct SetCurrentText<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for SetCurrentText<'a> {
type Arguments = (&'static ::qt_core::string::String,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1setCurrentText(const QString&)\0"
}
}
/// Represents a built-in Qt slot `QComboBox::hide`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().hide()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct Hide<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for Hide<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1hide()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::update`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().update()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct Update<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for Update<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1update()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::showFullScreen`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().show_full_screen()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct ShowFullScreen<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for ShowFullScreen<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1showFullScreen()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::setVisible`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().set_visible()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct SetVisible<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for SetVisible<'a> {
type Arguments = (bool,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1setVisible(bool)\0"
}
}
/// Represents a built-in Qt slot `QComboBox::setWindowTitle`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().set_window_title()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct SetWindowTitle<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for SetWindowTitle<'a> {
type Arguments = (&'static ::qt_core::string::String,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1setWindowTitle(const QString&)\0"
}
}
/// Represents a built-in Qt slot `QComboBox::setDisabled`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().set_disabled()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct SetDisabled<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for SetDisabled<'a> {
type Arguments = (bool,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1setDisabled(bool)\0"
}
}
/// Represents a built-in Qt slot `QComboBox::showMinimized`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().show_minimized()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct ShowMinimized<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for ShowMinimized<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1showMinimized()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::setCurrentIndex`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().set_current_index()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct SetCurrentIndex<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for SetCurrentIndex<'a> {
type Arguments = (::libc::c_int,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1setCurrentIndex(int)\0"
}
}
/// Represents a built-in Qt slot `QComboBox::setHidden`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().set_hidden()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct SetHidden<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for SetHidden<'a> {
type Arguments = (bool,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1setHidden(bool)\0"
}
}
/// Represents a built-in Qt slot `QComboBox::setFocus`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().set_focus()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct SetFocus<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for SetFocus<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1setFocus()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::setWindowModified`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().set_window_modified()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct SetWindowModified<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for SetWindowModified<'a> {
type Arguments = (bool,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1setWindowModified(bool)\0"
}
}
/// Represents a built-in Qt slot `QComboBox::setEnabled`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().set_enabled()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct SetEnabled<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for SetEnabled<'a> {
type Arguments = (bool,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1setEnabled(bool)\0"
}
}
/// Represents a built-in Qt slot `QComboBox::showNormal`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().show_normal()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct ShowNormal<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for ShowNormal<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1showNormal()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::updateMicroFocus`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().update_micro_focus()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct UpdateMicroFocus<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for UpdateMicroFocus<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1updateMicroFocus()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::setEditText`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().set_edit_text()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct SetEditText<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for SetEditText<'a> {
type Arguments = (&'static ::qt_core::string::String,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1setEditText(const QString&)\0"
}
}
/// Represents a built-in Qt slot `QComboBox::repaint`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().repaint()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct Repaint<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for Repaint<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1repaint()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::clearEditText`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().clear_edit_text()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct ClearEditText<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for ClearEditText<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1clearEditText()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::showMaximized`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().show_maximized()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct ShowMaximized<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for ShowMaximized<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1showMaximized()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::show`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().show()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct Show<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for Show<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1show()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::clear`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().clear()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct Clear<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for Clear<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1clear()\0"
}
}
/// Represents a built-in Qt slot `QComboBox::lower`.
///
/// An object of this type can be created from `ComboBox` with `object.slots().lower()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `ComboBox` object.
pub struct Lower<'a>(&'a ::combo_box::ComboBox);
impl<'a> ::qt_core::connection::Receiver for Lower<'a> {
type Arguments = ();
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1lower()\0"
}
}
impl<'a> Slots<'a> {
/// Returns an object representing a built-in Qt slot `QComboBox::setStyleSheet`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn set_style_sheet(&self) -> SetStyleSheet {
SetStyleSheet(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::close`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn close(&self) -> Close {
Close(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::raise`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn raise(&self) -> Raise {
Raise(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::setCurrentText`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn set_current_text(&self) -> SetCurrentText {
SetCurrentText(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::hide`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn hide(&self) -> Hide {
Hide(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::update`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn update(&self) -> Update {
Update(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::showFullScreen`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn show_full_screen(&self) -> ShowFullScreen {
ShowFullScreen(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::setVisible`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn set_visible(&self) -> SetVisible {
SetVisible(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::setWindowTitle`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn set_window_title(&self) -> SetWindowTitle {
SetWindowTitle(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::setDisabled`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn set_disabled(&self) -> SetDisabled {
SetDisabled(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::showMinimized`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn show_minimized(&self) -> ShowMinimized {
ShowMinimized(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::setCurrentIndex`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn set_current_index(&self) -> SetCurrentIndex {
SetCurrentIndex(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::setHidden`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn set_hidden(&self) -> SetHidden {
SetHidden(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::setFocus`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn set_focus(&self) -> SetFocus {
SetFocus(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::setWindowModified`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn set_window_modified(&self) -> SetWindowModified {
SetWindowModified(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::setEnabled`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn set_enabled(&self) -> SetEnabled {
SetEnabled(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::showNormal`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn show_normal(&self) -> ShowNormal {
ShowNormal(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::updateMicroFocus`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn update_micro_focus(&self) -> UpdateMicroFocus {
UpdateMicroFocus(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::setEditText`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn set_edit_text(&self) -> SetEditText {
SetEditText(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::repaint`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn repaint(&self) -> Repaint {
Repaint(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::clearEditText`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn clear_edit_text(&self) -> ClearEditText {
ClearEditText(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::showMaximized`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn show_maximized(&self) -> ShowMaximized {
ShowMaximized(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::show`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn show(&self) -> Show {
Show(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::clear`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn clear(&self) -> Clear {
Clear(self.0)
}
/// Returns an object representing a built-in Qt slot `QComboBox::lower`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn lower(&self) -> Lower {
Lower(self.0)
}
}
impl ::combo_box::ComboBox {
/// Provides access to built-in Qt signals of this type
pub fn signals(&self) -> Signals {
Signals(self)
}
/// Provides access to built-in Qt slots of this type
pub fn slots(&self) -> Slots {
Slots(self)
}
}
}
/// C++ type: <span style='color: green;'>```QComboBox::InsertPolicy```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#InsertPolicy-enum">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This enum specifies what the <a href="http://doc.qt.io/qt-5/qcombobox.html">QComboBox</a> should do when a new string is entered by the user.</p></div>
#[derive(Debug, PartialEq, Eq, Clone)]
#[repr(C)]
pub enum InsertPolicy {
/// The string will not be inserted into the combobox. (C++ enum variant: <span style='color: green;'>```NoInsert = 0```</span>)
NoInsert = 0,
/// The string will be inserted as the first item in the combobox. (C++ enum variant: <span style='color: green;'>```InsertAtTop = 1```</span>)
InsertAtTop = 1,
/// The current item will be <i>replaced</i> by the string. (C++ enum variant: <span style='color: green;'>```InsertAtCurrent = 2```</span>)
InsertAtCurrent = 2,
/// The string will be inserted after the last item in the combobox. (C++ enum variant: <span style='color: green;'>```InsertAtBottom = 3```</span>)
InsertAtBottom = 3,
/// The string is inserted after the current item in the combobox. (C++ enum variant: <span style='color: green;'>```InsertAfterCurrent = 4```</span>)
InsertAfterCurrent = 4,
/// The string is inserted before the current item in the combobox. (C++ enum variant: <span style='color: green;'>```InsertBeforeCurrent = 5```</span>)
InsertBeforeCurrent = 5,
/// The string is inserted in the alphabetic order in the combobox. (C++ enum variant: <span style='color: green;'>```InsertAlphabetically = 6```</span>)
InsertAlphabetically = 6,
}
/// C++ type: <span style='color: green;'>```QComboBox::SizeAdjustPolicy```</span>
///
/// <a href="http://doc.qt.io/qt-5/qcombobox.html#SizeAdjustPolicy-enum">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This enum specifies how the size hint of the <a href="http://doc.qt.io/qt-5/qcombobox.html">QComboBox</a> should adjust when new content is added or content changes.</p></div>
#[derive(Debug, PartialEq, Eq, Clone)]
#[repr(C)]
pub enum SizeAdjustPolicy {
/// The combobox will always adjust to the contents (C++ enum variant: <span style='color: green;'>```AdjustToContents = 0```</span>)
Contents = 0,
/// The combobox will adjust to its contents the first time it is shown. (C++ enum variant: <span style='color: green;'>```AdjustToContentsOnFirstShow = 1```</span>)
ContentsOnFirstShow = 1,
/// Use AdjustToContents or AdjustToContentsOnFirstShow instead. (C++ enum variant: <span style='color: green;'>```AdjustToMinimumContentsLength = 2```</span>)
MinimumContentsLength = 2,
/// The combobox will adjust to <a href="http://doc.qt.io/qt-5/qcombobox.html#minimumContentsLength-prop">minimumContentsLength</a> plus space for an icon. For performance reasons use this policy on large models. (C++ enum variant: <span style='color: green;'>```AdjustToMinimumContentsLengthWithIcon = 3```</span>)
MinimumContentsLengthWithIcon = 3,
}
impl ::cpp_utils::DynamicCast<::combo_box::ComboBox> for ::widget::Widget {
fn dynamic_cast_mut(&mut self) -> ::std::option::Option<&mut ::combo_box::ComboBox> {
let ffi_result =
unsafe { ::ffi::qt_widgets_c_QComboBox_G_dynamic_cast_QComboBox_ptr(self as *mut ::widget::Widget) };
unsafe { ffi_result.as_mut() }
}
fn dynamic_cast(&self) -> ::std::option::Option<&::combo_box::ComboBox> {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QComboBox_G_dynamic_cast_QComboBox_ptr(self as *const ::widget::Widget as *mut ::widget::Widget) };
unsafe { ffi_result.as_ref() }
}
}
impl ::cpp_utils::StaticCast<::qt_core::object::Object> for ::combo_box::ComboBox {
fn static_cast_mut(&mut self) -> &mut ::qt_core::object::Object {
let ffi_result =
unsafe { ::ffi::qt_widgets_c_QComboBox_G_static_cast_QObject_ptr(self as *mut ::combo_box::ComboBox) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
fn static_cast(&self) -> &::qt_core::object::Object {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QComboBox_G_static_cast_QObject_ptr(self as *const ::combo_box::ComboBox as *mut ::combo_box::ComboBox) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::StaticCast<::qt_gui::paint_device::PaintDevice> for ::combo_box::ComboBox {
fn static_cast_mut(&mut self) -> &mut ::qt_gui::paint_device::PaintDevice {
let ffi_result =
unsafe { ::ffi::qt_widgets_c_QComboBox_G_static_cast_QPaintDevice_ptr(self as *mut ::combo_box::ComboBox) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
fn static_cast(&self) -> &::qt_gui::paint_device::PaintDevice {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QComboBox_G_static_cast_QPaintDevice_ptr(self as *const ::combo_box::ComboBox as *mut ::combo_box::ComboBox) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::StaticCast<::widget::Widget> for ::combo_box::ComboBox {
fn static_cast_mut(&mut self) -> &mut ::widget::Widget {
let ffi_result =
unsafe { ::ffi::qt_widgets_c_QComboBox_G_static_cast_QWidget_ptr(self as *mut ::combo_box::ComboBox) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
fn static_cast(&self) -> &::widget::Widget {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QComboBox_G_static_cast_QWidget_ptr(self as *const ::combo_box::ComboBox as *mut ::combo_box::ComboBox) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::UnsafeStaticCast<::combo_box::ComboBox> for ::qt_core::object::Object {
unsafe fn static_cast_mut(&mut self) -> &mut ::combo_box::ComboBox {
let ffi_result =
::ffi::qt_widgets_c_QComboBox_G_static_cast_QComboBox_ptr_QObject(self as *mut ::qt_core::object::Object);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
}
unsafe fn static_cast(&self) -> &::combo_box::ComboBox {
let ffi_result = ::ffi::qt_widgets_c_QComboBox_G_static_cast_QComboBox_ptr_QObject(self as *const ::qt_core::object::Object as *mut ::qt_core::object::Object);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::UnsafeStaticCast<::combo_box::ComboBox> for ::qt_gui::paint_device::PaintDevice {
unsafe fn static_cast_mut(&mut self) -> &mut ::combo_box::ComboBox {
let ffi_result = ::ffi::qt_widgets_c_QComboBox_G_static_cast_QComboBox_ptr_QPaintDevice(self as *mut ::qt_gui::paint_device::PaintDevice);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
}
unsafe fn static_cast(&self) -> &::combo_box::ComboBox {
let ffi_result = ::ffi::qt_widgets_c_QComboBox_G_static_cast_QComboBox_ptr_QPaintDevice(self as *const ::qt_gui::paint_device::PaintDevice as *mut ::qt_gui::paint_device::PaintDevice);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::UnsafeStaticCast<::combo_box::ComboBox> for ::widget::Widget {
unsafe fn static_cast_mut(&mut self) -> &mut ::combo_box::ComboBox {
let ffi_result = ::ffi::qt_widgets_c_QComboBox_G_static_cast_QComboBox_ptr_QWidget(self as *mut ::widget::Widget);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
}
unsafe fn static_cast(&self) -> &::combo_box::ComboBox {
let ffi_result = ::ffi::qt_widgets_c_QComboBox_G_static_cast_QComboBox_ptr_QWidget(self as *const ::widget::Widget as *mut ::widget::Widget);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::Deref for ::combo_box::ComboBox {
type Target = ::widget::Widget;
fn deref(&self) -> &::widget::Widget {
let ffi_result = unsafe { ::ffi::qt_widgets_c_QComboBox_G_static_cast_QWidget_ptr(self as *const ::combo_box::ComboBox as *mut ::combo_box::ComboBox) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for ::combo_box::ComboBox {
fn deref_mut(&mut self) -> &mut ::widget::Widget {
let ffi_result =
unsafe { ::ffi::qt_widgets_c_QComboBox_G_static_cast_QWidget_ptr(self as *mut ::combo_box::ComboBox) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
/// Types for emulating overloading for overloaded functions in this module
pub mod overloading {
/// This trait represents a set of arguments accepted by [ComboBox::add_item](../struct.ComboBox.html#method.add_item) method.
pub trait ComboBoxAddItemArgs<'largs> {
fn exec(self, original_self: &'largs mut ::combo_box::ComboBox) -> ();
}
impl<'largs> ComboBoxAddItemArgs<'largs> for (&'largs ::qt_gui::icon::Icon, &'largs ::qt_core::string::String) {
fn exec(self, original_self: &'largs mut ::combo_box::ComboBox) -> () {
let icon = self.0;
let text = self.1;
unsafe {
::ffi::qt_widgets_c_QComboBox_addItem_icon_text(original_self as *mut ::combo_box::ComboBox,
icon as *const ::qt_gui::icon::Icon,
text as *const ::qt_core::string::String)
}
}
}
impl<'largs> ComboBoxAddItemArgs<'largs>
for (&'largs ::qt_gui::icon::Icon, &'largs ::qt_core::string::String, &'largs ::qt_core::variant::Variant) {
fn exec(self, original_self: &'largs mut ::combo_box::ComboBox) -> () {
let icon = self.0;
let text = self.1;
let user_data = self.2;
unsafe {
::ffi::qt_widgets_c_QComboBox_addItem_icon_text_userData(original_self as *mut ::combo_box::ComboBox,
icon as *const ::qt_gui::icon::Icon,
text as *const ::qt_core::string::String,
user_data as *const ::qt_core::variant::Variant)
}
}
}
impl<'largs> ComboBoxAddItemArgs<'largs> for &'largs ::qt_core::string::String {
fn exec(self, original_self: &'largs mut ::combo_box::ComboBox) -> () {
let text = self;
unsafe {
::ffi::qt_widgets_c_QComboBox_addItem_text(original_self as *mut ::combo_box::ComboBox,
text as *const ::qt_core::string::String)
}
}
}
impl<'largs> ComboBoxAddItemArgs<'largs> for (&'largs ::qt_core::string::String, &'largs ::qt_core::variant::Variant) {
fn exec(self, original_self: &'largs mut ::combo_box::ComboBox) -> () {
let text = self.0;
let user_data = self.1;
unsafe {
::ffi::qt_widgets_c_QComboBox_addItem_text_userData(original_self as *mut ::combo_box::ComboBox,
text as *const ::qt_core::string::String,
user_data as *const ::qt_core::variant::Variant)
}
}
}
/// This trait represents a set of arguments accepted by [ComboBox::current_data](../struct.ComboBox.html#method.current_data) method.
pub trait ComboBoxCurrentDataArgs<'largs> {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::qt_core::variant::Variant;
}
impl<'largs> ComboBoxCurrentDataArgs<'largs> for () {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::qt_core::variant::Variant {
{
let mut object: ::qt_core::variant::Variant =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QComboBox_currentData_to_output_no_args(original_self as *const ::combo_box::ComboBox,
&mut object);
}
object
}
}
}
impl<'largs> ComboBoxCurrentDataArgs<'largs> for ::libc::c_int {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::qt_core::variant::Variant {
let role = self;
{
let mut object: ::qt_core::variant::Variant =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QComboBox_currentData_to_output_role(original_self as *const ::combo_box::ComboBox,
role,
&mut object);
}
object
}
}
}
/// This trait represents a set of arguments accepted by [ComboBox::find_data](../struct.ComboBox.html#method.find_data) method.
pub trait ComboBoxFindDataArgs<'largs> {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::libc::c_int;
}
impl<'largs> ComboBoxFindDataArgs<'largs> for &'largs ::qt_core::variant::Variant {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::libc::c_int {
let data = self;
unsafe {
::ffi::qt_widgets_c_QComboBox_findData_data(original_self as *const ::combo_box::ComboBox,
data as *const ::qt_core::variant::Variant)
}
}
}
impl<'largs> ComboBoxFindDataArgs<'largs> for (&'largs ::qt_core::variant::Variant, ::libc::c_int) {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::libc::c_int {
let data = self.0;
let role = self.1;
unsafe {
::ffi::qt_widgets_c_QComboBox_findData_data_role(original_self as *const ::combo_box::ComboBox,
data as *const ::qt_core::variant::Variant,
role)
}
}
}
impl<'largs> ComboBoxFindDataArgs<'largs>
for (&'largs ::qt_core::variant::Variant, ::libc::c_int, ::qt_core::flags::Flags<::qt_core::qt::MatchFlag>) {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::libc::c_int {
let data = self.0;
let role = self.1;
let flags = self.2;
unsafe {
::ffi::qt_widgets_c_QComboBox_findData_data_role_flags(original_self as *const ::combo_box::ComboBox,
data as *const ::qt_core::variant::Variant,
role,
flags.to_int() as ::libc::c_uint)
}
}
}
/// This trait represents a set of arguments accepted by [ComboBox::find_text](../struct.ComboBox.html#method.find_text) method.
pub trait ComboBoxFindTextArgs<'largs> {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::libc::c_int;
}
impl<'largs> ComboBoxFindTextArgs<'largs> for &'largs ::qt_core::string::String {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::libc::c_int {
let text = self;
unsafe {
::ffi::qt_widgets_c_QComboBox_findText_text(original_self as *const ::combo_box::ComboBox,
text as *const ::qt_core::string::String)
}
}
}
impl<'largs> ComboBoxFindTextArgs<'largs>
for (&'largs ::qt_core::string::String, ::qt_core::flags::Flags<::qt_core::qt::MatchFlag>) {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::libc::c_int {
let text = self.0;
let flags = self.1;
unsafe {
::ffi::qt_widgets_c_QComboBox_findText_text_flags(original_self as *const ::combo_box::ComboBox,
text as *const ::qt_core::string::String,
flags.to_int() as ::libc::c_uint)
}
}
}
/// This trait represents a set of arguments accepted by [ComboBox::input_method_query](../struct.ComboBox.html#method.input_method_query) method.
pub trait ComboBoxInputMethodQueryArgs<'largs> {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::qt_core::variant::Variant;
}
impl<'largs> ComboBoxInputMethodQueryArgs<'largs> for ::qt_core::qt::InputMethodQuery {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::qt_core::variant::Variant {
let arg1 = self;
{
let mut object: ::qt_core::variant::Variant =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QComboBox_inputMethodQuery_to_output_arg1(original_self as *const ::combo_box::ComboBox, arg1, &mut object);
}
object
}
}
}
impl<'largs> ComboBoxInputMethodQueryArgs<'largs>
for (::qt_core::qt::InputMethodQuery, &'largs ::qt_core::variant::Variant) {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::qt_core::variant::Variant {
let query = self.0;
let argument = self.1;
{
let mut object: ::qt_core::variant::Variant =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QComboBox_inputMethodQuery_to_output_query_argument(original_self as *const ::combo_box::ComboBox, query, argument as *const ::qt_core::variant::Variant, &mut object);
}
object
}
}
}
/// This trait represents a set of arguments accepted by [ComboBox::insert_item](../struct.ComboBox.html#method.insert_item) method.
pub trait ComboBoxInsertItemArgs<'largs> {
fn exec(self, original_self: &'largs mut ::combo_box::ComboBox) -> ();
}
impl<'largs> ComboBoxInsertItemArgs<'largs>
for (::libc::c_int, &'largs ::qt_gui::icon::Icon, &'largs ::qt_core::string::String) {
fn exec(self, original_self: &'largs mut ::combo_box::ComboBox) -> () {
let index = self.0;
let icon = self.1;
let text = self.2;
unsafe {
::ffi::qt_widgets_c_QComboBox_insertItem_index_icon_text(original_self as *mut ::combo_box::ComboBox,
index,
icon as *const ::qt_gui::icon::Icon,
text as *const ::qt_core::string::String)
}
}
}
impl<'largs> ComboBoxInsertItemArgs<'largs>
for (::libc::c_int,
&'largs ::qt_gui::icon::Icon,
&'largs ::qt_core::string::String,
&'largs ::qt_core::variant::Variant) {
fn exec(self, original_self: &'largs mut ::combo_box::ComboBox) -> () {
let index = self.0;
let icon = self.1;
let text = self.2;
let user_data = self.3;
unsafe { ::ffi::qt_widgets_c_QComboBox_insertItem_index_icon_text_userData(original_self as *mut ::combo_box::ComboBox, index, icon as *const ::qt_gui::icon::Icon, text as *const ::qt_core::string::String, user_data as *const ::qt_core::variant::Variant) }
}
}
impl<'largs> ComboBoxInsertItemArgs<'largs> for (::libc::c_int, &'largs ::qt_core::string::String) {
fn exec(self, original_self: &'largs mut ::combo_box::ComboBox) -> () {
let index = self.0;
let text = self.1;
unsafe {
::ffi::qt_widgets_c_QComboBox_insertItem_index_text(original_self as *mut ::combo_box::ComboBox,
index,
text as *const ::qt_core::string::String)
}
}
}
impl<'largs> ComboBoxInsertItemArgs<'largs>
for (::libc::c_int, &'largs ::qt_core::string::String, &'largs ::qt_core::variant::Variant) {
fn exec(self, original_self: &'largs mut ::combo_box::ComboBox) -> () {
let index = self.0;
let text = self.1;
let user_data = self.2;
unsafe {
::ffi::qt_widgets_c_QComboBox_insertItem_index_text_userData(original_self as *mut ::combo_box::ComboBox,
index,
text as *const ::qt_core::string::String,
user_data as *const ::qt_core::variant::Variant)
}
}
}
/// This trait represents a set of arguments accepted by [ComboBox::item_data](../struct.ComboBox.html#method.item_data) method.
pub trait ComboBoxItemDataArgs<'largs> {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::qt_core::variant::Variant;
}
impl<'largs> ComboBoxItemDataArgs<'largs> for ::libc::c_int {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::qt_core::variant::Variant {
let index = self;
{
let mut object: ::qt_core::variant::Variant =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QComboBox_itemData_to_output_index(original_self as *const ::combo_box::ComboBox,
index,
&mut object);
}
object
}
}
}
impl<'largs> ComboBoxItemDataArgs<'largs> for (::libc::c_int, ::libc::c_int) {
fn exec(self, original_self: &'largs ::combo_box::ComboBox) -> ::qt_core::variant::Variant {
let index = self.0;
let role = self.1;
{
let mut object: ::qt_core::variant::Variant =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_widgets_c_QComboBox_itemData_to_output_index_role(original_self as *const ::combo_box::ComboBox,
index,
role,
&mut object);
}
object
}
}
}
/// This trait represents a set of arguments accepted by [ComboBox::set_item_data](../struct.ComboBox.html#method.set_item_data) method.
pub trait ComboBoxSetItemDataArgs<'largs> {
fn exec(self, original_self: &'largs mut ::combo_box::ComboBox) -> ();
}
impl<'largs> ComboBoxSetItemDataArgs<'largs> for (::libc::c_int, &'largs ::qt_core::variant::Variant) {
fn exec(self, original_self: &'largs mut ::combo_box::ComboBox) -> () {
let index = self.0;
let value = self.1;
unsafe {
::ffi::qt_widgets_c_QComboBox_setItemData_index_value(original_self as *mut ::combo_box::ComboBox,
index,
value as *const ::qt_core::variant::Variant)
}
}
}
impl<'largs> ComboBoxSetItemDataArgs<'largs> for (::libc::c_int, &'largs ::qt_core::variant::Variant, ::libc::c_int) {
fn exec(self, original_self: &'largs mut ::combo_box::ComboBox) -> () {
let index = self.0;
let value = self.1;
let role = self.2;
unsafe {
::ffi::qt_widgets_c_QComboBox_setItemData_index_value_role(original_self as *mut ::combo_box::ComboBox,
index,
value as *const ::qt_core::variant::Variant,
role)
}
}
}
}