Class: Gtk::TreeStore

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk3/tree-store.rb

Instance Method Summary collapse

Constructor Details

#initialize(*column_types) ⇒ TreeStore

Returns a new instance of TreeStore.



20
21
22
# File 'lib/gtk3/tree-store.rb', line 20

def initialize(*column_types)
  initialize_raw(column_types)
end

Instance Method Details

#append(parent) ⇒ Object



54
55
56
57
58
# File 'lib/gtk3/tree-store.rb', line 54

def append(parent)
  iter = append_raw(parent)
  setup_iter(iter)
  iter
end

#append_rawObject



53
# File 'lib/gtk3/tree-store.rb', line 53

alias_method :append_raw, :append

#initialize_rawObject



19
# File 'lib/gtk3/tree-store.rb', line 19

alias_method :initialize_raw, :initialize

#insert(parent, position, values = nil) ⇒ Object



25
26
27
28
29
30
# File 'lib/gtk3/tree-store.rb', line 25

def insert(parent, position, values=nil)
  iter = insert_raw(parent, position)
  setup_iter(iter)
  set_values(iter, values) if values
  iter
end

#insert_after(parent, sibling) ⇒ Object



40
41
42
43
44
# File 'lib/gtk3/tree-store.rb', line 40

def insert_after(parent, sibling)
  iter = insert_after_raw(parent, sibling)
  setup_iter(iter)
  iter
end

#insert_after_rawObject



39
# File 'lib/gtk3/tree-store.rb', line 39

alias_method :insert_after_raw, :insert_after

#insert_before(parent, sibling) ⇒ Object



33
34
35
36
37
# File 'lib/gtk3/tree-store.rb', line 33

def insert_before(parent, sibling)
  iter = insert_before_raw(parent, sibling)
  setup_iter(iter)
  iter
end

#insert_before_rawObject



32
# File 'lib/gtk3/tree-store.rb', line 32

alias_method :insert_before_raw, :insert_before

#insert_rawObject



24
# File 'lib/gtk3/tree-store.rb', line 24

alias_method :insert_raw, :insert

#prepend(parent) ⇒ Object



47
48
49
50
51
# File 'lib/gtk3/tree-store.rb', line 47

def prepend(parent)
  iter = prepend_raw(parent)
  setup_iter(iter)
  iter
end

#prepend_rawObject



46
# File 'lib/gtk3/tree-store.rb', line 46

alias_method :prepend_raw, :prepend