ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 24日 (金) 10:07:16 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-rr ------------------------- @@ -50,7 +50,21 @@ GTK+ providess the Gtk::TreeIter object, which can be used to reference a specific row within a Gtk::TreeModel. These iterators are used internally by models, which means you never directly alter the contents of an iterator. -A Gtk::TreeIter is a reference to a specific node on a specific model. These are filled in by the model in a model-specific way. One can convert a path to an iterator by calling Gtk::TreeModel#get_iter. These iterators are the primary way of accessing a model and are similar to the iterators used by Gtk::TextBuffer. They are generally statically allocated on the heap and only used for a short time. The model interface defines a set of operations using them for navigating the model. +A Gtk::TreeIter is a reference to a specific node on a specific model. These are filled in by the model in a model-specific way. One can convert a path to an iterator by calling Gtk::TreeModel#get_iter. These iterators are the primary way of accessing a model and are similar to the iterators used by Gtk::TextBuffer. They are generally statically allocated on the heap and only used for a short time. The model interfaces define a sets of operations for navigating the model: + + + +:In Gtk::ListStore we have methods: + + Gtk::ListStore#insert(position), Gtk::ListStore#insert_before(sibling), Gtk::ListStore#insert_after(sibling), Gtk::ListStore#prepend, Gtk::ListStore#append, Gtk::ListStore#swap(a, b), Gtk::ListStore#move_before(iter, position), Gtk::ListStore#move_after(iter, position) and Gtk::ListStore#each. + + + +:In Gtk::TreeStore we have methods: + + Gtk::TreeStore#insert(parent, position), Gtk::TreeStore#insert(parent, position, values), Gtk::TreeStore#insert_before(parent, sibling), Gtk::TreeStore#insert_after(parent, sibling), Gtk::TreeStore#prepend(parent), Gtk::TreeStore#append(parent), Gtk::TreeStore#swap(a, b), Gtk::TreeStore#move_before(iter, position), Gtk::TreeStore#move_after(iter, position) and Gtk::TreeStore#each. + + === Tree Row References