Class: Gtk::TreeViewColumn

Inherits:
Object
  • Object
show all
Defined in:
lib/gir_ffi-gtk/tree_view_column.rb

Overview

Overrides for Gtk::TreeViewColumn

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new_with_attributes(*args) ⇒ Object



9
10
11
12
13
# File 'lib/gir_ffi-gtk/tree_view_column.rb', line 9

def self.new_with_attributes(*args)
  obj = allocate
  obj.send :initialize_with_attributes, *args
  obj
end

Instance Method Details

#set_attributes(renderer, attributes) ⇒ Object



15
16
17
18
19
# File 'lib/gir_ffi-gtk/tree_view_column.rb', line 15

def set_attributes(renderer, attributes)
  attributes.each do |attribute, column|
    add_attribute renderer, attribute.to_s, column
  end
end