Class: Gtk::TreeStore
- Inherits:
-
Object
- Object
- Gtk::TreeStore
- Defined in:
- lib/gtk4/tree-store.rb
Instance Method Summary collapse
- #append(parent) ⇒ Object
- #append_raw ⇒ Object
-
#initialize(*column_types) ⇒ TreeStore
constructor
A new instance of TreeStore.
- #initialize_raw ⇒ Object
- #insert(parent, position, values = nil) ⇒ Object
- #insert_after(parent, sibling) ⇒ Object
- #insert_after_raw ⇒ Object
- #insert_before(parent, sibling) ⇒ Object
- #insert_before_raw ⇒ Object
- #insert_raw ⇒ Object
- #prepend(parent) ⇒ Object
- #prepend_raw ⇒ Object
Constructor Details
#initialize(*column_types) ⇒ TreeStore
Returns a new instance of TreeStore.
20 21 22 |
# File 'lib/gtk4/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/gtk4/tree-store.rb', line 54 def append(parent) iter = append_raw(parent) setup_iter(iter) iter end |
#append_raw ⇒ Object
53 |
# File 'lib/gtk4/tree-store.rb', line 53 alias_method :append_raw, :append |
#initialize_raw ⇒ Object
19 |
# File 'lib/gtk4/tree-store.rb', line 19 alias_method :initialize_raw, :initialize |
#insert(parent, position, values = nil) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/gtk4/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/gtk4/tree-store.rb', line 40 def insert_after(parent, sibling) iter = insert_after_raw(parent, sibling) setup_iter(iter) iter end |
#insert_after_raw ⇒ Object
39 |
# File 'lib/gtk4/tree-store.rb', line 39 alias_method :insert_after_raw, :insert_after |
#insert_before(parent, sibling) ⇒ Object
33 34 35 36 37 |
# File 'lib/gtk4/tree-store.rb', line 33 def insert_before(parent, sibling) iter = insert_before_raw(parent, sibling) setup_iter(iter) iter end |
#insert_before_raw ⇒ Object
32 |
# File 'lib/gtk4/tree-store.rb', line 32 alias_method :insert_before_raw, :insert_before |
#insert_raw ⇒ Object
24 |
# File 'lib/gtk4/tree-store.rb', line 24 alias_method :insert_raw, :insert |
#prepend(parent) ⇒ Object
47 48 49 50 51 |
# File 'lib/gtk4/tree-store.rb', line 47 def prepend(parent) iter = prepend_raw(parent) setup_iter(iter) iter end |
#prepend_raw ⇒ Object
46 |
# File 'lib/gtk4/tree-store.rb', line 46 alias_method :prepend_raw, :prepend |