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

Class InventoryStore

source code

Instance Methods [hide private]
 
get_inventory()
Gets the inventory a inventory store wraps.
source code
 
get_column_by_name(name)
Gets tree model column corresponding to a trait name.
source code
 
UNIMPLEMENTED_get_iter(name, iter)
Initializes a tree iterator to row corresponding to a inventory item.
source code
 
UNIMPLEMENTED_iter_is_valid(iter)
Checks if the given iter is a valid iter for this inventory store.
source code
Method Details [hide private]

get_inventory()

source code 

Gets the inventory a inventory store wraps.

Returns:
The underlying inventory (its reference count is not increased).

get_column_by_name(name)

source code 

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

UNIMPLEMENTED_get_iter(name, iter)

source code 

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)

source code 

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.