class Gtk::TreeViewColumn

Overrides for Gtk::TreeViewColumn

Public Class Methods

new_with_attributes(*args) click to toggle source
# 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

Public Instance Methods

set_attributes(renderer, attributes) click to toggle source
# 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

Private Instance Methods

initialize_with_attributes(title, renderer, attributes = {}) click to toggle source
# File lib/gir_ffi-gtk/tree_view_column.rb, line 23
def initialize_with_attributes(title, renderer, attributes = {})
  initialize
  set_title title
  pack_start(renderer, false)
  set_attributes(renderer, attributes)
end