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
|
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Object : GLib.Object {
public Object (IntPtr raw) : base(raw) {}
protected Object() : base(IntPtr.Zero)
{
CreateNativeObject (new string [0], new GLib.Value [0]);
}
[GLib.Property ("atk_object_name_property_name")]
public string AtkObjectNamePropertyName {
get {
GLib.Value val = GetProperty ("atk_object_name_property_name");
string ret = (string) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("atk_object_name_property_name", val);
val.Dispose ();
}
}
[GLib.Property ("atk_object_name_property_description")]
public string AtkObjectNamePropertyDescription {
get {
GLib.Value val = GetProperty ("atk_object_name_property_description");
string ret = (string) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("atk_object_name_property_description", val);
val.Dispose ();
}
}
[GLib.Property ("atk_object_name_property_parent")]
public Atk.Object AtkObjectNamePropertyParent {
get {
GLib.Value val = GetProperty ("atk_object_name_property_parent");
Atk.Object ret = (Atk.Object) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("atk_object_name_property_parent", val);
val.Dispose ();
}
}
[GLib.Property ("atk_object_name_property_value")]
public double AtkObjectNamePropertyValue {
get {
GLib.Value val = GetProperty ("atk_object_name_property_value");
double ret = (double) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("atk_object_name_property_value", val);
val.Dispose ();
}
}
[GLib.Property ("atk_object_name_property_role")]
public int AtkObjectNamePropertyRole {
get {
GLib.Value val = GetProperty ("atk_object_name_property_role");
int ret = (int) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("atk_object_name_property_role", val);
val.Dispose ();
}
}
[GLib.Property ("atk_object_name_property_component_layer")]
public int AtkObjectNamePropertyComponentLayer {
get {
GLib.Value val = GetProperty ("atk_object_name_property_component_layer");
int ret = (int) val;
val.Dispose ();
return ret;
}
}
[GLib.Property ("atk_object_name_property_component_mdi_zorder")]
public int AtkObjectNamePropertyComponentMdiZorder {
get {
GLib.Value val = GetProperty ("atk_object_name_property_component_mdi_zorder");
int ret = (int) val;
val.Dispose ();
return ret;
}
}
[GLib.Property ("atk_object_name_property_table_caption")]
public string AtkObjectNamePropertyTableCaption {
get {
GLib.Value val = GetProperty ("atk_object_name_property_table_caption");
string ret = (string) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("atk_object_name_property_table_caption", val);
val.Dispose ();
}
}
[GLib.Property ("atk_object_name_property_table_column_header")]
public Atk.Object AtkObjectNamePropertyTableColumnHeader {
get {
GLib.Value val = GetProperty ("atk_object_name_property_table_column_header");
Atk.Object ret = (Atk.Object) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("atk_object_name_property_table_column_header", val);
val.Dispose ();
}
}
[GLib.Property ("atk_object_name_property_table_column_description")]
public string AtkObjectNamePropertyTableColumnDescription {
get {
GLib.Value val = GetProperty ("atk_object_name_property_table_column_description");
string ret = (string) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("atk_object_name_property_table_column_description", val);
val.Dispose ();
}
}
[GLib.Property ("atk_object_name_property_table_row_header")]
public Atk.Object AtkObjectNamePropertyTableRowHeader {
get {
GLib.Value val = GetProperty ("atk_object_name_property_table_row_header");
Atk.Object ret = (Atk.Object) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("atk_object_name_property_table_row_header", val);
val.Dispose ();
}
}
[GLib.Property ("atk_object_name_property_table_row_description")]
public string AtkObjectNamePropertyTableRowDescription {
get {
GLib.Value val = GetProperty ("atk_object_name_property_table_row_description");
string ret = (string) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("atk_object_name_property_table_row_description", val);
val.Dispose ();
}
}
[GLib.Property ("atk_object_name_property_table_summary")]
public Atk.Object AtkObjectNamePropertyTableSummary {
get {
GLib.Value val = GetProperty ("atk_object_name_property_table_summary");
Atk.Object ret = (Atk.Object) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("atk_object_name_property_table_summary", val);
val.Dispose ();
}
}
[GLib.Property ("atk_object_name_property_table_caption_object")]
public Atk.Object AtkObjectNamePropertyTableCaptionObject {
get {
GLib.Value val = GetProperty ("atk_object_name_property_table_caption_object");
Atk.Object ret = (Atk.Object) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("atk_object_name_property_table_caption_object", val);
val.Dispose ();
}
}
[GLib.Property ("atk_object_name_property_hypertext_num_links")]
public int AtkObjectNamePropertyHypertextNumLinks {
get {
GLib.Value val = GetProperty ("atk_object_name_property_hypertext_num_links");
int ret = (int) val;
val.Dispose ();
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_object_get_description(IntPtr raw);
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void atk_object_set_description(IntPtr raw, IntPtr description);
public string Description {
get {
IntPtr raw_ret = atk_object_get_description(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
set {
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
atk_object_set_description(Handle, native_value);
GLib.Marshaller.Free (native_value);
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_object_get_name(IntPtr raw);
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void atk_object_set_name(IntPtr raw, IntPtr name);
public string Name {
get {
IntPtr raw_ret = atk_object_get_name(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
set {
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
atk_object_set_name(Handle, native_value);
GLib.Marshaller.Free (native_value);
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int atk_object_get_role(IntPtr raw);
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void atk_object_set_role(IntPtr raw, int role);
public Atk.Role Role {
get {
int raw_ret = atk_object_get_role(Handle);
Atk.Role ret = (Atk.Role) raw_ret;
return ret;
}
set {
atk_object_set_role(Handle, (int) value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ActiveDescendantChangedSignalDelegate (IntPtr inst, IntPtr arg0, IntPtr gch);
static void ActiveDescendantChangedSignalCallback (IntPtr inst, IntPtr arg0, IntPtr gch)
{
Atk.ActiveDescendantChangedArgs args = new Atk.ActiveDescendantChangedArgs ();
try {
GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
if (sig == null)
throw new Exception("Unknown signal GC handle received " + gch);
args.Args = new object[1];
args.Args[0] = arg0;
Atk.ActiveDescendantChangedHandler handler = (Atk.ActiveDescendantChangedHandler) sig.Handler;
handler (GLib.Object.GetObject (inst), args);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.Signal("active_descendant_changed")]
public event Atk.ActiveDescendantChangedHandler ActiveDescendantChanged {
add {
this.AddSignalHandler ("active_descendant_changed", value, new ActiveDescendantChangedSignalDelegate(ActiveDescendantChangedSignalCallback));
}
remove {
this.RemoveSignalHandler ("active_descendant_changed", value);
}
}
[GLib.Signal("visible_data_changed")]
public event System.EventHandler VisibleDataChanged {
add {
this.AddSignalHandler ("visible_data_changed", value);
}
remove {
this.RemoveSignalHandler ("visible_data_changed", value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ChildrenChangedSignalDelegate (IntPtr inst, uint arg0, IntPtr arg1, IntPtr gch);
static void ChildrenChangedSignalCallback (IntPtr inst, uint arg0, IntPtr arg1, IntPtr gch)
{
Atk.ChildrenChangedArgs args = new Atk.ChildrenChangedArgs ();
try {
GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
if (sig == null)
throw new Exception("Unknown signal GC handle received " + gch);
args.Args = new object[2];
args.Args[0] = arg0;
args.Args[1] = arg1;
Atk.ChildrenChangedHandler handler = (Atk.ChildrenChangedHandler) sig.Handler;
handler (GLib.Object.GetObject (inst), args);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.Signal("children_changed")]
public event Atk.ChildrenChangedHandler ChildrenChanged {
add {
this.AddSignalHandler ("children_changed", value, new ChildrenChangedSignalDelegate(ChildrenChangedSignalCallback));
}
remove {
this.RemoveSignalHandler ("children_changed", value);
}
}
[GLib.Signal("state_change")]
public event Atk.StateChangeHandler StateChange {
add {
this.AddSignalHandler ("state_change", value, typeof (Atk.StateChangeArgs));
}
remove {
this.RemoveSignalHandler ("state_change", value);
}
}
[GLib.Signal("focus_event")]
public event Atk.FocusEventHandler FocusEvent {
add {
this.AddSignalHandler ("focus_event", value, typeof (Atk.FocusEventArgs));
}
remove {
this.RemoveSignalHandler ("focus_event", value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void PropertyChangeSignalDelegate (IntPtr inst, IntPtr arg0, IntPtr gch);
static void PropertyChangeSignalCallback (IntPtr inst, IntPtr arg0, IntPtr gch)
{
Atk.PropertyChangeArgs args = new Atk.PropertyChangeArgs ();
try {
GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
if (sig == null)
throw new Exception("Unknown signal GC handle received " + gch);
args.Args = new object[1];
args.Args[0] = Atk.PropertyValues.New (arg0);
Atk.PropertyChangeEventHandler handler = (Atk.PropertyChangeEventHandler) sig.Handler;
handler (GLib.Object.GetObject (inst), args);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.Signal("property_change")]
public event Atk.PropertyChangeEventHandler PropertyChange {
add {
this.AddSignalHandler ("property_change", value, new PropertyChangeSignalDelegate(PropertyChangeSignalCallback));
}
remove {
this.RemoveSignalHandler ("property_change", value);
}
}
static GetNameNativeDelegate GetName_cb_delegate;
static GetNameNativeDelegate GetNameVMCallback {
get {
if (GetName_cb_delegate == null)
GetName_cb_delegate = new GetNameNativeDelegate (GetName_cb);
return GetName_cb_delegate;
}
}
static void OverrideGetName (GLib.GType gtype)
{
OverrideGetName (gtype, GetNameVMCallback);
}
static void OverrideGetName (GLib.GType gtype, GetNameNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_name"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetNameNativeDelegate (IntPtr inst);
static IntPtr GetName_cb (IntPtr inst)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
string __result;
__result = __obj.OnGetName ();
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideGetName")]
protected virtual string OnGetName ()
{
return InternalGetName ();
}
private string InternalGetName ()
{
GetNameNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_name"));
unmanaged = (GetNameNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetNameNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle);
return GLib.Marshaller.PtrToStringGFree(__result);
}
static GetDescriptionNativeDelegate GetDescription_cb_delegate;
static GetDescriptionNativeDelegate GetDescriptionVMCallback {
get {
if (GetDescription_cb_delegate == null)
GetDescription_cb_delegate = new GetDescriptionNativeDelegate (GetDescription_cb);
return GetDescription_cb_delegate;
}
}
static void OverrideGetDescription (GLib.GType gtype)
{
OverrideGetDescription (gtype, GetDescriptionVMCallback);
}
static void OverrideGetDescription (GLib.GType gtype, GetDescriptionNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_description"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetDescriptionNativeDelegate (IntPtr inst);
static IntPtr GetDescription_cb (IntPtr inst)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
string __result;
__result = __obj.OnGetDescription ();
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideGetDescription")]
protected virtual string OnGetDescription ()
{
return InternalGetDescription ();
}
private string InternalGetDescription ()
{
GetDescriptionNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_description"));
unmanaged = (GetDescriptionNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetDescriptionNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle);
return GLib.Marshaller.PtrToStringGFree(__result);
}
static GetParentNativeDelegate GetParent_cb_delegate;
static GetParentNativeDelegate GetParentVMCallback {
get {
if (GetParent_cb_delegate == null)
GetParent_cb_delegate = new GetParentNativeDelegate (GetParent_cb);
return GetParent_cb_delegate;
}
}
static void OverrideGetParent (GLib.GType gtype)
{
OverrideGetParent (gtype, GetParentVMCallback);
}
static void OverrideGetParent (GLib.GType gtype, GetParentNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_parent"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetParentNativeDelegate (IntPtr inst);
static IntPtr GetParent_cb (IntPtr inst)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
Atk.Object __result;
__result = __obj.OnGetParent ();
return __result == null ? IntPtr.Zero : __result.Handle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideGetParent")]
protected virtual Atk.Object OnGetParent ()
{
return InternalGetParent ();
}
private Atk.Object InternalGetParent ()
{
GetParentNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_parent"));
unmanaged = (GetParentNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetParentNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle);
return GLib.Object.GetObject(__result) as Atk.Object;
}
static GetNChildrenNativeDelegate GetNChildren_cb_delegate;
static GetNChildrenNativeDelegate GetNChildrenVMCallback {
get {
if (GetNChildren_cb_delegate == null)
GetNChildren_cb_delegate = new GetNChildrenNativeDelegate (GetNChildren_cb);
return GetNChildren_cb_delegate;
}
}
static void OverrideGetNChildren (GLib.GType gtype)
{
OverrideGetNChildren (gtype, GetNChildrenVMCallback);
}
static void OverrideGetNChildren (GLib.GType gtype, GetNChildrenNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_n_children"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetNChildrenNativeDelegate (IntPtr inst);
static int GetNChildren_cb (IntPtr inst)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
int __result;
__result = __obj.OnGetNChildren ();
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideGetNChildren")]
protected virtual int OnGetNChildren ()
{
return InternalGetNChildren ();
}
private int InternalGetNChildren ()
{
GetNChildrenNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_n_children"));
unmanaged = (GetNChildrenNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetNChildrenNativeDelegate));
}
if (unmanaged == null) return 0;
int __result = unmanaged (this.Handle);
return __result;
}
static RefChildNativeDelegate RefChild_cb_delegate;
static RefChildNativeDelegate RefChildVMCallback {
get {
if (RefChild_cb_delegate == null)
RefChild_cb_delegate = new RefChildNativeDelegate (RefChild_cb);
return RefChild_cb_delegate;
}
}
static void OverrideRefChild (GLib.GType gtype)
{
OverrideRefChild (gtype, RefChildVMCallback);
}
static void OverrideRefChild (GLib.GType gtype, RefChildNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("ref_child"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr RefChildNativeDelegate (IntPtr inst, int i);
static IntPtr RefChild_cb (IntPtr inst, int i)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
Atk.Object __result;
__result = __obj.OnRefChild (i);
return __result == null ? IntPtr.Zero : __result.OwnedHandle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideRefChild")]
protected virtual Atk.Object OnRefChild (int i)
{
return InternalRefChild (i);
}
private Atk.Object InternalRefChild (int i)
{
RefChildNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("ref_child"));
unmanaged = (RefChildNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(RefChildNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle, i);
return GLib.Object.GetObject(__result, true) as Atk.Object;
}
static GetIndexInParentNativeDelegate GetIndexInParent_cb_delegate;
static GetIndexInParentNativeDelegate GetIndexInParentVMCallback {
get {
if (GetIndexInParent_cb_delegate == null)
GetIndexInParent_cb_delegate = new GetIndexInParentNativeDelegate (GetIndexInParent_cb);
return GetIndexInParent_cb_delegate;
}
}
static void OverrideGetIndexInParent (GLib.GType gtype)
{
OverrideGetIndexInParent (gtype, GetIndexInParentVMCallback);
}
static void OverrideGetIndexInParent (GLib.GType gtype, GetIndexInParentNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_index_in_parent"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetIndexInParentNativeDelegate (IntPtr inst);
static int GetIndexInParent_cb (IntPtr inst)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
int __result;
__result = __obj.OnGetIndexInParent ();
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideGetIndexInParent")]
protected virtual int OnGetIndexInParent ()
{
return InternalGetIndexInParent ();
}
private int InternalGetIndexInParent ()
{
GetIndexInParentNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_index_in_parent"));
unmanaged = (GetIndexInParentNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetIndexInParentNativeDelegate));
}
if (unmanaged == null) return 0;
int __result = unmanaged (this.Handle);
return __result;
}
static RefRelationSetNativeDelegate RefRelationSet_cb_delegate;
static RefRelationSetNativeDelegate RefRelationSetVMCallback {
get {
if (RefRelationSet_cb_delegate == null)
RefRelationSet_cb_delegate = new RefRelationSetNativeDelegate (RefRelationSet_cb);
return RefRelationSet_cb_delegate;
}
}
static void OverrideRefRelationSet (GLib.GType gtype)
{
OverrideRefRelationSet (gtype, RefRelationSetVMCallback);
}
static void OverrideRefRelationSet (GLib.GType gtype, RefRelationSetNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("ref_relation_set"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr RefRelationSetNativeDelegate (IntPtr inst);
static IntPtr RefRelationSet_cb (IntPtr inst)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
Atk.RelationSet __result;
__result = __obj.OnRefRelationSet ();
return __result == null ? IntPtr.Zero : __result.Handle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideRefRelationSet")]
protected virtual Atk.RelationSet OnRefRelationSet ()
{
return InternalRefRelationSet ();
}
private Atk.RelationSet InternalRefRelationSet ()
{
RefRelationSetNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("ref_relation_set"));
unmanaged = (RefRelationSetNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(RefRelationSetNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle);
return GLib.Object.GetObject(__result) as Atk.RelationSet;
}
static GetRoleNativeDelegate GetRole_cb_delegate;
static GetRoleNativeDelegate GetRoleVMCallback {
get {
if (GetRole_cb_delegate == null)
GetRole_cb_delegate = new GetRoleNativeDelegate (GetRole_cb);
return GetRole_cb_delegate;
}
}
static void OverrideGetRole (GLib.GType gtype)
{
OverrideGetRole (gtype, GetRoleVMCallback);
}
static void OverrideGetRole (GLib.GType gtype, GetRoleNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_role"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetRoleNativeDelegate (IntPtr inst);
static int GetRole_cb (IntPtr inst)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
Atk.Role __result;
__result = __obj.OnGetRole ();
return (int) __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideGetRole")]
protected virtual Atk.Role OnGetRole ()
{
return InternalGetRole ();
}
private Atk.Role InternalGetRole ()
{
GetRoleNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_role"));
unmanaged = (GetRoleNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetRoleNativeDelegate));
}
if (unmanaged == null) return (Atk.Role) 0;
int __result = unmanaged (this.Handle);
return (Atk.Role) __result;
}
static GetLayerNativeDelegate GetLayer_cb_delegate;
static GetLayerNativeDelegate GetLayerVMCallback {
get {
if (GetLayer_cb_delegate == null)
GetLayer_cb_delegate = new GetLayerNativeDelegate (GetLayer_cb);
return GetLayer_cb_delegate;
}
}
static void OverrideGetLayer (GLib.GType gtype)
{
OverrideGetLayer (gtype, GetLayerVMCallback);
}
static void OverrideGetLayer (GLib.GType gtype, GetLayerNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_layer"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetLayerNativeDelegate (IntPtr inst);
static int GetLayer_cb (IntPtr inst)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
Atk.Layer __result;
__result = __obj.OnGetLayer ();
return (int) __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideGetLayer")]
protected virtual Atk.Layer OnGetLayer ()
{
return InternalGetLayer ();
}
private Atk.Layer InternalGetLayer ()
{
GetLayerNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_layer"));
unmanaged = (GetLayerNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetLayerNativeDelegate));
}
if (unmanaged == null) return (Atk.Layer) 0;
int __result = unmanaged (this.Handle);
return (Atk.Layer) __result;
}
static GetMdiZorderNativeDelegate GetMdiZorder_cb_delegate;
static GetMdiZorderNativeDelegate GetMdiZorderVMCallback {
get {
if (GetMdiZorder_cb_delegate == null)
GetMdiZorder_cb_delegate = new GetMdiZorderNativeDelegate (GetMdiZorder_cb);
return GetMdiZorder_cb_delegate;
}
}
static void OverrideGetMdiZorder (GLib.GType gtype)
{
OverrideGetMdiZorder (gtype, GetMdiZorderVMCallback);
}
static void OverrideGetMdiZorder (GLib.GType gtype, GetMdiZorderNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_mdi_zorder"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetMdiZorderNativeDelegate (IntPtr inst);
static int GetMdiZorder_cb (IntPtr inst)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
int __result;
__result = __obj.OnGetMdiZorder ();
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideGetMdiZorder")]
protected virtual int OnGetMdiZorder ()
{
return InternalGetMdiZorder ();
}
private int InternalGetMdiZorder ()
{
GetMdiZorderNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_mdi_zorder"));
unmanaged = (GetMdiZorderNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetMdiZorderNativeDelegate));
}
if (unmanaged == null) return 0;
int __result = unmanaged (this.Handle);
return __result;
}
static RefStateSetNativeDelegate RefStateSet_cb_delegate;
static RefStateSetNativeDelegate RefStateSetVMCallback {
get {
if (RefStateSet_cb_delegate == null)
RefStateSet_cb_delegate = new RefStateSetNativeDelegate (RefStateSet_cb);
return RefStateSet_cb_delegate;
}
}
static void OverrideRefStateSet (GLib.GType gtype)
{
OverrideRefStateSet (gtype, RefStateSetVMCallback);
}
static void OverrideRefStateSet (GLib.GType gtype, RefStateSetNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("ref_state_set"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr RefStateSetNativeDelegate (IntPtr inst);
static IntPtr RefStateSet_cb (IntPtr inst)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
Atk.StateSet __result;
__result = __obj.OnRefStateSet ();
return __result == null ? IntPtr.Zero : __result.OwnedHandle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideRefStateSet")]
protected virtual Atk.StateSet OnRefStateSet ()
{
return InternalRefStateSet ();
}
private Atk.StateSet InternalRefStateSet ()
{
RefStateSetNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("ref_state_set"));
unmanaged = (RefStateSetNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(RefStateSetNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle);
return GLib.Object.GetObject(__result, true) as Atk.StateSet;
}
static SetNameNativeDelegate SetName_cb_delegate;
static SetNameNativeDelegate SetNameVMCallback {
get {
if (SetName_cb_delegate == null)
SetName_cb_delegate = new SetNameNativeDelegate (SetName_cb);
return SetName_cb_delegate;
}
}
static void OverrideSetName (GLib.GType gtype)
{
OverrideSetName (gtype, SetNameVMCallback);
}
static void OverrideSetName (GLib.GType gtype, SetNameNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("set_name"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void SetNameNativeDelegate (IntPtr inst, IntPtr name);
static void SetName_cb (IntPtr inst, IntPtr name)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
__obj.OnSetName (GLib.Marshaller.Utf8PtrToString (name));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideSetName")]
protected virtual void OnSetName (string name)
{
InternalSetName (name);
}
private void InternalSetName (string name)
{
SetNameNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("set_name"));
unmanaged = (SetNameNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SetNameNativeDelegate));
}
if (unmanaged == null) return;
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
unmanaged (this.Handle, native_name);
GLib.Marshaller.Free (native_name);
}
static SetDescriptionNativeDelegate SetDescription_cb_delegate;
static SetDescriptionNativeDelegate SetDescriptionVMCallback {
get {
if (SetDescription_cb_delegate == null)
SetDescription_cb_delegate = new SetDescriptionNativeDelegate (SetDescription_cb);
return SetDescription_cb_delegate;
}
}
static void OverrideSetDescription (GLib.GType gtype)
{
OverrideSetDescription (gtype, SetDescriptionVMCallback);
}
static void OverrideSetDescription (GLib.GType gtype, SetDescriptionNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("set_description"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void SetDescriptionNativeDelegate (IntPtr inst, IntPtr description);
static void SetDescription_cb (IntPtr inst, IntPtr description)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
__obj.OnSetDescription (GLib.Marshaller.Utf8PtrToString (description));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideSetDescription")]
protected virtual void OnSetDescription (string description)
{
InternalSetDescription (description);
}
private void InternalSetDescription (string description)
{
SetDescriptionNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("set_description"));
unmanaged = (SetDescriptionNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SetDescriptionNativeDelegate));
}
if (unmanaged == null) return;
IntPtr native_description = GLib.Marshaller.StringToPtrGStrdup (description);
unmanaged (this.Handle, native_description);
GLib.Marshaller.Free (native_description);
}
static SetParentNativeDelegate SetParent_cb_delegate;
static SetParentNativeDelegate SetParentVMCallback {
get {
if (SetParent_cb_delegate == null)
SetParent_cb_delegate = new SetParentNativeDelegate (SetParent_cb);
return SetParent_cb_delegate;
}
}
static void OverrideSetParent (GLib.GType gtype)
{
OverrideSetParent (gtype, SetParentVMCallback);
}
static void OverrideSetParent (GLib.GType gtype, SetParentNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("set_parent"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void SetParentNativeDelegate (IntPtr inst, IntPtr parent);
static void SetParent_cb (IntPtr inst, IntPtr parent)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
__obj.OnSetParent (GLib.Object.GetObject(parent) as Atk.Object);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideSetParent")]
protected virtual void OnSetParent (Atk.Object parent)
{
InternalSetParent (parent);
}
private void InternalSetParent (Atk.Object parent)
{
SetParentNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("set_parent"));
unmanaged = (SetParentNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SetParentNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, parent == null ? IntPtr.Zero : parent.Handle);
}
static SetRoleNativeDelegate SetRole_cb_delegate;
static SetRoleNativeDelegate SetRoleVMCallback {
get {
if (SetRole_cb_delegate == null)
SetRole_cb_delegate = new SetRoleNativeDelegate (SetRole_cb);
return SetRole_cb_delegate;
}
}
static void OverrideSetRole (GLib.GType gtype)
{
OverrideSetRole (gtype, SetRoleVMCallback);
}
static void OverrideSetRole (GLib.GType gtype, SetRoleNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("set_role"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void SetRoleNativeDelegate (IntPtr inst, int role);
static void SetRole_cb (IntPtr inst, int role)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
__obj.OnSetRole ((Atk.Role) role);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideSetRole")]
protected virtual void OnSetRole (Atk.Role role)
{
InternalSetRole (role);
}
private void InternalSetRole (Atk.Role role)
{
SetRoleNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("set_role"));
unmanaged = (SetRoleNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SetRoleNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, (int) role);
}
static InitializeNativeDelegate Initialize_cb_delegate;
static InitializeNativeDelegate InitializeVMCallback {
get {
if (Initialize_cb_delegate == null)
Initialize_cb_delegate = new InitializeNativeDelegate (Initialize_cb);
return Initialize_cb_delegate;
}
}
static void OverrideInitialize (GLib.GType gtype)
{
OverrideInitialize (gtype, InitializeVMCallback);
}
static void OverrideInitialize (GLib.GType gtype, InitializeNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("initialize"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void InitializeNativeDelegate (IntPtr inst, IntPtr data);
static void Initialize_cb (IntPtr inst, IntPtr data)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
__obj.OnInitialize (data);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideInitialize")]
protected virtual void OnInitialize (IntPtr data)
{
InternalInitialize (data);
}
private void InternalInitialize (IntPtr data)
{
InitializeNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("initialize"));
unmanaged = (InitializeNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(InitializeNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, data);
}
static ChildrenChangedNativeDelegate ChildrenChanged_cb_delegate;
static ChildrenChangedNativeDelegate ChildrenChangedVMCallback {
get {
if (ChildrenChanged_cb_delegate == null)
ChildrenChanged_cb_delegate = new ChildrenChangedNativeDelegate (ChildrenChanged_cb);
return ChildrenChanged_cb_delegate;
}
}
static void OverrideChildrenChanged (GLib.GType gtype)
{
OverrideChildrenChanged (gtype, ChildrenChangedVMCallback);
}
static void OverrideChildrenChanged (GLib.GType gtype, ChildrenChangedNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("children_changed"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ChildrenChangedNativeDelegate (IntPtr inst, uint change_index, IntPtr changed_child);
static void ChildrenChanged_cb (IntPtr inst, uint change_index, IntPtr changed_child)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
__obj.OnChildrenChanged (change_index, changed_child);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideChildrenChanged")]
protected virtual void OnChildrenChanged (uint change_index, IntPtr changed_child)
{
InternalChildrenChanged (change_index, changed_child);
}
private void InternalChildrenChanged (uint change_index, IntPtr changed_child)
{
ChildrenChangedNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("children_changed"));
unmanaged = (ChildrenChangedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ChildrenChangedNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, change_index, changed_child);
}
static FocusEventNativeDelegate FocusEvent_cb_delegate;
static FocusEventNativeDelegate FocusEventVMCallback {
get {
if (FocusEvent_cb_delegate == null)
FocusEvent_cb_delegate = new FocusEventNativeDelegate (FocusEvent_cb);
return FocusEvent_cb_delegate;
}
}
static void OverrideFocusEvent (GLib.GType gtype)
{
OverrideFocusEvent (gtype, FocusEventVMCallback);
}
static void OverrideFocusEvent (GLib.GType gtype, FocusEventNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("focus_event"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void FocusEventNativeDelegate (IntPtr inst, bool focus_in);
static void FocusEvent_cb (IntPtr inst, bool focus_in)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
__obj.OnFocusEvent (focus_in);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideFocusEvent")]
protected virtual void OnFocusEvent (bool focus_in)
{
InternalFocusEvent (focus_in);
}
private void InternalFocusEvent (bool focus_in)
{
FocusEventNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("focus_event"));
unmanaged = (FocusEventNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(FocusEventNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, focus_in);
}
static PropertyChangeNativeDelegate PropertyChange_cb_delegate;
static PropertyChangeNativeDelegate PropertyChangeVMCallback {
get {
if (PropertyChange_cb_delegate == null)
PropertyChange_cb_delegate = new PropertyChangeNativeDelegate (PropertyChange_cb);
return PropertyChange_cb_delegate;
}
}
static void OverridePropertyChange (GLib.GType gtype)
{
OverridePropertyChange (gtype, PropertyChangeVMCallback);
}
static void OverridePropertyChange (GLib.GType gtype, PropertyChangeNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("property_change"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void PropertyChangeNativeDelegate (IntPtr inst, IntPtr values);
static void PropertyChange_cb (IntPtr inst, IntPtr values)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
__obj.OnPropertyChange (Atk.PropertyValues.New (values));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverridePropertyChange")]
protected virtual void OnPropertyChange (Atk.PropertyValues values)
{
InternalPropertyChange (values);
}
private void InternalPropertyChange (Atk.PropertyValues values)
{
PropertyChangeNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("property_change"));
unmanaged = (PropertyChangeNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(PropertyChangeNativeDelegate));
}
if (unmanaged == null) return;
IntPtr native_values = GLib.Marshaller.StructureToPtrAlloc (values);
unmanaged (this.Handle, native_values);
Marshal.FreeHGlobal (native_values);
}
static StateChangeNativeDelegate StateChange_cb_delegate;
static StateChangeNativeDelegate StateChangeVMCallback {
get {
if (StateChange_cb_delegate == null)
StateChange_cb_delegate = new StateChangeNativeDelegate (StateChange_cb);
return StateChange_cb_delegate;
}
}
static void OverrideStateChange (GLib.GType gtype)
{
OverrideStateChange (gtype, StateChangeVMCallback);
}
static void OverrideStateChange (GLib.GType gtype, StateChangeNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("state_change"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void StateChangeNativeDelegate (IntPtr inst, IntPtr name, bool state_set);
static void StateChange_cb (IntPtr inst, IntPtr name, bool state_set)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
__obj.OnStateChange (GLib.Marshaller.Utf8PtrToString (name), state_set);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideStateChange")]
protected virtual void OnStateChange (string name, bool state_set)
{
InternalStateChange (name, state_set);
}
private void InternalStateChange (string name, bool state_set)
{
StateChangeNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("state_change"));
unmanaged = (StateChangeNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(StateChangeNativeDelegate));
}
if (unmanaged == null) return;
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
unmanaged (this.Handle, native_name, state_set);
GLib.Marshaller.Free (native_name);
}
static VisibleDataChangedNativeDelegate VisibleDataChanged_cb_delegate;
static VisibleDataChangedNativeDelegate VisibleDataChangedVMCallback {
get {
if (VisibleDataChanged_cb_delegate == null)
VisibleDataChanged_cb_delegate = new VisibleDataChangedNativeDelegate (VisibleDataChanged_cb);
return VisibleDataChanged_cb_delegate;
}
}
static void OverrideVisibleDataChanged (GLib.GType gtype)
{
OverrideVisibleDataChanged (gtype, VisibleDataChangedVMCallback);
}
static void OverrideVisibleDataChanged (GLib.GType gtype, VisibleDataChangedNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("visible_data_changed"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void VisibleDataChangedNativeDelegate (IntPtr inst);
static void VisibleDataChanged_cb (IntPtr inst)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
__obj.OnVisibleDataChanged ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideVisibleDataChanged")]
protected virtual void OnVisibleDataChanged ()
{
InternalVisibleDataChanged ();
}
private void InternalVisibleDataChanged ()
{
VisibleDataChangedNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("visible_data_changed"));
unmanaged = (VisibleDataChangedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(VisibleDataChangedNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle);
}
static ActiveDescendantChangedNativeDelegate ActiveDescendantChanged_cb_delegate;
static ActiveDescendantChangedNativeDelegate ActiveDescendantChangedVMCallback {
get {
if (ActiveDescendantChanged_cb_delegate == null)
ActiveDescendantChanged_cb_delegate = new ActiveDescendantChangedNativeDelegate (ActiveDescendantChanged_cb);
return ActiveDescendantChanged_cb_delegate;
}
}
static void OverrideActiveDescendantChanged (GLib.GType gtype)
{
OverrideActiveDescendantChanged (gtype, ActiveDescendantChangedVMCallback);
}
static void OverrideActiveDescendantChanged (GLib.GType gtype, ActiveDescendantChangedNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("active_descendant_changed"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ActiveDescendantChangedNativeDelegate (IntPtr inst, IntPtr child);
static void ActiveDescendantChanged_cb (IntPtr inst, IntPtr child)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
__obj.OnActiveDescendantChanged (child);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideActiveDescendantChanged")]
protected virtual void OnActiveDescendantChanged (IntPtr child)
{
InternalActiveDescendantChanged (child);
}
private void InternalActiveDescendantChanged (IntPtr child)
{
ActiveDescendantChangedNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("active_descendant_changed"));
unmanaged = (ActiveDescendantChangedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ActiveDescendantChangedNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, child);
}
static GetAttributesNativeDelegate GetAttributes_cb_delegate;
static GetAttributesNativeDelegate GetAttributesVMCallback {
get {
if (GetAttributes_cb_delegate == null)
GetAttributes_cb_delegate = new GetAttributesNativeDelegate (GetAttributes_cb);
return GetAttributes_cb_delegate;
}
}
static void OverrideGetAttributes (GLib.GType gtype)
{
OverrideGetAttributes (gtype, GetAttributesVMCallback);
}
static void OverrideGetAttributes (GLib.GType gtype, GetAttributesNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_attributes"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetAttributesNativeDelegate (IntPtr inst);
static IntPtr GetAttributes_cb (IntPtr inst)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
GLib.SList __result;
__result = __obj.OnGetAttributes ();
return __result == null ? IntPtr.Zero : __result.Handle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideGetAttributes")]
protected virtual GLib.SList OnGetAttributes ()
{
return InternalGetAttributes ();
}
private GLib.SList InternalGetAttributes ()
{
GetAttributesNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_attributes"));
unmanaged = (GetAttributesNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetAttributesNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle);
return new GLib.SList(__result);
}
static GetObjectLocaleNativeDelegate GetObjectLocale_cb_delegate;
static GetObjectLocaleNativeDelegate GetObjectLocaleVMCallback {
get {
if (GetObjectLocale_cb_delegate == null)
GetObjectLocale_cb_delegate = new GetObjectLocaleNativeDelegate (GetObjectLocale_cb);
return GetObjectLocale_cb_delegate;
}
}
static void OverrideGetObjectLocale (GLib.GType gtype)
{
OverrideGetObjectLocale (gtype, GetObjectLocaleVMCallback);
}
static void OverrideGetObjectLocale (GLib.GType gtype, GetObjectLocaleNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_object_locale"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetObjectLocaleNativeDelegate (IntPtr inst);
static IntPtr GetObjectLocale_cb (IntPtr inst)
{
try {
Object __obj = GLib.Object.GetObject (inst, false) as Object;
string __result;
__result = __obj.OnGetObjectLocale ();
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Object), ConnectionMethod="OverrideGetObjectLocale")]
protected virtual string OnGetObjectLocale ()
{
return InternalGetObjectLocale ();
}
private string InternalGetObjectLocale ()
{
GetObjectLocaleNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_object_locale"));
unmanaged = (GetObjectLocaleNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetObjectLocaleNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle);
return GLib.Marshaller.PtrToStringGFree(__result);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("get_name"
, GLib.Object.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_name
, null
, "get_description"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_description"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_description
, "get_name"
, "get_parent"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_parent"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_parent
, "get_description"
, "get_n_children"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_n_children"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_n_children
, "get_parent"
, "ref_child"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("ref_child"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // ref_child
, "get_n_children"
, "get_index_in_parent"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_index_in_parent"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_index_in_parent
, "ref_child"
, "ref_relation_set"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("ref_relation_set"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // ref_relation_set
, "get_index_in_parent"
, "get_role"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_role"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_role
, "ref_relation_set"
, "get_layer"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_layer"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_layer
, "get_role"
, "get_mdi_zorder"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_mdi_zorder"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_mdi_zorder
, "get_layer"
, "ref_state_set"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("ref_state_set"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // ref_state_set
, "get_mdi_zorder"
, "set_name"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("set_name"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // set_name
, "ref_state_set"
, "set_description"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("set_description"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // set_description
, "set_name"
, "set_parent"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("set_parent"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // set_parent
, "set_description"
, "set_role"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("set_role"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // set_role
, "set_parent"
, "connect_property_change_handler"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("connect_property_change_handler"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // connect_property_change_handler
, "set_role"
, "remove_property_change_handler"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("remove_property_change_handler"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // remove_property_change_handler
, "connect_property_change_handler"
, "initialize"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("initialize"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // initialize
, "remove_property_change_handler"
, "children_changed"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("children_changed"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // children_changed
, "initialize"
, "focus_event"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("focus_event"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // focus_event
, "children_changed"
, "property_change"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("property_change"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // property_change
, "focus_event"
, "state_change"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("state_change"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // state_change
, "property_change"
, "visible_data_changed"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("visible_data_changed"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // visible_data_changed
, "state_change"
, "active_descendant_changed"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("active_descendant_changed"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // active_descendant_changed
, "visible_data_changed"
, "get_attributes"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_attributes"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_attributes
, "active_descendant_changed"
, "get_object_locale"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_object_locale"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_object_locale
, "get_attributes"
, "pad1"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("pad1"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // pad1
, "get_object_locale"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool atk_object_add_relationship(IntPtr raw, int relationship, IntPtr target);
public bool AddRelationship(Atk.RelationType relationship, Atk.Object target) {
bool raw_ret = atk_object_add_relationship(Handle, (int) relationship, target == null ? IntPtr.Zero : target.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint atk_object_connect_property_change_handler(IntPtr raw, AtkSharp.PropertyChangeHandlerNative handler);
[Obsolete]
public uint ConnectPropertyChangeHandler(Atk.PropertyChangeHandler handler) {
AtkSharp.PropertyChangeHandlerWrapper handler_wrapper = new AtkSharp.PropertyChangeHandlerWrapper (handler);
uint raw_ret = atk_object_connect_property_change_handler(Handle, handler_wrapper.NativeDelegate);
uint ret = raw_ret;
return ret;
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_object_get_attributes(IntPtr raw);
public Atk.Attribute[] Attributes {
get {
IntPtr raw_ret = atk_object_get_attributes(Handle);
Atk.Attribute[] ret = (Atk.Attribute[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.SList), false, false, typeof(Atk.Attribute));
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int atk_object_get_index_in_parent(IntPtr raw);
public int IndexInParent {
get {
int raw_ret = atk_object_get_index_in_parent(Handle);
int ret = raw_ret;
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int atk_object_get_n_accessible_children(IntPtr raw);
public int NAccessibleChildren {
get {
int raw_ret = atk_object_get_n_accessible_children(Handle);
int ret = raw_ret;
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_object_get_object_locale(IntPtr raw);
public string ObjectLocale {
get {
IntPtr raw_ret = atk_object_get_object_locale(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_object_get_parent(IntPtr raw);
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void atk_object_set_parent(IntPtr raw, IntPtr parent);
public Atk.Object Parent {
get {
IntPtr raw_ret = atk_object_get_parent(Handle);
Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object;
return ret;
}
set {
atk_object_set_parent(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_object_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = atk_object_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void atk_object_initialize(IntPtr raw, IntPtr data);
public void Initialize(IntPtr data) {
atk_object_initialize(Handle, data);
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void atk_object_notify_state_change(IntPtr raw, ulong state, bool value);
public void NotifyStateChange(ulong state, bool value) {
atk_object_notify_state_change(Handle, state, value);
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_object_peek_parent(IntPtr raw);
public Atk.Object PeekParent() {
IntPtr raw_ret = atk_object_peek_parent(Handle);
Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object;
return ret;
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_object_ref_accessible_child(IntPtr raw, int i);
public Atk.Object RefAccessibleChild(int i) {
IntPtr raw_ret = atk_object_ref_accessible_child(Handle, i);
Atk.Object ret = GLib.Object.GetObject(raw_ret, true) as Atk.Object;
return ret;
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_object_ref_relation_set(IntPtr raw);
public Atk.RelationSet RefRelationSet() {
IntPtr raw_ret = atk_object_ref_relation_set(Handle);
Atk.RelationSet ret = GLib.Object.GetObject(raw_ret, true) as Atk.RelationSet;
return ret;
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_object_ref_state_set(IntPtr raw);
public Atk.StateSet RefStateSet() {
IntPtr raw_ret = atk_object_ref_state_set(Handle);
Atk.StateSet ret = GLib.Object.GetObject(raw_ret, true) as Atk.StateSet;
return ret;
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void atk_object_remove_property_change_handler(IntPtr raw, uint handler_id);
[Obsolete]
public void RemovePropertyChangeHandler(uint handler_id) {
atk_object_remove_property_change_handler(Handle, handler_id);
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool atk_object_remove_relationship(IntPtr raw, int relationship, IntPtr target);
public bool RemoveRelationship(Atk.RelationType relationship, Atk.Object target) {
bool raw_ret = atk_object_remove_relationship(Handle, (int) relationship, target == null ? IntPtr.Zero : target.Handle);
bool ret = raw_ret;
return ret;
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("description"
, GLib.Object.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // description
, null
, "name"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("name"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // name
, "description"
, "accessible_parent"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("accessible_parent"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // accessible_parent
, "name"
, "role"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("role"
, -1
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Atk.Role))) // role
, "accessible_parent"
, "relation_set"
, (long) Marshal.OffsetOf(typeof(AtkObject_roleAlign), "role")
, 0
),
new GLib.AbiField("relation_set"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // relation_set
, "role"
, "layer"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("layer"
, -1
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Atk.Layer))) // layer
, "relation_set"
, null
, (long) Marshal.OffsetOf(typeof(AtkObject_layerAlign), "layer")
, 0
),
});
return _abi_info;
}
}
[StructLayout(LayoutKind.Sequential)]
public struct AtkObject_roleAlign
{
sbyte f1;
private Atk.Role role;
}
[StructLayout(LayoutKind.Sequential)]
public struct AtkObject_layerAlign
{
sbyte f1;
private Atk.Layer layer;
}
// End of the ABI representation.
#endregion
}
}
|