Module gwy :: Class InventoryStore
[show private | hide private]
[frames | no frames]

Class InventoryStore


Method Summary
  get_column_by_name(name)
Gets tree model column corresponding to a trait name.
  get_inventory()
Gets the inventory a inventory store wraps.
  UNIMPLEMENTED_get_iter(name, iter)
Initializes a tree iterator to row corresponding to a inventory item.
  UNIMPLEMENTED_iter_is_valid(iter)
Checks if the given iter is a valid iter for this inventory store.

Method Details

get_column_by_name(name)

Gets tree model column corresponding to a trait name.

The underlying inventory must support trait names, except for name <literal>"item"</literal> which always works (and always maps to 0).
Parameters:
name - Trait (column) name. (string)
Returns:
The underlying inventory (its reference count is not increased).

get_inventory()

Gets the inventory a inventory store wraps.
Returns:
The underlying inventory (its reference count is not increased).

UNIMPLEMENTED_get_iter(name, iter)

Initializes a tree iterator to row corresponding to a inventory item.
Parameters:
name - Item name. (string)
iter - Tree iterator to set to point to item named name. (GtkTreeIter*)
Returns:
True if iter is valid, that is the item exists, False if iter was not set.

UNIMPLEMENTED_iter_is_valid(iter)

Checks if the given iter is a valid iter for this inventory store.

<warning>This function is slow. Only use it for debugging and/or testing purposes.</warning>
Parameters:
iter - A GtkTreeIter. (GtkTreeIter*)
Returns:
True if the iter is valid, False if the iter is invalid.

Generated by Epydoc 2.1 on Tue Dec 30 04:01:41 2008 http://epydoc.sf.net