Class: VR::Col::ImageCol

Inherits:
Object
  • Object
show all
Includes:
GladeGUI
Defined in:
lib/treeview/columns/ImageCol.rb

Overview

< Gdk::Pixbuf

Instance Attribute Summary

Attributes included from GladeGUI

#builder

Instance Method Summary collapse

Methods included from GladeGUI

#buttonCancel__clicked, #extract_key, #get_glade_active_record, #get_glade_all, #get_glade_variables, #load_glade, #parse_signals, #set_drag_drop, #set_glade_active_record, #set_glade_all, #set_glade_hash, #set_glade_variables, #show_glade, #try_to_select_text_in_combobox, #window1__destroy, #window1__key_press_event

Constructor Details

#initialize(image) ⇒ ImageCol

Returns a new instance of ImageCol



8
9
10
11
# File 'lib/treeview/columns/ImageCol.rb', line 8

def initialize(image)
#      super(File.dirname(__FILE__) + "/../../../img/image-x-generic.png")
  @image1 = image
end

Instance Method Details

#before_showObject



13
14
15
# File 'lib/treeview/columns/ImageCol.rb', line 13

def before_show()
  @builder["window1"].resize 500, 360
end

#to_sObject



17
18
19
# File 'lib/treeview/columns/ImageCol.rb', line 17

def to_s
  "<Img>"
end