OssoABookRowModel

OssoABookRowModel — An interface for quick GtkTreeModel row access.

Synopsis

                    OssoABookRowModel;
                    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

OssoABookRowModel

typedef struct _OssoABookRowModel OssoABookRowModel;

Dummy type for the OssoABookRowModel interface.


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);

Retreives 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);

Retreives 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