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
|
// 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 TreeModelSort : GLib.Object, Gtk.ITreeModel, Gtk.ITreeSortable, Gtk.ITreeDragSource {
public TreeModelSort (IntPtr raw) : base(raw) {}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_tree_model_sort_new_with_model(IntPtr child_model);
public TreeModelSort (Gtk.ITreeModel child_model) : base (IntPtr.Zero)
{
if (GetType () != typeof (TreeModelSort)) {
var vals = new List<GLib.Value> ();
var names = new List<string> ();
if (child_model != null) {
names.Add ("model");
vals.Add (new GLib.Value (child_model));
}
CreateNativeObject (names.ToArray (), vals.ToArray ());
return;
}
Raw = gtk_tree_model_sort_new_with_model(child_model == null ? IntPtr.Zero : ((child_model is GLib.Object) ? (child_model as GLib.Object).Handle : (child_model as Gtk.TreeModelAdapter).Handle));
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_tree_model_sort_get_model(IntPtr raw);
[GLib.Property ("model")]
public Gtk.ITreeModel Model {
get {
IntPtr raw_ret = gtk_tree_model_sort_get_model(Handle);
Gtk.ITreeModel ret = Gtk.TreeModelAdapter.GetObject (raw_ret, false);
return ret;
}
}
// 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("_gtk_reserved1"
, GLib.Object.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // _gtk_reserved1
, null
, "_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"
, 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 void gtk_tree_model_sort_clear_cache(IntPtr raw);
public void ClearCache() {
gtk_tree_model_sort_clear_cache(Handle);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_model_sort_convert_child_iter_to_iter(IntPtr raw, IntPtr sort_iter, IntPtr child_iter);
public bool ConvertChildIterToIter(out Gtk.TreeIter sort_iter, Gtk.TreeIter child_iter) {
IntPtr native_sort_iter = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gtk.TreeIter)));
IntPtr native_child_iter = GLib.Marshaller.StructureToPtrAlloc (child_iter);
bool raw_ret = gtk_tree_model_sort_convert_child_iter_to_iter(Handle, native_sort_iter, native_child_iter);
bool ret = raw_ret;
sort_iter = Gtk.TreeIter.New (native_sort_iter);
Marshal.FreeHGlobal (native_sort_iter);
Marshal.FreeHGlobal (native_child_iter);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_tree_model_sort_convert_child_path_to_path(IntPtr raw, IntPtr child_path);
public Gtk.TreePath ConvertChildPathToPath(Gtk.TreePath child_path) {
IntPtr raw_ret = gtk_tree_model_sort_convert_child_path_to_path(Handle, child_path == null ? IntPtr.Zero : child_path.Handle);
Gtk.TreePath ret = raw_ret == IntPtr.Zero ? null : (Gtk.TreePath) GLib.Opaque.GetOpaque (raw_ret, typeof (Gtk.TreePath), true);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_model_sort_convert_iter_to_child_iter(IntPtr raw, IntPtr child_iter, IntPtr sorted_iter);
public Gtk.TreeIter ConvertIterToChildIter(Gtk.TreeIter sorted_iter) {
Gtk.TreeIter child_iter;
IntPtr native_child_iter = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gtk.TreeIter)));
IntPtr native_sorted_iter = GLib.Marshaller.StructureToPtrAlloc (sorted_iter);
gtk_tree_model_sort_convert_iter_to_child_iter(Handle, native_child_iter, native_sorted_iter);
child_iter = Gtk.TreeIter.New (native_child_iter);
Marshal.FreeHGlobal (native_child_iter);
Marshal.FreeHGlobal (native_sorted_iter);
return child_iter;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_tree_model_sort_convert_path_to_child_path(IntPtr raw, IntPtr sorted_path);
public Gtk.TreePath ConvertPathToChildPath(Gtk.TreePath sorted_path) {
IntPtr raw_ret = gtk_tree_model_sort_convert_path_to_child_path(Handle, sorted_path == null ? IntPtr.Zero : sorted_path.Handle);
Gtk.TreePath ret = raw_ret == IntPtr.Zero ? null : (Gtk.TreePath) GLib.Opaque.GetOpaque (raw_ret, typeof (Gtk.TreePath), true);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_tree_model_sort_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gtk_tree_model_sort_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_model_sort_iter_is_valid(IntPtr raw, IntPtr iter);
public bool IterIsValid(Gtk.TreeIter iter) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
bool raw_ret = gtk_tree_model_sort_iter_is_valid(Handle, native_iter);
bool ret = raw_ret;
Marshal.FreeHGlobal (native_iter);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_model_sort_reset_default_sort_func(IntPtr raw);
public void ResetDefaultSortFunc() {
gtk_tree_model_sort_reset_default_sort_func(Handle);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_model_foreach(IntPtr raw, GtkSharp.TreeModelForeachFuncNative func, IntPtr user_data);
public void Foreach(Gtk.TreeModelForeachFunc func) {
GtkSharp.TreeModelForeachFuncWrapper func_wrapper = new GtkSharp.TreeModelForeachFuncWrapper (func);
gtk_tree_model_foreach(Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_tree_model_get_column_type(IntPtr raw, int index_);
public GLib.GType GetColumnType(int index_) {
IntPtr raw_ret = gtk_tree_model_get_column_type(Handle, index_);
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gtk_tree_model_get_flags(IntPtr raw);
public Gtk.TreeModelFlags Flags {
get {
int raw_ret = gtk_tree_model_get_flags(Handle);
Gtk.TreeModelFlags ret = (Gtk.TreeModelFlags) raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_model_get_iter(IntPtr raw, IntPtr iter, IntPtr path);
public bool GetIter(out Gtk.TreeIter iter, Gtk.TreePath path) {
IntPtr native_iter = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gtk.TreeIter)));
bool raw_ret = gtk_tree_model_get_iter(Handle, native_iter, path == null ? IntPtr.Zero : path.Handle);
bool ret = raw_ret;
iter = Gtk.TreeIter.New (native_iter);
Marshal.FreeHGlobal (native_iter);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_model_get_iter_first(IntPtr raw, IntPtr iter);
public bool GetIterFirst(out Gtk.TreeIter iter) {
IntPtr native_iter = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gtk.TreeIter)));
bool raw_ret = gtk_tree_model_get_iter_first(Handle, native_iter);
bool ret = raw_ret;
iter = Gtk.TreeIter.New (native_iter);
Marshal.FreeHGlobal (native_iter);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_model_get_iter_from_string(IntPtr raw, IntPtr iter, IntPtr path_string);
public bool GetIterFromString(out Gtk.TreeIter iter, string path_string) {
IntPtr native_iter = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gtk.TreeIter)));
IntPtr native_path_string = GLib.Marshaller.StringToPtrGStrdup (path_string);
bool raw_ret = gtk_tree_model_get_iter_from_string(Handle, native_iter, native_path_string);
bool ret = raw_ret;
iter = Gtk.TreeIter.New (native_iter);
Marshal.FreeHGlobal (native_iter);
GLib.Marshaller.Free (native_path_string);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gtk_tree_model_get_n_columns(IntPtr raw);
public int NColumns {
get {
int raw_ret = gtk_tree_model_get_n_columns(Handle);
int ret = raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_tree_model_get_path(IntPtr raw, IntPtr iter);
public Gtk.TreePath GetPath(Gtk.TreeIter iter) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
IntPtr raw_ret = gtk_tree_model_get_path(Handle, native_iter);
Gtk.TreePath ret = raw_ret == IntPtr.Zero ? null : (Gtk.TreePath) GLib.Opaque.GetOpaque (raw_ret, typeof (Gtk.TreePath), true);
Marshal.FreeHGlobal (native_iter);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_tree_model_get_string_from_iter(IntPtr raw, IntPtr iter);
public string GetStringFromIter(Gtk.TreeIter iter) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
IntPtr raw_ret = gtk_tree_model_get_string_from_iter(Handle, native_iter);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
Marshal.FreeHGlobal (native_iter);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_model_get_valist(IntPtr raw, IntPtr iter, IntPtr var_args);
public void GetValist(Gtk.TreeIter iter, IntPtr var_args) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
gtk_tree_model_get_valist(Handle, native_iter, var_args);
Marshal.FreeHGlobal (native_iter);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_model_get_value(IntPtr raw, IntPtr iter, int column, IntPtr value);
public void GetValue(Gtk.TreeIter iter, int column, ref GLib.Value value) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
gtk_tree_model_get_value(Handle, native_iter, column, native_value);
Marshal.FreeHGlobal (native_iter);
value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value));
Marshal.FreeHGlobal (native_value);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_model_iter_children(IntPtr raw, IntPtr iter, IntPtr parent);
public bool IterChildren(out Gtk.TreeIter iter, Gtk.TreeIter parent) {
IntPtr native_iter = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gtk.TreeIter)));
IntPtr native_parent = GLib.Marshaller.StructureToPtrAlloc (parent);
bool raw_ret = gtk_tree_model_iter_children(Handle, native_iter, native_parent);
bool ret = raw_ret;
iter = Gtk.TreeIter.New (native_iter);
Marshal.FreeHGlobal (native_iter);
Marshal.FreeHGlobal (native_parent);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_model_iter_has_child(IntPtr raw, IntPtr iter);
public bool IterHasChild(Gtk.TreeIter iter) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
bool raw_ret = gtk_tree_model_iter_has_child(Handle, native_iter);
bool ret = raw_ret;
Marshal.FreeHGlobal (native_iter);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gtk_tree_model_iter_n_children(IntPtr raw, IntPtr iter);
public int IterNChildren(Gtk.TreeIter iter) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
int raw_ret = gtk_tree_model_iter_n_children(Handle, native_iter);
int ret = raw_ret;
Marshal.FreeHGlobal (native_iter);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_model_iter_next(IntPtr raw, IntPtr iter);
public bool IterNext(ref Gtk.TreeIter iter) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
bool raw_ret = gtk_tree_model_iter_next(Handle, native_iter);
bool ret = raw_ret;
iter = Gtk.TreeIter.New (native_iter);
Marshal.FreeHGlobal (native_iter);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_model_iter_nth_child(IntPtr raw, IntPtr iter, IntPtr parent, int n);
public bool IterNthChild(out Gtk.TreeIter iter, Gtk.TreeIter parent, int n) {
IntPtr native_iter = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gtk.TreeIter)));
IntPtr native_parent = GLib.Marshaller.StructureToPtrAlloc (parent);
bool raw_ret = gtk_tree_model_iter_nth_child(Handle, native_iter, native_parent, n);
bool ret = raw_ret;
iter = Gtk.TreeIter.New (native_iter);
Marshal.FreeHGlobal (native_iter);
Marshal.FreeHGlobal (native_parent);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_model_iter_parent(IntPtr raw, IntPtr iter, IntPtr child);
public bool IterParent(out Gtk.TreeIter iter, Gtk.TreeIter child) {
IntPtr native_iter = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gtk.TreeIter)));
IntPtr native_child = GLib.Marshaller.StructureToPtrAlloc (child);
bool raw_ret = gtk_tree_model_iter_parent(Handle, native_iter, native_child);
bool ret = raw_ret;
iter = Gtk.TreeIter.New (native_iter);
Marshal.FreeHGlobal (native_iter);
Marshal.FreeHGlobal (native_child);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_model_iter_previous(IntPtr raw, IntPtr iter);
public bool IterPrevious(ref Gtk.TreeIter iter) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
bool raw_ret = gtk_tree_model_iter_previous(Handle, native_iter);
bool ret = raw_ret;
iter = Gtk.TreeIter.New (native_iter);
Marshal.FreeHGlobal (native_iter);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_model_ref_node(IntPtr raw, IntPtr iter);
public void RefNode(Gtk.TreeIter iter) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
gtk_tree_model_ref_node(Handle, native_iter);
Marshal.FreeHGlobal (native_iter);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_model_row_changed(IntPtr raw, IntPtr path, IntPtr iter);
public void EmitRowChanged(Gtk.TreePath path, Gtk.TreeIter iter) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
gtk_tree_model_row_changed(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter);
Marshal.FreeHGlobal (native_iter);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_model_row_deleted(IntPtr raw, IntPtr path);
public void EmitRowDeleted(Gtk.TreePath path) {
gtk_tree_model_row_deleted(Handle, path == null ? IntPtr.Zero : path.Handle);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_model_row_has_child_toggled(IntPtr raw, IntPtr path, IntPtr iter);
public void EmitRowHasChildToggled(Gtk.TreePath path, Gtk.TreeIter iter) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
gtk_tree_model_row_has_child_toggled(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter);
Marshal.FreeHGlobal (native_iter);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_model_row_inserted(IntPtr raw, IntPtr path, IntPtr iter);
public void EmitRowInserted(Gtk.TreePath path, Gtk.TreeIter iter) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
gtk_tree_model_row_inserted(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter);
Marshal.FreeHGlobal (native_iter);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_model_rows_reordered(IntPtr raw, IntPtr path, IntPtr iter, int[] new_order);
public void EmitRowsReordered(Gtk.TreePath path, Gtk.TreeIter iter, int[] new_order) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
gtk_tree_model_rows_reordered(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter, new_order);
Marshal.FreeHGlobal (native_iter);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_model_rows_reordered_with_length(IntPtr raw, IntPtr path, IntPtr iter, out int new_order, int length);
public int RowsReorderedWithLength(Gtk.TreePath path, Gtk.TreeIter iter, int length) {
int new_order;
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
gtk_tree_model_rows_reordered_with_length(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter, out new_order, length);
Marshal.FreeHGlobal (native_iter);
return new_order;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_model_unref_node(IntPtr raw, IntPtr iter);
public void UnrefNode(Gtk.TreeIter iter) {
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter);
gtk_tree_model_unref_node(Handle, native_iter);
Marshal.FreeHGlobal (native_iter);
}
[GLib.Signal("row-changed")]
public event Gtk.RowChangedHandler RowChanged {
add {
this.AddSignalHandler ("row-changed", value, typeof (Gtk.RowChangedArgs));
}
remove {
this.RemoveSignalHandler ("row-changed", value);
}
}
[GLib.Signal("row-has-child-toggled")]
public event Gtk.RowHasChildToggledHandler RowHasChildToggled {
add {
this.AddSignalHandler ("row-has-child-toggled", value, typeof (Gtk.RowHasChildToggledArgs));
}
remove {
this.RemoveSignalHandler ("row-has-child-toggled", value);
}
}
[GLib.Signal("row-inserted")]
public event Gtk.RowInsertedHandler RowInserted {
add {
this.AddSignalHandler ("row-inserted", value, typeof (Gtk.RowInsertedArgs));
}
remove {
this.RemoveSignalHandler ("row-inserted", value);
}
}
[GLib.Signal("row-deleted")]
public event Gtk.RowDeletedHandler RowDeleted {
add {
this.AddSignalHandler ("row-deleted", value, typeof (Gtk.RowDeletedArgs));
}
remove {
this.RemoveSignalHandler ("row-deleted", value);
}
}
static RowChangedNativeDelegate RowChanged_cb_delegate;
static RowChangedNativeDelegate RowChangedVMCallback {
get {
if (RowChanged_cb_delegate == null)
RowChanged_cb_delegate = new RowChangedNativeDelegate (RowChanged_cb);
return RowChanged_cb_delegate;
}
}
static void OverrideRowChanged (GLib.GType gtype)
{
OverrideRowChanged (gtype, RowChangedVMCallback);
}
static void OverrideRowChanged (GLib.GType gtype, RowChangedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "row-changed", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void RowChangedNativeDelegate (IntPtr inst, IntPtr path, IntPtr iter);
static void RowChanged_cb (IntPtr inst, IntPtr path, IntPtr iter)
{
try {
Gtk.TreeModelSort __obj = GLib.Object.GetObject (inst, false) as Gtk.TreeModelSort;
__obj.OnRowChanged (path == IntPtr.Zero ? null : (Gtk.TreePath) GLib.Opaque.GetOpaque (path, typeof (Gtk.TreePath), false), Gtk.TreeIter.New (iter));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.TreeModelSort), ConnectionMethod="OverrideRowChanged")]
protected virtual void OnRowChanged (Gtk.TreePath path, Gtk.TreeIter iter)
{
InternalRowChanged (path, iter);
}
private void InternalRowChanged (Gtk.TreePath path, Gtk.TreeIter iter)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (path);
inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (iter);
inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
static RowInsertedNativeDelegate RowInserted_cb_delegate;
static RowInsertedNativeDelegate RowInsertedVMCallback {
get {
if (RowInserted_cb_delegate == null)
RowInserted_cb_delegate = new RowInsertedNativeDelegate (RowInserted_cb);
return RowInserted_cb_delegate;
}
}
static void OverrideRowInserted (GLib.GType gtype)
{
OverrideRowInserted (gtype, RowInsertedVMCallback);
}
static void OverrideRowInserted (GLib.GType gtype, RowInsertedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "row-inserted", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void RowInsertedNativeDelegate (IntPtr inst, IntPtr path, IntPtr iter);
static void RowInserted_cb (IntPtr inst, IntPtr path, IntPtr iter)
{
try {
Gtk.TreeModelSort __obj = GLib.Object.GetObject (inst, false) as Gtk.TreeModelSort;
__obj.OnRowInserted (path == IntPtr.Zero ? null : (Gtk.TreePath) GLib.Opaque.GetOpaque (path, typeof (Gtk.TreePath), false), Gtk.TreeIter.New (iter));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.TreeModelSort), ConnectionMethod="OverrideRowInserted")]
protected virtual void OnRowInserted (Gtk.TreePath path, Gtk.TreeIter iter)
{
InternalRowInserted (path, iter);
}
private void InternalRowInserted (Gtk.TreePath path, Gtk.TreeIter iter)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (path);
inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (iter);
inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
static RowHasChildToggledNativeDelegate RowHasChildToggled_cb_delegate;
static RowHasChildToggledNativeDelegate RowHasChildToggledVMCallback {
get {
if (RowHasChildToggled_cb_delegate == null)
RowHasChildToggled_cb_delegate = new RowHasChildToggledNativeDelegate (RowHasChildToggled_cb);
return RowHasChildToggled_cb_delegate;
}
}
static void OverrideRowHasChildToggled (GLib.GType gtype)
{
OverrideRowHasChildToggled (gtype, RowHasChildToggledVMCallback);
}
static void OverrideRowHasChildToggled (GLib.GType gtype, RowHasChildToggledNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "row-has-child-toggled", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void RowHasChildToggledNativeDelegate (IntPtr inst, IntPtr path, IntPtr iter);
static void RowHasChildToggled_cb (IntPtr inst, IntPtr path, IntPtr iter)
{
try {
Gtk.TreeModelSort __obj = GLib.Object.GetObject (inst, false) as Gtk.TreeModelSort;
__obj.OnRowHasChildToggled (path == IntPtr.Zero ? null : (Gtk.TreePath) GLib.Opaque.GetOpaque (path, typeof (Gtk.TreePath), false), Gtk.TreeIter.New (iter));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.TreeModelSort), ConnectionMethod="OverrideRowHasChildToggled")]
protected virtual void OnRowHasChildToggled (Gtk.TreePath path, Gtk.TreeIter iter)
{
InternalRowHasChildToggled (path, iter);
}
private void InternalRowHasChildToggled (Gtk.TreePath path, Gtk.TreeIter iter)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (path);
inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (iter);
inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
static RowDeletedNativeDelegate RowDeleted_cb_delegate;
static RowDeletedNativeDelegate RowDeletedVMCallback {
get {
if (RowDeleted_cb_delegate == null)
RowDeleted_cb_delegate = new RowDeletedNativeDelegate (RowDeleted_cb);
return RowDeleted_cb_delegate;
}
}
static void OverrideRowDeleted (GLib.GType gtype)
{
OverrideRowDeleted (gtype, RowDeletedVMCallback);
}
static void OverrideRowDeleted (GLib.GType gtype, RowDeletedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "row-deleted", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void RowDeletedNativeDelegate (IntPtr inst, IntPtr path);
static void RowDeleted_cb (IntPtr inst, IntPtr path)
{
try {
Gtk.TreeModelSort __obj = GLib.Object.GetObject (inst, false) as Gtk.TreeModelSort;
__obj.OnRowDeleted (path == IntPtr.Zero ? null : (Gtk.TreePath) GLib.Opaque.GetOpaque (path, typeof (Gtk.TreePath), false));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.TreeModelSort), ConnectionMethod="OverrideRowDeleted")]
protected virtual void OnRowDeleted (Gtk.TreePath path)
{
InternalRowDeleted (path);
}
private void InternalRowDeleted (Gtk.TreePath path)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
GLib.Value[] vals = new GLib.Value [2];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (path);
inst_and_params.Append (vals [1]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_sortable_get_sort_column_id(IntPtr raw, out int sort_column_id, out int order);
public bool GetSortColumnId(out int sort_column_id, out Gtk.SortType order) {
int native_order;
bool raw_ret = gtk_tree_sortable_get_sort_column_id(Handle, out sort_column_id, out native_order);
bool ret = raw_ret;
order = (Gtk.SortType) native_order;
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_sortable_has_default_sort_func(IntPtr raw);
public bool HasDefaultSortFunc {
get {
bool raw_ret = gtk_tree_sortable_has_default_sort_func(Handle);
bool ret = raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_sortable_set_default_sort_func(IntPtr raw, GtkSharp.TreeIterCompareFuncNative sort_func, IntPtr user_data, GLib.DestroyNotify destroy);
public Gtk.TreeIterCompareFunc DefaultSortFunc {
set {
GtkSharp.TreeIterCompareFuncWrapper value_wrapper = new GtkSharp.TreeIterCompareFuncWrapper (value);
IntPtr user_data;
GLib.DestroyNotify destroy;
if (value == null) {
user_data = IntPtr.Zero;
destroy = null;
} else {
user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
destroy = GLib.DestroyHelper.NotifyHandler;
}
gtk_tree_sortable_set_default_sort_func(Handle, value_wrapper.NativeDelegate, user_data, destroy);
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_sortable_set_sort_column_id(IntPtr raw, int sort_column_id, int order);
public void SetSortColumnId(int sort_column_id, Gtk.SortType order) {
gtk_tree_sortable_set_sort_column_id(Handle, sort_column_id, (int) order);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_sortable_set_sort_func(IntPtr raw, int sort_column_id, GtkSharp.TreeIterCompareFuncNative sort_func, IntPtr user_data, GLib.DestroyNotify destroy);
public void SetSortFunc(int sort_column_id, Gtk.TreeIterCompareFunc sort_func) {
GtkSharp.TreeIterCompareFuncWrapper sort_func_wrapper = new GtkSharp.TreeIterCompareFuncWrapper (sort_func);
IntPtr user_data;
GLib.DestroyNotify destroy;
if (sort_func == null) {
user_data = IntPtr.Zero;
destroy = null;
} else {
user_data = (IntPtr) GCHandle.Alloc (sort_func_wrapper);
destroy = GLib.DestroyHelper.NotifyHandler;
}
gtk_tree_sortable_set_sort_func(Handle, sort_column_id, sort_func_wrapper.NativeDelegate, user_data, destroy);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_tree_sortable_sort_column_changed(IntPtr raw);
public void ChangeSortColumn() {
gtk_tree_sortable_sort_column_changed(Handle);
}
[GLib.Signal("sort-column-changed")]
public event System.EventHandler SortColumnChanged {
add {
this.AddSignalHandler ("sort-column-changed", value);
}
remove {
this.RemoveSignalHandler ("sort-column-changed", value);
}
}
static SortColumnChangedNativeDelegate SortColumnChanged_cb_delegate;
static SortColumnChangedNativeDelegate SortColumnChangedVMCallback {
get {
if (SortColumnChanged_cb_delegate == null)
SortColumnChanged_cb_delegate = new SortColumnChangedNativeDelegate (SortColumnChanged_cb);
return SortColumnChanged_cb_delegate;
}
}
static void OverrideSortColumnChanged (GLib.GType gtype)
{
OverrideSortColumnChanged (gtype, SortColumnChangedVMCallback);
}
static void OverrideSortColumnChanged (GLib.GType gtype, SortColumnChangedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "sort-column-changed", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void SortColumnChangedNativeDelegate (IntPtr inst);
static void SortColumnChanged_cb (IntPtr inst)
{
try {
Gtk.TreeModelSort __obj = GLib.Object.GetObject (inst, false) as Gtk.TreeModelSort;
__obj.OnSortColumnChanged ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gtk.TreeModelSort), ConnectionMethod="OverrideSortColumnChanged")]
protected virtual void OnSortColumnChanged ()
{
InternalSortColumnChanged ();
}
private void InternalSortColumnChanged ()
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
GLib.Value[] vals = new GLib.Value [1];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_drag_source_drag_data_delete(IntPtr raw, IntPtr path);
public bool DragDataDelete(Gtk.TreePath path) {
bool raw_ret = gtk_tree_drag_source_drag_data_delete(Handle, path == null ? IntPtr.Zero : path.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_drag_source_drag_data_get(IntPtr raw, IntPtr path, IntPtr selection_data);
public bool DragDataGet(Gtk.TreePath path, Gtk.SelectionData selection_data) {
bool raw_ret = gtk_tree_drag_source_drag_data_get(Handle, path == null ? IntPtr.Zero : path.Handle, selection_data == null ? IntPtr.Zero : selection_data.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_tree_drag_source_row_draggable(IntPtr raw, IntPtr path);
public bool RowDraggable(Gtk.TreePath path) {
bool raw_ret = gtk_tree_drag_source_row_draggable(Handle, path == null ? IntPtr.Zero : path.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("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
}
}
|