Class: Gtk::TreeModelFilter
- Inherits:
-
Object
- Object
- Gtk::TreeModelFilter
- Defined in:
- lib/gtk3/tree-model-filter.rb
Instance Method Summary collapse
- #convert_child_iter_to_iter(child_iter) ⇒ Object
- #convert_child_iter_to_iter_raw ⇒ Object
- #convert_iter_to_child_iter(iter) ⇒ Object
- #convert_iter_to_child_iter_raw ⇒ Object
-
#initialize(child_model, root = nil) ⇒ TreeModelFilter
constructor
A new instance of TreeModelFilter.
- #set_modify_func(*types, &block) ⇒ Object
- #set_modify_func_raw ⇒ Object
Constructor Details
#initialize(child_model, root = nil) ⇒ TreeModelFilter
Returns a new instance of TreeModelFilter.
19 20 21 |
# File 'lib/gtk3/tree-model-filter.rb', line 19 def initialize(child_model, root=nil) super(:child_model => child_model, :virtual_root => root) end |
Instance Method Details
#convert_child_iter_to_iter(child_iter) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/gtk3/tree-model-filter.rb', line 37 def convert_child_iter_to_iter(child_iter) converted, iter = convert_child_iter_to_iter_raw(child_iter) return nil unless converted iter.model = self iter end |
#convert_child_iter_to_iter_raw ⇒ Object
36 |
# File 'lib/gtk3/tree-model-filter.rb', line 36 alias_method :convert_child_iter_to_iter_raw, :convert_child_iter_to_iter |
#convert_iter_to_child_iter(iter) ⇒ Object
30 31 32 33 34 |
# File 'lib/gtk3/tree-model-filter.rb', line 30 def convert_iter_to_child_iter(iter) child_iter = convert_iter_to_child_iter_raw(iter) child_iter.model = model child_iter end |
#convert_iter_to_child_iter_raw ⇒ Object
29 |
# File 'lib/gtk3/tree-model-filter.rb', line 29 alias_method :convert_iter_to_child_iter_raw, :convert_iter_to_child_iter |
#set_modify_func(*types, &block) ⇒ Object
24 25 26 27 |
# File 'lib/gtk3/tree-model-filter.rb', line 24 def set_modify_func(*types, &block) raise ArgumentError, "one or more types are required" if types.empty? set_modify_func_raw(types, &block) end |
#set_modify_func_raw ⇒ Object
23 |
# File 'lib/gtk3/tree-model-filter.rb', line 23 alias_method :set_modify_func_raw, :set_modify_func |