ruby-****@sourc*****
ruby-****@sourc*****
2014年 6月 16日 (月) 18:56:55 JST
------------------------- REMOTE_ADDR = 106.188.103.9 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi?Gtk%3A%3ATreeSelection ------------------------- @@ -1,17 +1,17 @@ -= class Gtk::TreeSelection += Gtk::TreeSelection クラス The Gtk::TreeSelection object is a helper object to manage the selection for a Gtk::TreeView widget. The Gtk::TreeSelection object is automatically created when a new Gtk::TreeView widget is created, and cannot exist independentally of this widget. The primary reason the Gtk::TreeSelection objects exists is for cleanliness of code and API. That is, there is no conceptual reason all these methods could not be methods on the Gtk::TreeView widget instead of a separate methods. The Gtk::TreeSelection object is gotten from a Gtk::TreeView by calling Gtk::TreeView#selection. It can be manipulated to check the selection status of the tree, as well as select and deselect individual rows. Selection is done completely view side. As a result, multiple views of the same model can have completely different selections. Additionally, you cannot change the selection of a row on the model that is not currently displayed by the view without expanding its parents first. One of the important things to remember when monitoring the selection of a view is that the "changed" signal is mostly a hint. That is, it may only emit one signal when a range of rows is selected. Additionally, it may on occasion emit a "changed" signal when nothing has happened (mostly as a result of programmers calling select_row on an already selected row). -== Object Hierarchy +== オブジェクト階層 * Object * GLib::Instantiatable * GLib::Object * Gtk::TreeSelection -== Instance Methods +== インスタンスメソッド --- mode Gets the selection mode for selection. See Gtk::TreeSelection#mode=. * Returns: the current selection mode @@ -94,13 +94,23 @@ * end_path: The final node of the range. * Returns: self -== Signals +--- unselect_range() + ((*要編集*)) + +--- count_selected_rows() + ((*要編集*)) + +--- selected_rows() + ((*要編集*)) + +== シグナル --- changed: self Emitted whenever the selection has (possibly) changed. Please note that this signal is mostly a hint. It may only be emitted once when a range of rows are selected, and it may occasionally be emitted when nothing has happened. * self: Gtk::TreeSelection -== See Also +== 関連ページ Gtk::TreeView, Gtk::TreeViewColumn, Gtk::TreeDragDest, Gtk::TreeDragSource, Gtk::TreeModel, Gtk::TreeSortable, Gtk::TreeModelSort, Gtk::ListStore, Gtk::TreeStore, Gtk::CellRenderer, Gtk::CellEditable, Gtk::CellRendererPixbuf, Gtk::CellRendererText, Gtk::CellRendererToggle - -- ((<Masao>)) \ No newline at end of file +== 更新履歴 +* 2014-06-16 クラスのメンバで漏れていたものを追加。 - ((<きたがわ>)) +* - ((<Masao>))