TestWindow.ComboStore

Undocumented in source.
class TestWindow
class ComboStore : TreeStore {}

Constructors

this
this()
Undocumented in source.

Inherited Members

From TreeStore

gtkTreeStore
GtkTreeStore* gtkTreeStore;

the main Gtk struct

getTreeStoreStruct
GtkTreeStore* getTreeStoreStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

__anonymous
mixin BuildableT!(GtkTreeStore)
Undocumented in source.
__anonymous
mixin TreeDragDestT!(GtkTreeStore)
Undocumented in source.
__anonymous
mixin TreeDragSourceT!(GtkTreeStore)
Undocumented in source.
__anonymous
mixin TreeModelT!(GtkTreeStore)
Undocumented in source.
__anonymous
mixin TreeSortableT!(GtkTreeStore)
Undocumented in source.
createIter
TreeIter createIter(TreeIter parent)

Creates a top level iteractor. I don't think lists have but the top level iteractor

setValue
void setValue(TreeIter iter, int column, TYPE value)

Sets one value into one cells. \todo confirm we need to destroy the Value instance

set
void set(TreeIter iter, int[] columns, char*[] values)
void set(TreeIter iter, int[] columns, string[] values)

sets the values for one row

set
void set(TreeIter iter, TreeNode treeNode)

Sets an iteractor values from a tree node. This is the way to add a new row to the tree, the iteractor is either a top level iteractor created from createIter() or a nested iteractor created from append()

prepend
TreeIter prepend(TreeIter parent)

Creates and prepends a new row to tree_store. If parent is non-NULL, then it will prepend the new row before the first child of parent, otherwise it will prepend a row to the top level. iter will be changed to point to this new row. The row will be empty after this function is called. To fill in values, you need to call gtk_tree_store_set() or gtk_tree_store_set_value().

append
TreeIter append(TreeIter parent)

Creates and appends a new row to tree_store. If parent is non-NULL, then it will append the new row after the last child of parent, otherwise it will append a row to the top level. iter will be changed to point to this new row. The row will be empty after this function is called. To fill in values, you need to call gtk_tree_store_set() or gtk_tree_store_set_value().

getType
GType getType()
append
void append(TreeIter iter, TreeIter parent)

Appends a new row to @tree_store. If @parent is non-%NULL, then it will append the new row after the last child of @parent, otherwise it will append a row to the top level. @iter will be changed to point to this new row. The row will be empty after this function is called. To fill in values, you need to call gtk_tree_store_set() or gtk_tree_store_set_value().

clear
void clear()

Removes all rows from @tree_store

insert
void insert(TreeIter iter, TreeIter parent, int position)

Creates a new row at @position. If parent is non-%NULL, then the row will be made a child of @parent. Otherwise, the row will be created at the toplevel. If @position is -1 or is larger than the number of rows at that level, then the new row will be inserted to the end of the list. @iter will be changed to point to this new row. The row will be empty after this function is called. To fill in values, you need to call gtk_tree_store_set() or gtk_tree_store_set_value().

insertAfter
void insertAfter(TreeIter iter, TreeIter parent, TreeIter sibling)

Inserts a new row after @sibling. If @sibling is %NULL, then the row will be prepended to @parent ’s children. If @parent and @sibling are %NULL, then the row will be prepended to the toplevel. If both @sibling and @parent are set, then @parent must be the parent of @sibling. When @sibling is set, @parent is optional.

insertBefore
void insertBefore(TreeIter iter, TreeIter parent, TreeIter sibling)

Inserts a new row before @sibling. If @sibling is %NULL, then the row will be appended to @parent ’s children. If @parent and @sibling are %NULL, then the row will be appended to the toplevel. If both @sibling and @parent are set, then @parent must be the parent of @sibling. When @sibling is set, @parent is optional.

insertWithValuesv
void insertWithValuesv(TreeIter iter, TreeIter parent, int position, int[] columns, Value[] values)

A variant of gtk_tree_store_insert_with_values() which takes the columns and values as two arrays, instead of varargs. This function is mainly intended for language bindings.

isAncestor
bool isAncestor(TreeIter iter, TreeIter descendant)

Returns %TRUE if @iter is an ancestor of @descendant. That is, @iter is the parent (or grandparent or great-grandparent) of @descendant.

iterDepth
int iterDepth(TreeIter iter)

Returns the depth of @iter. This will be 0 for anything on the root level, 1 for anything down a level, etc.

iterIsValid
bool iterIsValid(TreeIter iter)

WARNING: This function is slow. Only use it for debugging and/or testing purposes.

moveAfter
void moveAfter(TreeIter iter, TreeIter position)

Moves @iter in @tree_store to the position after @position. @iter and @position should be in the same level. Note that this function only works with unsorted stores. If @position is %NULL, @iter will be moved to the start of the level.

moveBefore
void moveBefore(TreeIter iter, TreeIter position)

Moves @iter in @tree_store to the position before @position. @iter and @position should be in the same level. Note that this function only works with unsorted stores. If @position is %NULL, @iter will be moved to the end of the level.

prepend
void prepend(TreeIter iter, TreeIter parent)

Prepends a new row to @tree_store. If @parent is non-%NULL, then it will prepend the new row before the first child of @parent, otherwise it will prepend a row to the top level. @iter will be changed to point to this new row. The row will be empty after this function is called. To fill in values, you need to call gtk_tree_store_set() or gtk_tree_store_set_value().

remove
bool remove(TreeIter iter)

Removes @iter from @tree_store. After being removed, @iter is set to the next valid row at that level, or invalidated if it previously pointed to the last one.

reorder
void reorder(TreeIter parent, int[] newOrder)

Reorders the children of @parent in @tree_store to follow the order indicated by @new_order. Note that this function only works with unsorted stores.

setColumnTypes
void setColumnTypes(GType[] types)

This function is meant primarily for #GObjects that inherit from #GtkTreeStore, and should only be used when constructing a new #GtkTreeStore. It will not function after a row has been added, or a method on the #GtkTreeModel interface is called.

setValist
void setValist(TreeIter iter, void* varArgs)

See gtk_tree_store_set(); this version takes a va_list for use by language bindings.

setValue
void setValue(TreeIter iter, int column, Value value)

Sets the data in the cell specified by @iter and @column. The type of @value must be convertible to the type of the column.

setValuesv
void setValuesv(TreeIter iter, int[] columns, Value[] values)

A variant of gtk_tree_store_set_valist() which takes the columns and values as two arrays, instead of varargs. This function is mainly intended for language bindings or in case the number of columns to change is not known until run-time.

swap
void swap(TreeIter a, TreeIter b)

Swaps @a and @b in the same level of @tree_store. Note that this function only works with unsorted stores.

Meta