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
|
// included by gtk2.pas
{$IFDEF read_forward_definitions}
{$ENDIF read_forward_definitions}
//------------------------------------------------------------------------------
{$IFDEF read_interface_types}
{ < private > }
{ sort information }
{ default sort }
{ signal ids }
PGtkTreeModelSort = ^TGtkTreeModelSort;
TGtkTreeModelSort = record
parent : TGObject;
root : gpointer;
stamp : gint;
child_flags : guint;
child_model : PGtkTreeModel;
zero_ref_count : gint;
sort_list : PGList;
sort_column_id : gint;
order : TGtkSortType;
default_sort_func : TGtkTreeIterCompareFunc;
default_sort_data : gpointer;
default_sort_destroy : TGtkDestroyNotify;
changed_id : guint;
inserted_id : guint;
has_child_toggled_id : guint;
deleted_id : guint;
reordered_id : guint;
end;
{ Padding for future expansion }
PGtkTreeModelSortClass = ^TGtkTreeModelSortClass;
TGtkTreeModelSortClass = record
parent_class : TGObjectClass;
_gtk_reserved1 : procedure ; cdecl;
_gtk_reserved2 : procedure ; cdecl;
_gtk_reserved3 : procedure ; cdecl;
_gtk_reserved4 : procedure ; cdecl;
end;
{$ENDIF read_interface_types}
//------------------------------------------------------------------------------
{$IFDEF read_interface_rest}
function GTK_TYPE_TREE_MODEL_SORT : GType;
function GTK_TREE_MODEL_SORT(obj: pointer) : PGtkTreeModelSort;
function GTK_TREE_MODEL_SORT_CLASS(klass: pointer) : PGtkTreeModelSortClass;
function GTK_IS_TREE_MODEL_SORT(obj: pointer) : boolean;
function GTK_IS_TREE_MODEL_SORT_CLASS(klass: pointer) : boolean;
function GTK_TREE_MODEL_SORT_GET_CLASS(obj: pointer) : PGtkTreeModelSortClass;
function gtk_tree_model_sort_get_type:GType; cdecl; external gtklib;
function gtk_tree_model_sort_new_with_model(child_model:PGtkTreeModel):PGtkTreeModel; cdecl; external gtklib;
function gtk_tree_model_sort_get_model(tree_model:PGtkTreeModelSort):PGtkTreeModel; cdecl; external gtklib;
function gtk_tree_model_sort_convert_child_path_to_path(tree_model_sort:PGtkTreeModelSort; child_path:PGtkTreePath):PGtkTreePath; cdecl; external gtklib;
procedure gtk_tree_model_sort_convert_child_iter_to_iter(tree_model_sort:PGtkTreeModelSort; sort_iter:PGtkTreeIter; child_iter:PGtkTreeIter); cdecl; external gtklib;
function gtk_tree_model_sort_convert_path_to_child_path(tree_model_sort:PGtkTreeModelSort; sorted_path:PGtkTreePath):PGtkTreePath; cdecl; external gtklib;
procedure gtk_tree_model_sort_convert_iter_to_child_iter(tree_model_sort:PGtkTreeModelSort; child_iter:PGtkTreeIter; sorted_iter:PGtkTreeIter); cdecl; external gtklib;
procedure gtk_tree_model_sort_reset_default_sort_func(tree_model_sort:PGtkTreeModelSort); cdecl; external gtklib;
procedure gtk_tree_model_sort_clear_cache(tree_model_sort:PGtkTreeModelSort); cdecl; external gtklib;
{$ENDIF read_interface_rest}
//------------------------------------------------------------------------------
{$IFDEF read_implementation}
function GTK_TYPE_TREE_MODEL_SORT : GType;
begin
GTK_TYPE_TREE_MODEL_SORT:=gtk_tree_model_sort_get_type;
end;
function GTK_TREE_MODEL_SORT(obj: pointer) : PGtkTreeModelSort;
begin
GTK_TREE_MODEL_SORT:=PGtkTreeModelSort(GTK_CHECK_CAST(obj,GTK_TYPE_TREE_MODEL_SORT));
end;
function GTK_TREE_MODEL_SORT_CLASS(klass: pointer) : PGtkTreeModelSortClass;
begin
GTK_TREE_MODEL_SORT_CLASS:=PGtkTreeModelSortClass(GTK_CHECK_CLASS_CAST(klass,GTK_TYPE_TREE_MODEL_SORT));
end;
function GTK_IS_TREE_MODEL_SORT(obj: pointer) : boolean;
begin
GTK_IS_TREE_MODEL_SORT:=GTK_CHECK_TYPE(obj,GTK_TYPE_TREE_MODEL_SORT);
end;
function GTK_IS_TREE_MODEL_SORT_CLASS(klass: pointer) : boolean;
begin
GTK_IS_TREE_MODEL_SORT_CLASS:=GTK_CHECK_CLASS_TYPE(klass,GTK_TYPE_TREE_MODEL_SORT);
end;
function GTK_TREE_MODEL_SORT_GET_CLASS(obj: pointer) : PGtkTreeModelSortClass;
begin
GTK_TREE_MODEL_SORT_GET_CLASS:=PGtkTreeModelSortClass(GTK_CHECK_GET_CLASS(obj,GTK_TYPE_TREE_MODEL_SORT));
end;
{$ENDIF read_implementation}
// included by gtk2.pas
|