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
|
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gtk {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class CellArea : GLib.InitiallyUnowned {
public CellArea (IntPtr raw) : base(raw) {}
protected CellArea() : base(IntPtr.Zero)
{
CreateNativeObject (new string [0], new GLib.Value [0]);
}
static AddNativeDelegate Add_cb_delegate;
static AddNativeDelegate AddVMCallback {
get {
if (Add_cb_delegate == null)
Add_cb_delegate = new AddNativeDelegate (Add_cb);
return Add_cb_delegate;
}
}
static void OverrideAdd (GLib.GType gtype)
{
OverrideAdd (gtype, AddVMCallback);
}
static void OverrideAdd (GLib.GType gtype, AddNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("add"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void AddNativeDelegate (IntPtr inst, IntPtr renderer);
static void Add_cb (IntPtr inst, IntPtr renderer)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
__obj.OnAdd (GLib.Object.GetObject(renderer) as Gtk.CellRenderer);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideAdd")]
protected virtual void OnAdd (Gtk.CellRenderer renderer)
{
InternalAdd (renderer);
}
private void InternalAdd (Gtk.CellRenderer renderer)
{
AddNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("add"));
unmanaged = (AddNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(AddNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, renderer == null ? IntPtr.Zero : renderer.Handle);
}
static RemoveNativeDelegate Remove_cb_delegate;
static RemoveNativeDelegate RemoveVMCallback {
get {
if (Remove_cb_delegate == null)
Remove_cb_delegate = new RemoveNativeDelegate (Remove_cb);
return Remove_cb_delegate;
}
}
static void OverrideRemove (GLib.GType gtype)
{
OverrideRemove (gtype, RemoveVMCallback);
}
static void OverrideRemove (GLib.GType gtype, RemoveNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("_remove"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void RemoveNativeDelegate (IntPtr inst, IntPtr renderer);
static void Remove_cb (IntPtr inst, IntPtr renderer)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
__obj.OnRemove (GLib.Object.GetObject(renderer) as Gtk.CellRenderer);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideRemove")]
protected virtual void OnRemove (Gtk.CellRenderer renderer)
{
InternalRemove (renderer);
}
private void InternalRemove (Gtk.CellRenderer renderer)
{
RemoveNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("_remove"));
unmanaged = (RemoveNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(RemoveNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, renderer == null ? IntPtr.Zero : renderer.Handle);
}
static ForeachNativeDelegate Foreach_cb_delegate;
static ForeachNativeDelegate ForeachVMCallback {
get {
if (Foreach_cb_delegate == null)
Foreach_cb_delegate = new ForeachNativeDelegate (Foreach_cb);
return Foreach_cb_delegate;
}
}
static void OverrideForeach (GLib.GType gtype)
{
OverrideForeach (gtype, ForeachVMCallback);
}
static void OverrideForeach (GLib.GType gtype, ForeachNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("for_each"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ForeachNativeDelegate (IntPtr inst, GtkSharp.CellCallbackNative cb, IntPtr callback_data);
static void Foreach_cb (IntPtr inst, GtkSharp.CellCallbackNative cb, IntPtr callback_data)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
GtkSharp.CellCallbackInvoker cb_invoker = new GtkSharp.CellCallbackInvoker (cb, callback_data);
__obj.OnForeach (cb_invoker.Handler);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideForeach")]
protected virtual void OnForeach (Gtk.CellCallback cb)
{
InternalForeach (cb);
}
private void InternalForeach (Gtk.CellCallback cb)
{
ForeachNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("for_each"));
unmanaged = (ForeachNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ForeachNativeDelegate));
}
if (unmanaged == null) return;
GtkSharp.CellCallbackWrapper cb_wrapper = new GtkSharp.CellCallbackWrapper (cb);
unmanaged (this.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
}
static ForeachAllocNativeDelegate ForeachAlloc_cb_delegate;
static ForeachAllocNativeDelegate ForeachAllocVMCallback {
get {
if (ForeachAlloc_cb_delegate == null)
ForeachAlloc_cb_delegate = new ForeachAllocNativeDelegate (ForeachAlloc_cb);
return ForeachAlloc_cb_delegate;
}
}
static void OverrideForeachAlloc (GLib.GType gtype)
{
OverrideForeachAlloc (gtype, ForeachAllocVMCallback);
}
static void OverrideForeachAlloc (GLib.GType gtype, ForeachAllocNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("foreach_alloc"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ForeachAllocNativeDelegate (IntPtr inst, IntPtr context, IntPtr widget, IntPtr cell_area, IntPtr background_area, GtkSharp.CellAllocCallbackNative cb, IntPtr callback_data);
static void ForeachAlloc_cb (IntPtr inst, IntPtr context, IntPtr widget, IntPtr cell_area, IntPtr background_area, GtkSharp.CellAllocCallbackNative cb, IntPtr callback_data)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
GtkSharp.CellAllocCallbackInvoker cb_invoker = new GtkSharp.CellAllocCallbackInvoker (cb, callback_data);
__obj.OnForeachAlloc (GLib.Object.GetObject(context) as Gtk.CellAreaContext, GLib.Object.GetObject(widget) as Gtk.Widget, (Gdk.Rectangle) Marshal.PtrToStructure (cell_area, typeof (Gdk.Rectangle)), (Gdk.Rectangle) Marshal.PtrToStructure (background_area, typeof (Gdk.Rectangle)), cb_invoker.Handler);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideForeachAlloc")]
protected virtual void OnForeachAlloc (Gtk.CellAreaContext context, Gtk.Widget widget, Gdk.Rectangle cell_area, Gdk.Rectangle background_area, Gtk.CellAllocCallback cb)
{
InternalForeachAlloc (context, widget, cell_area, background_area, cb);
}
private void InternalForeachAlloc (Gtk.CellAreaContext context, Gtk.Widget widget, Gdk.Rectangle cell_area, Gdk.Rectangle background_area, Gtk.CellAllocCallback cb)
{
ForeachAllocNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("foreach_alloc"));
unmanaged = (ForeachAllocNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ForeachAllocNativeDelegate));
}
if (unmanaged == null) return;
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area);
IntPtr native_background_area = GLib.Marshaller.StructureToPtrAlloc (background_area);
GtkSharp.CellAllocCallbackWrapper cb_wrapper = new GtkSharp.CellAllocCallbackWrapper (cb);
unmanaged (this.Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, native_cell_area, native_background_area, cb_wrapper.NativeDelegate, IntPtr.Zero);
Marshal.FreeHGlobal (native_cell_area);
Marshal.FreeHGlobal (native_background_area);
}
static EventNativeDelegate Event_cb_delegate;
static EventNativeDelegate EventVMCallback {
get {
if (Event_cb_delegate == null)
Event_cb_delegate = new EventNativeDelegate (Event_cb);
return Event_cb_delegate;
}
}
static void OverrideEvent (GLib.GType gtype)
{
OverrideEvent (gtype, EventVMCallback);
}
static void OverrideEvent (GLib.GType gtype, EventNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("evnt"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int EventNativeDelegate (IntPtr inst, IntPtr context, IntPtr widget, IntPtr evnt, IntPtr cell_area, int flags);
static int Event_cb (IntPtr inst, IntPtr context, IntPtr widget, IntPtr evnt, IntPtr cell_area, int flags)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
int __result;
__result = __obj.OnEvent (GLib.Object.GetObject(context) as Gtk.CellAreaContext, GLib.Object.GetObject(widget) as Gtk.Widget, Gdk.Event.GetEvent (evnt), (Gdk.Rectangle) Marshal.PtrToStructure (cell_area, typeof (Gdk.Rectangle)), (Gtk.CellRendererState) flags);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideEvent")]
protected virtual int OnEvent (Gtk.CellAreaContext context, Gtk.Widget widget, Gdk.Event evnt, Gdk.Rectangle cell_area, Gtk.CellRendererState flags)
{
return InternalEvent (context, widget, evnt, cell_area, flags);
}
private int InternalEvent (Gtk.CellAreaContext context, Gtk.Widget widget, Gdk.Event evnt, Gdk.Rectangle cell_area, Gtk.CellRendererState flags)
{
EventNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("evnt"));
unmanaged = (EventNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(EventNativeDelegate));
}
if (unmanaged == null) return 0;
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area);
int __result = unmanaged (this.Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, evnt == null ? IntPtr.Zero : evnt.Handle, native_cell_area, (int) flags);
Marshal.FreeHGlobal (native_cell_area);
return __result;
}
static RenderNativeDelegate Render_cb_delegate;
static RenderNativeDelegate RenderVMCallback {
get {
if (Render_cb_delegate == null)
Render_cb_delegate = new RenderNativeDelegate (Render_cb);
return Render_cb_delegate;
}
}
static void OverrideRender (GLib.GType gtype)
{
OverrideRender (gtype, RenderVMCallback);
}
static void OverrideRender (GLib.GType gtype, RenderNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("render"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void RenderNativeDelegate (IntPtr inst, IntPtr context, IntPtr widget, IntPtr cr, IntPtr background_area, IntPtr cell_area, int flags, bool paint_focus);
static void Render_cb (IntPtr inst, IntPtr context, IntPtr widget, IntPtr cr, IntPtr background_area, IntPtr cell_area, int flags, bool paint_focus)
{
Cairo.Context mycr = null;
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
mycr = new Cairo.Context (cr, false);
__obj.OnRender (GLib.Object.GetObject(context) as Gtk.CellAreaContext, GLib.Object.GetObject(widget) as Gtk.Widget, mycr, (Gdk.Rectangle) Marshal.PtrToStructure (background_area, typeof (Gdk.Rectangle)), (Gdk.Rectangle) Marshal.PtrToStructure (cell_area, typeof (Gdk.Rectangle)), (Gtk.CellRendererState) flags, paint_focus);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
} finally {
var disposable_cr = mycr as IDisposable;
if (disposable_cr != null)
disposable_cr.Dispose ();
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideRender")]
protected virtual void OnRender (Gtk.CellAreaContext context, Gtk.Widget widget, Cairo.Context cr, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.CellRendererState flags, bool paint_focus)
{
InternalRender (context, widget, cr, background_area, cell_area, flags, paint_focus);
}
private void InternalRender (Gtk.CellAreaContext context, Gtk.Widget widget, Cairo.Context cr, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.CellRendererState flags, bool paint_focus)
{
RenderNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("render"));
unmanaged = (RenderNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(RenderNativeDelegate));
}
if (unmanaged == null) return;
IntPtr native_background_area = GLib.Marshaller.StructureToPtrAlloc (background_area);
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area);
unmanaged (this.Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, cr == null ? IntPtr.Zero : cr.Handle, native_background_area, native_cell_area, (int) flags, paint_focus);
Marshal.FreeHGlobal (native_background_area);
Marshal.FreeHGlobal (native_cell_area);
}
static ApplyAttributesNativeDelegate ApplyAttributes_cb_delegate;
static ApplyAttributesNativeDelegate ApplyAttributesVMCallback {
get {
if (ApplyAttributes_cb_delegate == null)
ApplyAttributes_cb_delegate = new ApplyAttributesNativeDelegate (ApplyAttributes_cb);
return ApplyAttributes_cb_delegate;
}
}
static void OverrideApplyAttributes (GLib.GType gtype)
{
OverrideApplyAttributes (gtype, ApplyAttributesVMCallback);
}
static void OverrideApplyAttributes (GLib.GType gtype, ApplyAttributesNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("apply_attributes"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ApplyAttributesNativeDelegate (IntPtr inst, IntPtr tree_model, IntPtr iter, bool is_expander, bool is_expanded);
static void ApplyAttributes_cb (IntPtr inst, IntPtr tree_model, IntPtr iter, bool is_expander, bool is_expanded)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
__obj.OnApplyAttributes (Gtk.TreeModelAdapter.GetObject (tree_model, false), Gtk.TreeIter.New (iter), is_expander, is_expanded);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideApplyAttributes")]
protected virtual void OnApplyAttributes (Gtk.ITreeModel tree_model, Gtk.TreeIter iter, bool is_expander, bool is_expanded)
{
InternalApplyAttributes (tree_model, iter, is_expander, is_expanded);
}
private void InternalApplyAttributes (Gtk.ITreeModel tree_model, Gtk.TreeIter iter, bool is_expander, bool is_expanded)
{
ApplyAttributesNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("apply_attributes"));
unmanaged = (ApplyAttributesNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ApplyAttributesNativeDelegate));
}
if (unmanaged == null) return;
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
unmanaged (this.Handle, tree_model == null ? IntPtr.Zero : ((tree_model is GLib.Object) ? (tree_model as GLib.Object).Handle : (tree_model as Gtk.TreeModelAdapter).Handle), native_iter, is_expander, is_expanded);
Marshal.FreeHGlobal (native_iter);
}
static CreateContextNativeDelegate CreateContext_cb_delegate;
static CreateContextNativeDelegate CreateContextVMCallback {
get {
if (CreateContext_cb_delegate == null)
CreateContext_cb_delegate = new CreateContextNativeDelegate (CreateContext_cb);
return CreateContext_cb_delegate;
}
}
static void OverrideCreateContext (GLib.GType gtype)
{
OverrideCreateContext (gtype, CreateContextVMCallback);
}
static void OverrideCreateContext (GLib.GType gtype, CreateContextNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("create_context"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr CreateContextNativeDelegate (IntPtr inst);
static IntPtr CreateContext_cb (IntPtr inst)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
Gtk.CellAreaContext __result;
__result = __obj.OnCreateContext ();
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(Gtk.CellArea), ConnectionMethod="OverrideCreateContext")]
protected virtual Gtk.CellAreaContext OnCreateContext ()
{
return InternalCreateContext ();
}
private Gtk.CellAreaContext InternalCreateContext ()
{
CreateContextNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("create_context"));
unmanaged = (CreateContextNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(CreateContextNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle);
return GLib.Object.GetObject(__result) as Gtk.CellAreaContext;
}
static CopyContextNativeDelegate CopyContext_cb_delegate;
static CopyContextNativeDelegate CopyContextVMCallback {
get {
if (CopyContext_cb_delegate == null)
CopyContext_cb_delegate = new CopyContextNativeDelegate (CopyContext_cb);
return CopyContext_cb_delegate;
}
}
static void OverrideCopyContext (GLib.GType gtype)
{
OverrideCopyContext (gtype, CopyContextVMCallback);
}
static void OverrideCopyContext (GLib.GType gtype, CopyContextNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("copy_context"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr CopyContextNativeDelegate (IntPtr inst, IntPtr context);
static IntPtr CopyContext_cb (IntPtr inst, IntPtr context)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
Gtk.CellAreaContext __result;
__result = __obj.OnCopyContext (GLib.Object.GetObject(context) as Gtk.CellAreaContext);
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(Gtk.CellArea), ConnectionMethod="OverrideCopyContext")]
protected virtual Gtk.CellAreaContext OnCopyContext (Gtk.CellAreaContext context)
{
return InternalCopyContext (context);
}
private Gtk.CellAreaContext InternalCopyContext (Gtk.CellAreaContext context)
{
CopyContextNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("copy_context"));
unmanaged = (CopyContextNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(CopyContextNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle, context == null ? IntPtr.Zero : context.Handle);
return GLib.Object.GetObject(__result) as Gtk.CellAreaContext;
}
static GetRequestModeNativeDelegate GetRequestMode_cb_delegate;
static GetRequestModeNativeDelegate GetRequestModeVMCallback {
get {
if (GetRequestMode_cb_delegate == null)
GetRequestMode_cb_delegate = new GetRequestModeNativeDelegate (GetRequestMode_cb);
return GetRequestMode_cb_delegate;
}
}
static void OverrideGetRequestMode (GLib.GType gtype)
{
OverrideGetRequestMode (gtype, GetRequestModeVMCallback);
}
static void OverrideGetRequestMode (GLib.GType gtype, GetRequestModeNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_request_mode"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetRequestModeNativeDelegate (IntPtr inst);
static int GetRequestMode_cb (IntPtr inst)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
Gtk.SizeRequestMode __result;
__result = __obj.OnGetRequestMode ();
return (int) __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideGetRequestMode")]
protected virtual Gtk.SizeRequestMode OnGetRequestMode ()
{
return InternalGetRequestMode ();
}
private Gtk.SizeRequestMode InternalGetRequestMode ()
{
GetRequestModeNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_request_mode"));
unmanaged = (GetRequestModeNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetRequestModeNativeDelegate));
}
if (unmanaged == null) return (Gtk.SizeRequestMode) 0;
int __result = unmanaged (this.Handle);
return (Gtk.SizeRequestMode) __result;
}
static GetPreferredWidthNativeDelegate GetPreferredWidth_cb_delegate;
static GetPreferredWidthNativeDelegate GetPreferredWidthVMCallback {
get {
if (GetPreferredWidth_cb_delegate == null)
GetPreferredWidth_cb_delegate = new GetPreferredWidthNativeDelegate (GetPreferredWidth_cb);
return GetPreferredWidth_cb_delegate;
}
}
static void OverrideGetPreferredWidth (GLib.GType gtype)
{
OverrideGetPreferredWidth (gtype, GetPreferredWidthVMCallback);
}
static void OverrideGetPreferredWidth (GLib.GType gtype, GetPreferredWidthNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_preferred_width"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void GetPreferredWidthNativeDelegate (IntPtr inst, IntPtr context, IntPtr widget, out int minimum_width, out int natural_width);
static void GetPreferredWidth_cb (IntPtr inst, IntPtr context, IntPtr widget, out int minimum_width, out int natural_width)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
__obj.OnGetPreferredWidth (GLib.Object.GetObject(context) as Gtk.CellAreaContext, GLib.Object.GetObject(widget) as Gtk.Widget, out minimum_width, out natural_width);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideGetPreferredWidth")]
protected virtual void OnGetPreferredWidth (Gtk.CellAreaContext context, Gtk.Widget widget, out int minimum_width, out int natural_width)
{
InternalGetPreferredWidth (context, widget, out minimum_width, out natural_width);
}
private void InternalGetPreferredWidth (Gtk.CellAreaContext context, Gtk.Widget widget, out int minimum_width, out int natural_width)
{
GetPreferredWidthNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_preferred_width"));
unmanaged = (GetPreferredWidthNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetPreferredWidthNativeDelegate));
}
if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke");
unmanaged (this.Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, out minimum_width, out natural_width);
}
static GetPreferredHeightForWidthNativeDelegate GetPreferredHeightForWidth_cb_delegate;
static GetPreferredHeightForWidthNativeDelegate GetPreferredHeightForWidthVMCallback {
get {
if (GetPreferredHeightForWidth_cb_delegate == null)
GetPreferredHeightForWidth_cb_delegate = new GetPreferredHeightForWidthNativeDelegate (GetPreferredHeightForWidth_cb);
return GetPreferredHeightForWidth_cb_delegate;
}
}
static void OverrideGetPreferredHeightForWidth (GLib.GType gtype)
{
OverrideGetPreferredHeightForWidth (gtype, GetPreferredHeightForWidthVMCallback);
}
static void OverrideGetPreferredHeightForWidth (GLib.GType gtype, GetPreferredHeightForWidthNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_preferred_height_for_width"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void GetPreferredHeightForWidthNativeDelegate (IntPtr inst, IntPtr context, IntPtr widget, int width, out int minimum_height, out int natural_height);
static void GetPreferredHeightForWidth_cb (IntPtr inst, IntPtr context, IntPtr widget, int width, out int minimum_height, out int natural_height)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
__obj.OnGetPreferredHeightForWidth (GLib.Object.GetObject(context) as Gtk.CellAreaContext, GLib.Object.GetObject(widget) as Gtk.Widget, width, out minimum_height, out natural_height);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideGetPreferredHeightForWidth")]
protected virtual void OnGetPreferredHeightForWidth (Gtk.CellAreaContext context, Gtk.Widget widget, int width, out int minimum_height, out int natural_height)
{
InternalGetPreferredHeightForWidth (context, widget, width, out minimum_height, out natural_height);
}
private void InternalGetPreferredHeightForWidth (Gtk.CellAreaContext context, Gtk.Widget widget, int width, out int minimum_height, out int natural_height)
{
GetPreferredHeightForWidthNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_preferred_height_for_width"));
unmanaged = (GetPreferredHeightForWidthNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetPreferredHeightForWidthNativeDelegate));
}
if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke");
unmanaged (this.Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, width, out minimum_height, out natural_height);
}
static GetPreferredHeightNativeDelegate GetPreferredHeight_cb_delegate;
static GetPreferredHeightNativeDelegate GetPreferredHeightVMCallback {
get {
if (GetPreferredHeight_cb_delegate == null)
GetPreferredHeight_cb_delegate = new GetPreferredHeightNativeDelegate (GetPreferredHeight_cb);
return GetPreferredHeight_cb_delegate;
}
}
static void OverrideGetPreferredHeight (GLib.GType gtype)
{
OverrideGetPreferredHeight (gtype, GetPreferredHeightVMCallback);
}
static void OverrideGetPreferredHeight (GLib.GType gtype, GetPreferredHeightNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_preferred_height"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void GetPreferredHeightNativeDelegate (IntPtr inst, IntPtr context, IntPtr widget, out int minimum_height, out int natural_height);
static void GetPreferredHeight_cb (IntPtr inst, IntPtr context, IntPtr widget, out int minimum_height, out int natural_height)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
__obj.OnGetPreferredHeight (GLib.Object.GetObject(context) as Gtk.CellAreaContext, GLib.Object.GetObject(widget) as Gtk.Widget, out minimum_height, out natural_height);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideGetPreferredHeight")]
protected virtual void OnGetPreferredHeight (Gtk.CellAreaContext context, Gtk.Widget widget, out int minimum_height, out int natural_height)
{
InternalGetPreferredHeight (context, widget, out minimum_height, out natural_height);
}
private void InternalGetPreferredHeight (Gtk.CellAreaContext context, Gtk.Widget widget, out int minimum_height, out int natural_height)
{
GetPreferredHeightNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_preferred_height"));
unmanaged = (GetPreferredHeightNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetPreferredHeightNativeDelegate));
}
if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke");
unmanaged (this.Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, out minimum_height, out natural_height);
}
static GetPreferredWidthForHeightNativeDelegate GetPreferredWidthForHeight_cb_delegate;
static GetPreferredWidthForHeightNativeDelegate GetPreferredWidthForHeightVMCallback {
get {
if (GetPreferredWidthForHeight_cb_delegate == null)
GetPreferredWidthForHeight_cb_delegate = new GetPreferredWidthForHeightNativeDelegate (GetPreferredWidthForHeight_cb);
return GetPreferredWidthForHeight_cb_delegate;
}
}
static void OverrideGetPreferredWidthForHeight (GLib.GType gtype)
{
OverrideGetPreferredWidthForHeight (gtype, GetPreferredWidthForHeightVMCallback);
}
static void OverrideGetPreferredWidthForHeight (GLib.GType gtype, GetPreferredWidthForHeightNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_preferred_width_for_height"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void GetPreferredWidthForHeightNativeDelegate (IntPtr inst, IntPtr context, IntPtr widget, int height, out int minimum_width, out int natural_width);
static void GetPreferredWidthForHeight_cb (IntPtr inst, IntPtr context, IntPtr widget, int height, out int minimum_width, out int natural_width)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
__obj.OnGetPreferredWidthForHeight (GLib.Object.GetObject(context) as Gtk.CellAreaContext, GLib.Object.GetObject(widget) as Gtk.Widget, height, out minimum_width, out natural_width);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideGetPreferredWidthForHeight")]
protected virtual void OnGetPreferredWidthForHeight (Gtk.CellAreaContext context, Gtk.Widget widget, int height, out int minimum_width, out int natural_width)
{
InternalGetPreferredWidthForHeight (context, widget, height, out minimum_width, out natural_width);
}
private void InternalGetPreferredWidthForHeight (Gtk.CellAreaContext context, Gtk.Widget widget, int height, out int minimum_width, out int natural_width)
{
GetPreferredWidthForHeightNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_preferred_width_for_height"));
unmanaged = (GetPreferredWidthForHeightNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetPreferredWidthForHeightNativeDelegate));
}
if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke");
unmanaged (this.Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, height, out minimum_width, out natural_width);
}
static SetCellPropertyNativeDelegate SetCellProperty_cb_delegate;
static SetCellPropertyNativeDelegate SetCellPropertyVMCallback {
get {
if (SetCellProperty_cb_delegate == null)
SetCellProperty_cb_delegate = new SetCellPropertyNativeDelegate (SetCellProperty_cb);
return SetCellProperty_cb_delegate;
}
}
static void OverrideSetCellProperty (GLib.GType gtype)
{
OverrideSetCellProperty (gtype, SetCellPropertyVMCallback);
}
static void OverrideSetCellProperty (GLib.GType gtype, SetCellPropertyNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("set_cell_property"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void SetCellPropertyNativeDelegate (IntPtr inst, IntPtr renderer, uint property_id, IntPtr value, IntPtr pspec);
static void SetCellProperty_cb (IntPtr inst, IntPtr renderer, uint property_id, IntPtr value, IntPtr pspec)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
__obj.OnSetCellProperty (GLib.Object.GetObject(renderer) as Gtk.CellRenderer, property_id, (GLib.Value) Marshal.PtrToStructure (value, typeof (GLib.Value)), pspec);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideSetCellProperty")]
protected virtual void OnSetCellProperty (Gtk.CellRenderer renderer, uint property_id, GLib.Value value, IntPtr pspec)
{
InternalSetCellProperty (renderer, property_id, value, pspec);
}
private void InternalSetCellProperty (Gtk.CellRenderer renderer, uint property_id, GLib.Value value, IntPtr pspec)
{
SetCellPropertyNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("set_cell_property"));
unmanaged = (SetCellPropertyNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SetCellPropertyNativeDelegate));
}
if (unmanaged == null) return;
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
unmanaged (this.Handle, renderer == null ? IntPtr.Zero : renderer.Handle, property_id, native_value, pspec);
Marshal.FreeHGlobal (native_value);
}
static GetCellPropertyNativeDelegate GetCellProperty_cb_delegate;
static GetCellPropertyNativeDelegate GetCellPropertyVMCallback {
get {
if (GetCellProperty_cb_delegate == null)
GetCellProperty_cb_delegate = new GetCellPropertyNativeDelegate (GetCellProperty_cb);
return GetCellProperty_cb_delegate;
}
}
static void OverrideGetCellProperty (GLib.GType gtype)
{
OverrideGetCellProperty (gtype, GetCellPropertyVMCallback);
}
static void OverrideGetCellProperty (GLib.GType gtype, GetCellPropertyNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_cell_property"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void GetCellPropertyNativeDelegate (IntPtr inst, IntPtr renderer, uint property_id, IntPtr value, IntPtr pspec);
static void GetCellProperty_cb (IntPtr inst, IntPtr renderer, uint property_id, IntPtr value, IntPtr pspec)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
__obj.OnGetCellProperty (GLib.Object.GetObject(renderer) as Gtk.CellRenderer, property_id, (GLib.Value) Marshal.PtrToStructure (value, typeof (GLib.Value)), pspec);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideGetCellProperty")]
protected virtual void OnGetCellProperty (Gtk.CellRenderer renderer, uint property_id, GLib.Value value, IntPtr pspec)
{
InternalGetCellProperty (renderer, property_id, value, pspec);
}
private void InternalGetCellProperty (Gtk.CellRenderer renderer, uint property_id, GLib.Value value, IntPtr pspec)
{
GetCellPropertyNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_cell_property"));
unmanaged = (GetCellPropertyNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetCellPropertyNativeDelegate));
}
if (unmanaged == null) return;
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
unmanaged (this.Handle, renderer == null ? IntPtr.Zero : renderer.Handle, property_id, native_value, pspec);
Marshal.FreeHGlobal (native_value);
}
static FocusNativeDelegate Focus_cb_delegate;
static FocusNativeDelegate FocusVMCallback {
get {
if (Focus_cb_delegate == null)
Focus_cb_delegate = new FocusNativeDelegate (Focus_cb);
return Focus_cb_delegate;
}
}
static void OverrideFocus (GLib.GType gtype)
{
OverrideFocus (gtype, FocusVMCallback);
}
static void OverrideFocus (GLib.GType gtype, FocusNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("focus"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool FocusNativeDelegate (IntPtr inst, int direction);
static bool Focus_cb (IntPtr inst, int direction)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
bool __result;
__result = __obj.OnFocus ((Gtk.DirectionType) direction);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideFocus")]
protected virtual bool OnFocus (Gtk.DirectionType direction)
{
return InternalFocus (direction);
}
private bool InternalFocus (Gtk.DirectionType direction)
{
FocusNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("focus"));
unmanaged = (FocusNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(FocusNativeDelegate));
}
if (unmanaged == null) return false;
bool __result = unmanaged (this.Handle, (int) direction);
return __result;
}
static IsActivatableNativeDelegate IsActivatable_cb_delegate;
static IsActivatableNativeDelegate IsActivatableVMCallback {
get {
if (IsActivatable_cb_delegate == null)
IsActivatable_cb_delegate = new IsActivatableNativeDelegate (IsActivatable_cb);
return IsActivatable_cb_delegate;
}
}
static void OverrideIsActivatable (GLib.GType gtype)
{
OverrideIsActivatable (gtype, IsActivatableVMCallback);
}
static void OverrideIsActivatable (GLib.GType gtype, IsActivatableNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("is_activatable"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool IsActivatableNativeDelegate (IntPtr inst);
static bool IsActivatable_cb (IntPtr inst)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
bool __result;
__result = __obj.OnIsActivatable ();
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideIsActivatable")]
protected virtual bool OnIsActivatable ()
{
return InternalIsActivatable ();
}
private bool InternalIsActivatable ()
{
IsActivatableNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("is_activatable"));
unmanaged = (IsActivatableNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(IsActivatableNativeDelegate));
}
if (unmanaged == null) return false;
bool __result = unmanaged (this.Handle);
return __result;
}
static ActivateNativeDelegate Activate_cb_delegate;
static ActivateNativeDelegate ActivateVMCallback {
get {
if (Activate_cb_delegate == null)
Activate_cb_delegate = new ActivateNativeDelegate (Activate_cb);
return Activate_cb_delegate;
}
}
static void OverrideActivate (GLib.GType gtype)
{
OverrideActivate (gtype, ActivateVMCallback);
}
static void OverrideActivate (GLib.GType gtype, ActivateNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("activate"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool ActivateNativeDelegate (IntPtr inst, IntPtr context, IntPtr widget, IntPtr cell_area, int flags, bool edit_only);
static bool Activate_cb (IntPtr inst, IntPtr context, IntPtr widget, IntPtr cell_area, int flags, bool edit_only)
{
try {
CellArea __obj = GLib.Object.GetObject (inst, false) as CellArea;
bool __result;
__result = __obj.OnActivate (GLib.Object.GetObject(context) as Gtk.CellAreaContext, GLib.Object.GetObject(widget) as Gtk.Widget, (Gdk.Rectangle) Marshal.PtrToStructure (cell_area, typeof (Gdk.Rectangle)), (Gtk.CellRendererState) flags, edit_only);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.CellArea), ConnectionMethod="OverrideActivate")]
protected virtual bool OnActivate (Gtk.CellAreaContext context, Gtk.Widget widget, Gdk.Rectangle cell_area, Gtk.CellRendererState flags, bool edit_only)
{
return InternalActivate (context, widget, cell_area, flags, edit_only);
}
private bool InternalActivate (Gtk.CellAreaContext context, Gtk.Widget widget, Gdk.Rectangle cell_area, Gtk.CellRendererState flags, bool edit_only)
{
ActivateNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("activate"));
unmanaged = (ActivateNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ActivateNativeDelegate));
}
if (unmanaged == null) return false;
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area);
bool __result = unmanaged (this.Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, native_cell_area, (int) flags, edit_only);
Marshal.FreeHGlobal (native_cell_area);
return __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("add"
, GLib.Object.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // add
, null
, "remove"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("remove"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // remove
, "add"
, "foreach"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("foreach"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // foreach
, "remove"
, "foreach_alloc"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("foreach_alloc"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // foreach_alloc
, "foreach"
, "event"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("event"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // event
, "foreach_alloc"
, "render"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("render"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // render
, "event"
, "apply_attributes"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("apply_attributes"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // apply_attributes
, "render"
, "create_context"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("create_context"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // create_context
, "apply_attributes"
, "copy_context"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("copy_context"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // copy_context
, "create_context"
, "get_request_mode"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_request_mode"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_request_mode
, "copy_context"
, "get_preferred_width"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_preferred_width"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_preferred_width
, "get_request_mode"
, "get_preferred_height_for_width"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_preferred_height_for_width"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_preferred_height_for_width
, "get_preferred_width"
, "get_preferred_height"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_preferred_height"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_preferred_height
, "get_preferred_height_for_width"
, "get_preferred_width_for_height"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_preferred_width_for_height"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_preferred_width_for_height
, "get_preferred_height"
, "set_cell_property"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("set_cell_property"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // set_cell_property
, "get_preferred_width_for_height"
, "get_cell_property"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_cell_property"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_cell_property
, "set_cell_property"
, "focus"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("focus"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // focus
, "get_cell_property"
, "is_activatable"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("is_activatable"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // is_activatable
, "focus"
, "activate"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("activate"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // activate
, "is_activatable"
, "_gtk_reserved1"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gtk_reserved1"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // _gtk_reserved1
, "activate"
, "_gtk_reserved2"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gtk_reserved2"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // _gtk_reserved2
, "_gtk_reserved1"
, "_gtk_reserved3"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gtk_reserved3"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // _gtk_reserved3
, "_gtk_reserved2"
, "_gtk_reserved4"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gtk_reserved4"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // _gtk_reserved4
, "_gtk_reserved3"
, "_gtk_reserved5"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gtk_reserved5"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // _gtk_reserved5
, "_gtk_reserved4"
, "_gtk_reserved6"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gtk_reserved6"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // _gtk_reserved6
, "_gtk_reserved5"
, "_gtk_reserved7"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gtk_reserved7"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // _gtk_reserved7
, "_gtk_reserved6"
, "_gtk_reserved8"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gtk_reserved8"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // _gtk_reserved8
, "_gtk_reserved7"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_cell_area_activate(IntPtr raw, IntPtr context, IntPtr widget, IntPtr cell_area, int flags, bool edit_only);
public bool Activate(Gtk.CellAreaContext context, Gtk.Widget widget, Gdk.Rectangle cell_area, Gtk.CellRendererState flags, bool edit_only) {
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area);
bool raw_ret = gtk_cell_area_activate(Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, native_cell_area, (int) flags, edit_only);
bool ret = raw_ret;
Marshal.FreeHGlobal (native_cell_area);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_cell_area_activate_cell(IntPtr raw, IntPtr widget, IntPtr renderer, IntPtr evnt, IntPtr cell_area, int flags);
public bool ActivateCell(Gtk.Widget widget, Gtk.CellRenderer renderer, Gdk.Event evnt, Gdk.Rectangle cell_area, Gtk.CellRendererState flags) {
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area);
bool raw_ret = gtk_cell_area_activate_cell(Handle, widget == null ? IntPtr.Zero : widget.Handle, renderer == null ? IntPtr.Zero : renderer.Handle, evnt == null ? IntPtr.Zero : evnt.Handle, native_cell_area, (int) flags);
bool ret = raw_ret;
Marshal.FreeHGlobal (native_cell_area);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_add(IntPtr raw, IntPtr renderer);
public void Add(Gtk.CellRenderer renderer) {
gtk_cell_area_add(Handle, renderer == null ? IntPtr.Zero : renderer.Handle);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_add_focus_sibling(IntPtr raw, IntPtr renderer, IntPtr sibling);
public void AddFocusSibling(Gtk.CellRenderer renderer, Gtk.CellRenderer sibling) {
gtk_cell_area_add_focus_sibling(Handle, renderer == null ? IntPtr.Zero : renderer.Handle, sibling == null ? IntPtr.Zero : sibling.Handle);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_apply_attributes(IntPtr raw, IntPtr tree_model, IntPtr iter, bool is_expander, bool is_expanded);
public void ApplyAttributes(Gtk.ITreeModel tree_model, Gtk.TreeIter iter, bool is_expander, bool is_expanded) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
gtk_cell_area_apply_attributes(Handle, tree_model == null ? IntPtr.Zero : ((tree_model is GLib.Object) ? (tree_model as GLib.Object).Handle : (tree_model as Gtk.TreeModelAdapter).Handle), native_iter, is_expander, is_expanded);
Marshal.FreeHGlobal (native_iter);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_attribute_connect(IntPtr raw, IntPtr renderer, IntPtr attribute, int column);
public void AttributeConnect(Gtk.CellRenderer renderer, string attribute, int column) {
IntPtr native_attribute = GLib.Marshaller.StringToPtrGStrdup (attribute);
gtk_cell_area_attribute_connect(Handle, renderer == null ? IntPtr.Zero : renderer.Handle, native_attribute, column);
GLib.Marshaller.Free (native_attribute);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_attribute_disconnect(IntPtr raw, IntPtr renderer, IntPtr attribute);
public void AttributeDisconnect(Gtk.CellRenderer renderer, string attribute) {
IntPtr native_attribute = GLib.Marshaller.StringToPtrGStrdup (attribute);
gtk_cell_area_attribute_disconnect(Handle, renderer == null ? IntPtr.Zero : renderer.Handle, native_attribute);
GLib.Marshaller.Free (native_attribute);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gtk_cell_area_attribute_get_column(IntPtr raw, IntPtr renderer, IntPtr attribute);
public int AttributeGetColumn(Gtk.CellRenderer renderer, string attribute) {
IntPtr native_attribute = GLib.Marshaller.StringToPtrGStrdup (attribute);
int raw_ret = gtk_cell_area_attribute_get_column(Handle, renderer == null ? IntPtr.Zero : renderer.Handle, native_attribute);
int ret = raw_ret;
GLib.Marshaller.Free (native_attribute);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_cell_get_property(IntPtr raw, IntPtr renderer, IntPtr property_name, IntPtr value);
public void CellGetProperty(Gtk.CellRenderer renderer, string property_name, GLib.Value value) {
IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
gtk_cell_area_cell_get_property(Handle, renderer == null ? IntPtr.Zero : renderer.Handle, native_property_name, native_value);
GLib.Marshaller.Free (native_property_name);
Marshal.FreeHGlobal (native_value);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_cell_get_valist(IntPtr raw, IntPtr renderer, IntPtr first_property_name, IntPtr var_args);
public void CellGetValist(Gtk.CellRenderer renderer, string first_property_name, IntPtr var_args) {
IntPtr native_first_property_name = GLib.Marshaller.StringToPtrGStrdup (first_property_name);
gtk_cell_area_cell_get_valist(Handle, renderer == null ? IntPtr.Zero : renderer.Handle, native_first_property_name, var_args);
GLib.Marshaller.Free (native_first_property_name);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_cell_set_property(IntPtr raw, IntPtr renderer, IntPtr property_name, IntPtr value);
public void CellSetProperty(Gtk.CellRenderer renderer, string property_name, GLib.Value value) {
IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
gtk_cell_area_cell_set_property(Handle, renderer == null ? IntPtr.Zero : renderer.Handle, native_property_name, native_value);
GLib.Marshaller.Free (native_property_name);
Marshal.FreeHGlobal (native_value);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_cell_set_valist(IntPtr raw, IntPtr renderer, IntPtr first_property_name, IntPtr var_args);
public void CellSetValist(Gtk.CellRenderer renderer, string first_property_name, IntPtr var_args) {
IntPtr native_first_property_name = GLib.Marshaller.StringToPtrGStrdup (first_property_name);
gtk_cell_area_cell_set_valist(Handle, renderer == null ? IntPtr.Zero : renderer.Handle, native_first_property_name, var_args);
GLib.Marshaller.Free (native_first_property_name);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_cell_area_copy_context(IntPtr raw, IntPtr context);
public Gtk.CellAreaContext CopyContext(Gtk.CellAreaContext context) {
IntPtr raw_ret = gtk_cell_area_copy_context(Handle, context == null ? IntPtr.Zero : context.Handle);
Gtk.CellAreaContext ret = GLib.Object.GetObject(raw_ret) as Gtk.CellAreaContext;
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_cell_area_create_context(IntPtr raw);
public Gtk.CellAreaContext CreateContext() {
IntPtr raw_ret = gtk_cell_area_create_context(Handle);
Gtk.CellAreaContext ret = GLib.Object.GetObject(raw_ret) as Gtk.CellAreaContext;
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gtk_cell_area_event(IntPtr raw, IntPtr context, IntPtr widget, IntPtr evnt, IntPtr cell_area, int flags);
public int Event(Gtk.CellAreaContext context, Gtk.Widget widget, Gdk.Event evnt, Gdk.Rectangle cell_area, Gtk.CellRendererState flags) {
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area);
int raw_ret = gtk_cell_area_event(Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, evnt == null ? IntPtr.Zero : evnt.Handle, native_cell_area, (int) flags);
int ret = raw_ret;
Marshal.FreeHGlobal (native_cell_area);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_cell_area_focus(IntPtr raw, int direction);
public bool Focus(Gtk.DirectionType direction) {
bool raw_ret = gtk_cell_area_focus(Handle, (int) direction);
bool ret = raw_ret;
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_foreach(IntPtr raw, GtkSharp.CellCallbackNative cb, IntPtr callback_data);
public void Foreach(Gtk.CellCallback cb) {
GtkSharp.CellCallbackWrapper cb_wrapper = new GtkSharp.CellCallbackWrapper (cb);
gtk_cell_area_foreach(Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_foreach_alloc(IntPtr raw, IntPtr context, IntPtr widget, IntPtr cell_area, IntPtr background_area, GtkSharp.CellAllocCallbackNative cb, IntPtr callback_data);
public void ForeachAlloc(Gtk.CellAreaContext context, Gtk.Widget widget, Gdk.Rectangle cell_area, Gdk.Rectangle background_area, Gtk.CellAllocCallback cb) {
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area);
IntPtr native_background_area = GLib.Marshaller.StructureToPtrAlloc (background_area);
GtkSharp.CellAllocCallbackWrapper cb_wrapper = new GtkSharp.CellAllocCallbackWrapper (cb);
gtk_cell_area_foreach_alloc(Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, native_cell_area, native_background_area, cb_wrapper.NativeDelegate, IntPtr.Zero);
Marshal.FreeHGlobal (native_cell_area);
Marshal.FreeHGlobal (native_background_area);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_get_cell_allocation(IntPtr raw, IntPtr context, IntPtr widget, IntPtr renderer, IntPtr cell_area, IntPtr allocation);
public void GetCellAllocation(Gtk.CellAreaContext context, Gtk.Widget widget, Gtk.CellRenderer renderer, Gdk.Rectangle cell_area, Gdk.Rectangle allocation) {
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area);
IntPtr native_allocation = GLib.Marshaller.StructureToPtrAlloc (allocation);
gtk_cell_area_get_cell_allocation(Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, renderer == null ? IntPtr.Zero : renderer.Handle, native_cell_area, native_allocation);
Marshal.FreeHGlobal (native_cell_area);
Marshal.FreeHGlobal (native_allocation);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_cell_area_get_cell_at_position(IntPtr raw, IntPtr context, IntPtr widget, IntPtr cell_area, int x, int y, IntPtr alloc_area);
public Gtk.CellRenderer GetCellAtPosition(Gtk.CellAreaContext context, Gtk.Widget widget, Gdk.Rectangle cell_area, int x, int y, Gdk.Rectangle alloc_area) {
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area);
IntPtr native_alloc_area = GLib.Marshaller.StructureToPtrAlloc (alloc_area);
IntPtr raw_ret = gtk_cell_area_get_cell_at_position(Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, native_cell_area, x, y, native_alloc_area);
Gtk.CellRenderer ret = GLib.Object.GetObject(raw_ret) as Gtk.CellRenderer;
Marshal.FreeHGlobal (native_cell_area);
Marshal.FreeHGlobal (native_alloc_area);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_cell_area_get_current_path_string(IntPtr raw);
public string CurrentPathString {
get {
IntPtr raw_ret = gtk_cell_area_get_current_path_string(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_cell_area_get_edit_widget(IntPtr raw);
public Gtk.ICellEditable EditWidget {
get {
IntPtr raw_ret = gtk_cell_area_get_edit_widget(Handle);
Gtk.ICellEditable ret = Gtk.CellEditableAdapter.GetObject (raw_ret, false);
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_cell_area_get_edited_cell(IntPtr raw);
public Gtk.CellRenderer EditedCell {
get {
IntPtr raw_ret = gtk_cell_area_get_edited_cell(Handle);
Gtk.CellRenderer ret = GLib.Object.GetObject(raw_ret) as Gtk.CellRenderer;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_cell_area_get_focus_cell(IntPtr raw);
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_set_focus_cell(IntPtr raw, IntPtr renderer);
public Gtk.CellRenderer FocusCell {
get {
IntPtr raw_ret = gtk_cell_area_get_focus_cell(Handle);
Gtk.CellRenderer ret = GLib.Object.GetObject(raw_ret) as Gtk.CellRenderer;
return ret;
}
set {
gtk_cell_area_set_focus_cell(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_cell_area_get_focus_from_sibling(IntPtr raw, IntPtr renderer);
public Gtk.CellRenderer GetFocusFromSibling(Gtk.CellRenderer renderer) {
IntPtr raw_ret = gtk_cell_area_get_focus_from_sibling(Handle, renderer == null ? IntPtr.Zero : renderer.Handle);
Gtk.CellRenderer ret = GLib.Object.GetObject(raw_ret) as Gtk.CellRenderer;
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_cell_area_get_focus_siblings(IntPtr raw, IntPtr renderer);
public Gtk.CellRenderer[] GetFocusSiblings(Gtk.CellRenderer renderer) {
IntPtr raw_ret = gtk_cell_area_get_focus_siblings(Handle, renderer == null ? IntPtr.Zero : renderer.Handle);
Gtk.CellRenderer[] ret = (Gtk.CellRenderer[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), false, false, typeof(Gtk.CellRenderer));
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_get_preferred_height(IntPtr raw, IntPtr context, IntPtr widget, out int minimum_height, out int natural_height);
public void GetPreferredHeight(Gtk.CellAreaContext context, Gtk.Widget widget, out int minimum_height, out int natural_height) {
gtk_cell_area_get_preferred_height(Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, out minimum_height, out natural_height);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_get_preferred_height_for_width(IntPtr raw, IntPtr context, IntPtr widget, int width, out int minimum_height, out int natural_height);
public void GetPreferredHeightForWidth(Gtk.CellAreaContext context, Gtk.Widget widget, int width, out int minimum_height, out int natural_height) {
gtk_cell_area_get_preferred_height_for_width(Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, width, out minimum_height, out natural_height);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_get_preferred_width(IntPtr raw, IntPtr context, IntPtr widget, out int minimum_width, out int natural_width);
public void GetPreferredWidth(Gtk.CellAreaContext context, Gtk.Widget widget, out int minimum_width, out int natural_width) {
gtk_cell_area_get_preferred_width(Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, out minimum_width, out natural_width);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_get_preferred_width_for_height(IntPtr raw, IntPtr context, IntPtr widget, int height, out int minimum_width, out int natural_width);
public void GetPreferredWidthForHeight(Gtk.CellAreaContext context, Gtk.Widget widget, int height, out int minimum_width, out int natural_width) {
gtk_cell_area_get_preferred_width_for_height(Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, height, out minimum_width, out natural_width);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gtk_cell_area_get_request_mode(IntPtr raw);
public Gtk.SizeRequestMode RequestMode {
get {
int raw_ret = gtk_cell_area_get_request_mode(Handle);
Gtk.SizeRequestMode ret = (Gtk.SizeRequestMode) raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_cell_area_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gtk_cell_area_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_cell_area_has_renderer(IntPtr raw, IntPtr renderer);
public bool HasRenderer(Gtk.CellRenderer renderer) {
bool raw_ret = gtk_cell_area_has_renderer(Handle, renderer == null ? IntPtr.Zero : renderer.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_inner_cell_area(IntPtr raw, IntPtr widget, IntPtr cell_area, IntPtr inner_area);
public void InnerCellArea(Gtk.Widget widget, Gdk.Rectangle cell_area, Gdk.Rectangle inner_area) {
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area);
IntPtr native_inner_area = GLib.Marshaller.StructureToPtrAlloc (inner_area);
gtk_cell_area_inner_cell_area(Handle, widget == null ? IntPtr.Zero : widget.Handle, native_cell_area, native_inner_area);
Marshal.FreeHGlobal (native_cell_area);
Marshal.FreeHGlobal (native_inner_area);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_cell_area_is_activatable(IntPtr raw);
public bool IsActivatable {
get {
bool raw_ret = gtk_cell_area_is_activatable(Handle);
bool ret = raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_cell_area_is_focus_sibling(IntPtr raw, IntPtr renderer, IntPtr sibling);
public bool IsFocusSibling(Gtk.CellRenderer renderer, Gtk.CellRenderer sibling) {
bool raw_ret = gtk_cell_area_is_focus_sibling(Handle, renderer == null ? IntPtr.Zero : renderer.Handle, sibling == null ? IntPtr.Zero : sibling.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_remove(IntPtr raw, IntPtr renderer);
public void Remove(Gtk.CellRenderer renderer) {
gtk_cell_area_remove(Handle, renderer == null ? IntPtr.Zero : renderer.Handle);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_remove_focus_sibling(IntPtr raw, IntPtr renderer, IntPtr sibling);
public void RemoveFocusSibling(Gtk.CellRenderer renderer, Gtk.CellRenderer sibling) {
gtk_cell_area_remove_focus_sibling(Handle, renderer == null ? IntPtr.Zero : renderer.Handle, sibling == null ? IntPtr.Zero : sibling.Handle);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_render(IntPtr raw, IntPtr context, IntPtr widget, IntPtr cr, IntPtr background_area, IntPtr cell_area, int flags, bool paint_focus);
public void Render(Gtk.CellAreaContext context, Gtk.Widget widget, Cairo.Context cr, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.CellRendererState flags, bool paint_focus) {
IntPtr native_background_area = GLib.Marshaller.StructureToPtrAlloc (background_area);
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area);
gtk_cell_area_render(Handle, context == null ? IntPtr.Zero : context.Handle, widget == null ? IntPtr.Zero : widget.Handle, cr == null ? IntPtr.Zero : cr.Handle, native_background_area, native_cell_area, (int) flags, paint_focus);
Marshal.FreeHGlobal (native_background_area);
Marshal.FreeHGlobal (native_cell_area);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_request_renderer(IntPtr raw, IntPtr renderer, int orientation, IntPtr widget, int for_size, out int minimum_size, out int natural_size);
public void RequestRenderer(Gtk.CellRenderer renderer, Gtk.Orientation orientation, Gtk.Widget widget, int for_size, out int minimum_size, out int natural_size) {
gtk_cell_area_request_renderer(Handle, renderer == null ? IntPtr.Zero : renderer.Handle, (int) orientation, widget == null ? IntPtr.Zero : widget.Handle, for_size, out minimum_size, out natural_size);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_cell_area_stop_editing(IntPtr raw, bool canceled);
public void StopEditing(bool canceled) {
gtk_cell_area_stop_editing(Handle, canceled);
}
// 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("priv"
, GLib.Object.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}
|