In Files

  • tk/lib/tkextlib/treectrl/tktreectrl.rb

Class/Module Index [+]

Quicksearch

Tk::TreeCtrl::Column

Public Class Methods

id2obj(tree, id) click to toggle source
 
               # File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1615
def self.id2obj(tree, id)
  tpath = tree.path
  return id unless Tk::TreeCtrl::Column::TreeCtrlColumnID_TBL[tpath]
  Tk::TreeCtrl::Column::TreeCtrlColumnID_TBL[tpath][id]? \
               Tk::TreeCtrl::Column::TreeCtrlColumnID_TBL[tpath][id] : id
end
            
new(parent, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1622
def initialize(parent, keys={})
  @tree = parent
  @tpath = parent.path

  keys = _symbolkey2str(keys)

  @path = @id = 
    keys.delete('tag') ||
    Tk::TreeCtrl::Column::TreeCtrlColumnID.join(TkCore::INTERP._ip_id_)

  keys['tag'] = @id

  unless Tk::TreeCtrl::Column::TreeCtrlColumnID_TBL[@tpath]
    Tk::TreeCtrl::Column::TreeCtrlColumnID_TBL[@tpath] = {} 
  end
  Tk::TreeCtrl::Column::TreeCtrlColumnID_TBL[@tpath][@id] = self
  Tk::TreeCtrl::Column::TreeCtrlColumnID[1].succ!

  @tree.column_create(keys)
end
            

Public Instance Methods

cget(opt) click to toggle source
 
               # File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1651
def cget(opt)
  @tree.column_cget(@tree.column_index(@id), opt)
end
            
configinfo(*args) click to toggle source
 
               # File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1659
def configinfo(*args)
  @tree.column_configinfo(@tree.column_index(@id), *args)
end
            
configure(*args) click to toggle source
 
               # File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1655
def configure(*args)
  @tree.column_configure(@tree.column_index(@id), *args)
end
            
current_configinfo(*args) click to toggle source
 
               # File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1663
def current_configinfo(*args)
  @tree.current_column_configinfo(@tree.column_index(@id), *args)
end
            
current_width() click to toggle source
 
               # File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1686
def current_width
  @tree.column_width(@tree.column_index(@id))
end
            
delete() click to toggle source
 
               # File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1667
def delete
  @tree.column_delete(@tree.column_index(@id))
  self
end
            
id() click to toggle source
 
               # File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1643
def id
  @id
end
            
index() click to toggle source
 
               # File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1672
def index
  @tree.column_index(@id)
end
            
move(before) click to toggle source
 
               # File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1676
def move(before)
  @tree.column_move(@tree.column_index(@id), before)
  self
end
            
needed_width() click to toggle source
 
               # File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1681
def needed_width
  @tree.column_needed_width(@tree.column_index(@id))
end
            
Also aliased as: neededwidth
neededwidth() click to toggle source
Alias for: needed_width
to_s() click to toggle source
 
               # File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1647
def to_s
  @id.to_s.dup
end