GtkTreeModelSort

Name

GtkTreeModelSort -- 

Synopsis


#include <gtk/gtk.h>


struct      GtkTreeModelSort;
gint        (*GValueCompareFunc)            (const GValue *a,
                                             const GValue *b);
GtkTreeModel* gtk_tree_model_sort_new       (void);
GtkTreeModel* gtk_tree_model_sort_new_with_model
                                            (GtkTreeModel *child_model,
                                             GValueCompareFunc func,
                                             gint sort_col);
void        gtk_tree_model_sort_set_model   (GtkTreeModelSort *tree_model_sort,
                                             GtkTreeModel *child_model);
GtkTreePath* gtk_tree_model_sort_convert_path
                                            (GtkTreeModelSort *tree_model_sort,
                                             GtkTreePath *child_path);
void        gtk_tree_model_sort_convert_iter
                                            (GtkTreeModelSort *tree_model_sort,
                                             GtkTreeIter *sort_iter,
                                             GtkTreeIter *child_iter);

Description

Details

struct GtkTreeModelSort

struct GtkTreeModelSort
{
  GObject parent;

  /* < private > */
  gpointer root;
  gint stamp;
  guint flags;
  GtkTreeModel *child_model;
  gint sort_col;
  GValueCompareFunc func;

  guint changed_id;
  guint inserted_id;
  guint has_child_toggled_id;
  guint deleted_id;
};


GValueCompareFunc ()

gint        (*GValueCompareFunc)            (const GValue *a,
                                             const GValue *b);

a : 
b : 
Returns : 


gtk_tree_model_sort_new ()

GtkTreeModel* gtk_tree_model_sort_new       (void);

Returns : 


gtk_tree_model_sort_new_with_model ()

GtkTreeModel* gtk_tree_model_sort_new_with_model
                                            (GtkTreeModel *child_model,
                                             GValueCompareFunc func,
                                             gint sort_col);

child_model : 
func : 
sort_col : 
Returns : 


gtk_tree_model_sort_set_model ()

void        gtk_tree_model_sort_set_model   (GtkTreeModelSort *tree_model_sort,
                                             GtkTreeModel *child_model);

Sets the model of tree_model_sort to be model. If model is NULL, then the old model is unset.

tree_model_sort : The GtkTreeModelSort.
child_model : A GtkTreeModel, or NULL.


gtk_tree_model_sort_convert_path ()

GtkTreePath* gtk_tree_model_sort_convert_path
                                            (GtkTreeModelSort *tree_model_sort,
                                             GtkTreePath *child_path);

Converts the child_path to a new path, relative to the sorted position. In other words, the value found in the tree_model_sort ->child_model at the child_path, is identical to that found in the tree_model_sort and the return value.

tree_model_sort : The GtkTreeModelSort.
child_path : A GtkTreePath, relative to the child model.
Returns : A new path, or NULL if child_path does not exist in tree_model_sort ->child_model.


gtk_tree_model_sort_convert_iter ()

void        gtk_tree_model_sort_convert_iter
                                            (GtkTreeModelSort *tree_model_sort,
                                             GtkTreeIter *sort_iter,
                                             GtkTreeIter *child_iter);

tree_model_sort : 
sort_iter : 
child_iter :