GtkTreeModel
The tree interface used by GtkTreeView.
Йерархия на обектите
Реализарано от
Описание
Това е интефейс и не може да бъде стартиран директно.
The GtkTreeModel interface defines a generic tree interface for use by the GtkTreeView widget. It is an abstract interface, and is designed to be usable with any appropriate data structure. The programmer just has to implement this interface on their own data type for it to be viewable by a GtkTreeView widget.
Методи
foreach() Loop through all rows. get_column_type() Returns the type of the column. get_flags() Returns a set of flags supported by the interface. get_iter() Returns an iter for the given GtkTreePath. get_iter_first() Returns an iter to the first row. get_iter_root() DEPRECATED. Alias for get_iter_first(). get_iter_from_string() Convert the given string path to a valid path and return the iter. get_n_columns() Returns the number of columns used by tree_model. get_path() Returns a path to the given iterator. get_string_from_iter() Generates a string representation of the iter. get_value() Returns the value of a column of the given iter. iter_children() Returns iter for the first child row. iter_has_child() If an iterator has one or more children. iter_n_children() Returns the number of childen iter has. iter_next() Next iterator on the same level. iter_nth_child() FIXME: behavior needs to be changed iter_parent() FIXME: behavior needs to be changed ref_node() FIXME row_changed() Emits the "row_changed" signal. row_deleted() Emits the "row_deleted" signal. row_has_child_toggled() Emits the "row_has_child_toggled" signal. row_inserted() Emits the "row_inserted" signal. unref_node() FIXME get()
Сигнали
"row-changed" Row has been changed in the model. "row-deleted" Row has been deleted. ""row-deleted" Row has been deleted. "row-has-child-toggled" "row-inserted" The row has been inserted. "rows-reordered" Rows have been reordered.