# module Gtk::TreeModel

### Public Instance Methods

get_column_type(index) click to toggle source

    # File lib/gtk3/tree-model.rb, line 104
    def get_column_type(index)
      (@column_types ||= {})[index] ||= get_column_type_raw(index)
    end

Also aliased as: get_column_type_raw
get_column_type_raw(index)
Alias for: get_column_type
get_iter(path) click to toggle source

    # File lib/gtk3/tree-model.rb, line 20
    def get_iter(path)
      if path.is_a?(String)
        got, iter = get_iter_from_string(path)
      else
        got, iter = get_iter_raw(path)
      end

      if got
        setup_iter(iter)
        iter
      else
        nil
      end
    end

Also aliased as: get_iter_raw
get_iter_raw(path)
Alias for: get_iter
get_value(iter, column) click to toggle source

    # File lib/gtk3/tree-model.rb, line 58
    def get_value(iter, column)
      get_value_raw(iter, column).value
    end

Also aliased as: get_value_raw
get_value_raw(iter, column)
Alias for: get_value
iter_children(iter) click to toggle source

    # File lib/gtk3/tree-model.rb, line 74
    def iter_children(iter)
      got, iter = iter_children_raw(iter)
      if got
        setup_iter(iter)
        iter
      else
        nil
      end
    end

Also aliased as: iter_children_raw
iter_children_raw(iter)
Alias for: iter_children
iter_first() click to toggle source

    # File lib/gtk3/tree-model.rb, line 36
    def iter_first
      got, iter = iter_first_raw
      if got
        setup_iter(iter)
        iter
      else
        nil
      end
    end

Also aliased as: iter_first_raw
iter_first_raw()
Alias for: iter_first
iter_nth_child(iter, n) click to toggle source

    # File lib/gtk3/tree-model.rb, line 63
    def iter_nth_child(iter, n)
      got, iter = iter_nth_child_raw(iter, n)
      if got
        setup_iter(iter)
        iter
      else
        nil
      end
    end

Also aliased as: iter_nth_child_raw
iter_nth_child_raw(iter, n)
Alias for: iter_nth_child
iter_parent(iter) click to toggle source

    # File lib/gtk3/tree-model.rb, line 47
    def iter_parent(iter)
      got, iter = iter_parent_raw(iter)
      if got
        setup_iter(iter)
        iter
      else
        nil
      end
    end

Also aliased as: iter_parent_raw
iter_parent_raw(iter)
Alias for: iter_parent
set_values(iter, values) click to toggle source

    # File lib/gtk3/tree-model.rb, line 84
    def set_values(iter, values)
      columns = []
      _values = []
      if values.is_a?(Hash)
        values.each do |column_id, value|
          type = get_column_type(column_id)
          columns << column_id
          _values << GLib::Value.new(type, value)
        end
      else
        values.each_with_index do |value, i|
          type = get_column_type(i)
          columns << i
          _values << GLib::Value.new(type, value)
        end
      end
      set(iter, columns, _values)
    end

### Private Instance Methods

setup_iter(iter) click to toggle source

    # File lib/gtk3/tree-model.rb, line 111
    def setup_iter(iter)
      iter.model = self
    end