ruby-****@sourc*****
ruby-****@sourc*****
2014年 6月 16日 (月) 18:45:26 JST
------------------------- REMOTE_ADDR = 106.188.103.9 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi?Gtk%3A%3ATreeModelFilter ------------------------- @@ -1,28 +1,30 @@ -= class Gtk::TreeModelFilter += Gtk::TreeModelFilter クラス A Gtk::TreeModelFilter is a tree model which wraps another tree model, and can do the following things: * Filter specific rows, based on data from a "visible column", a column storing booleans indicating whether the row should be filtered or not, or based on the return value of a "visible function", which gets a model, iter and user_data and returns a boolean indicating whether the row should be filtered or not. * Modify the "appearance" of the model, using a modify function. This is extremely powerful and allows for just changing some values and also for creating a completely different model based on the given child model. * Set a different root node, also known as a "virtual root". You can pass in a GtkTreePath indicating the root node for the filter at construction time. -== Object Hierarchy +== オブジェクト階層 * Object * GLib::Instantiatable * GLib::Object * Gtk::TreeModelFilter -== Included Modules +== インクルードされているモジュール + * Gtk::TreeDragSource * Gtk::TreeModel +* GLib::Interface -== Class Methods +== クラスメソッド --- Gtk::TreeModelFilter.new(child_model, root = nil) Creates a new Gtk::TreeModel, with child_model as the child_model and root as the virtual root. ((*Since 2.4*)) * child_model: A Gtk::TreeModel. * root: A Gtk::TreePath or nil. * Returns: A new Gtk::TreeModel -== Instance Methods +== インスタンスメソッド --- set_visible_func{|model, iter| ... } Sets the visible function as block used when filtering the filter. The block should return true if the given row should be visible and false otherwise. ((*Since 2.4*)) * {|model, iter| ... }: A block which decides whether the row indicated by iter is visible. this should return true if the given row should be visible and false otherwise @@ -85,10 +87,16 @@ Gets the model for the filtermodel to filter. ((*Since 2.4*)) * Returns: The model for the filtermodel to filter --- child_model=(child_model) + ((*存在しない?*)) + Sets the model for the filtermodel to filter. ((*Since 2.4*)) * child_model: The Gtk::TreeModel for the filtermodel to filter * Returns: child_model --- set_child_model(child_model) + ((*存在しない?*)) + Same as Gtk::TreeModelFilter#child_model=. ((*Since 2.4*)) * child_model: The Gtk::TreeModel for the filtermodel to filter * Returns: self @@ -97,23 +103,34 @@ Gets the virtual root (relative to the child model) for this filtermodel. ((*Since 2.4*)) * Returns: The virtual root (relative to the child model) for this filtermodel --- virtual_root=(virtual_root) + ((*存在しない?*)) + Sets the virtual root (relative to the child model) for this filtermodel. ((*Since 2.4*)) * virtual_root: The virtual root (relative to the child model) for this filtermodel (Gtk::TreePath) * Returns: virtual_root --- set_virtual_root(virtual_root) + ((*存在しない?*)) + Same as Gtk::TreeModelFilter#virtual_root=. ((*Since 2.4*)) * virtual_root: The virtual root (relative to the child model) for this filtermodel (Gtk::TreePath) * Returns: self -== Properties +== プロパティ --- child-model: Gtk::TreeModel (Read/Write) The model for the filtermodel to filter ((*Since 2.4*)) --- virtual-root: Gtk::TreePath (Read/Write) The virtual root (relative to the child model) for this filtermodel ((*Since 2.4*)) -== See Also +== 関連ページ Gtk::TreeModelSort -== ChangeLog +== 更新履歴 +* 2014-06-16 クラスのメンバ項目の存在チェック("存在しない?"とマーク)。 - ((<きたがわ>)) * 2005-05-06 Added - ((<Masao>))