OssoABookRowModel

OssoABookRowModel — An interface for quick GtkTreeModel row access.

Synopsis

                    OssoABookRowModelIface;
gpointer            osso_abook_row_model_iter_get_row   (OssoABookRowModel *model,
                                                         GtkTreeIter *iter);
gboolean            osso_abook_row_model_row_get_iter   (OssoABookRowModel *model,
                                                         gconstpointer row,
                                                         GtkTreeIter *iter);

Description

The OssoABookRowModel interface can be used in custom GtkTreeModel implementations to provide quick access to the tree model's internal row data.

Details

OssoABookRowModelIface

typedef struct {
  gpointer (*iter_get_row) (OssoABookRowModel *model,
                            GtkTreeIter       *iter);
  gboolean (*row_get_iter) (OssoABookRowModel *model,
                            gconstpointer      row,
                            GtkTreeIter       *iter);
} OssoABookRowModelIface;

Virtual methods of the OssoABookRowModel interface.

iter_get_row () virtual method for osso_abook_row_model_iter_get_row()
row_get_iter () virtual method for osso_abook_row_model_row_get_iter()

osso_abook_row_model_iter_get_row ()

gpointer            osso_abook_row_model_iter_get_row   (OssoABookRowModel *model,
                                                         GtkTreeIter *iter);

Retrieves the internal row representation for this tree model.

model : a OssoABookRowModel
iter : the GtkTreeIter of the row
Returns : A row of the GtkTreeModel.

osso_abook_row_model_row_get_iter ()

gboolean            osso_abook_row_model_row_get_iter   (OssoABookRowModel *model,
                                                         gconstpointer row,
                                                         GtkTreeIter *iter);

Retrieves the GtkTreeIter for an internal row the tree model.

model : a OssoABookRowModel
row : the row to lookup
iter : storage for the GtkTreeIter of the row
Returns : TRUE when row is an internal row, FALSE otherwise.

See Also

EBookView