class Gtk::TreeIter - gtk3-3.2.9 Documentation

# class Gtk::TreeIter

### Public Instance Methods

==(other) click to toggle source

    # File lib/gtk3/tree-iter.rb, line 80
    def ==(other)
      other.is_a?(self.class) and
        @model == other.model and
        path == other.path
    end

[](column)
Alias for: get_value
[]=(column, value)
Alias for: set_value
children() click to toggle source

    # File lib/gtk3/tree-iter.rb, line 72
    def children
      @model.iter_children(self)
    end

first_child() click to toggle source

    # File lib/gtk3/tree-iter.rb, line 76
    def first_child
      nth_child(0)
    end

get_value(column) click to toggle source

    # File lib/gtk3/tree-iter.rb, line 27
    def get_value(column)
      @model.get_value(self, column)
    end

Also aliased as: []
has_child?() click to toggle source

    # File lib/gtk3/tree-iter.rb, line 60
    def has_child?
      @model.iter_has_child(self)
    end

model() click to toggle source

    # File lib/gtk3/tree-iter.rb, line 19
    def model
      @model
    end

model=(model) click to toggle source

    # File lib/gtk3/tree-iter.rb, line 23
    def model=(model)
      @model = model
    end

n_children() click to toggle source

    # File lib/gtk3/tree-iter.rb, line 64
    def n_children
      @model.iter_n_children(self)
    end

next!() click to toggle source

    # File lib/gtk3/tree-iter.rb, line 52
    def next!
      @model.iter_next(self)
    end

nth_child(n) click to toggle source

    # File lib/gtk3/tree-iter.rb, line 68
    def nth_child(n)
      @model.iter_nth_child(self, n)
    end

parent() click to toggle source

    # File lib/gtk3/tree-iter.rb, line 56
    def parent
      @model.iter_parent(self)
    end

path() click to toggle source

    # File lib/gtk3/tree-iter.rb, line 44
    def path
      @model.get_path(self)
    end

previous!() click to toggle source

    # File lib/gtk3/tree-iter.rb, line 48
    def previous!
      @model.iter_previous(self)
    end

set_value(column, value) click to toggle source

    # File lib/gtk3/tree-iter.rb, line 32
    def set_value(column, value)
      gtype = @model.get_column_type(column)
      gvalue = GLib::Value.new(gtype, value)
      @model.set_value(self, column, gvalue)
    end

Also aliased as: []=
set_values(values) click to toggle source

    # File lib/gtk3/tree-iter.rb, line 39
    def set_values(values)
      @model.set_values(self, values)
    end

Also aliased as: values=
values=(values)
Alias for: set_values