class Tk::TreeCtrl::Column
Constants
- TreeCtrlColumnID
- TreeCtrlColumnID_TBL
Public Class Methods
id2obj(tree, id)
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1739 def self.id2obj(tree, id) tpath = tree.path Tk::TreeCtrl::Column::TreeCtrlColumnID_TBL.mutex.synchronize{ if Tk::TreeCtrl::Column::TreeCtrlColumnID_TBL[tpath] Tk::TreeCtrl::Column::TreeCtrlColumnID_TBL[tpath][id]? \ Tk::TreeCtrl::Column::TreeCtrlColumnID_TBL[tpath][id] : id else id end } end
new(parent, keys={})
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1751 def initialize(parent, keys={}) @tree = parent @tpath = parent.path keys = _symbolkey2str(keys) Tk::TreeCtrl::Column::TreeCtrlColumnID.mutex.synchronize{ @path = @id = keys.delete('tag') || Tk::TreeCtrl::Column::TreeCtrlColumnID.join(TkCore::INTERP._ip_id_) Tk::TreeCtrl::Column::TreeCtrlColumnID[1].succ! } keys['tag'] = @id Tk::TreeCtrl::Column::TreeCtrlColumnID_TBL.mutex.synchronize{ Tk::TreeCtrl::Column::TreeCtrlColumnID_TBL[@tpath] ||= {} Tk::TreeCtrl::Column::TreeCtrlColumnID_TBL[@tpath][@id] = self } @tree.column_create(keys) end
Public Instance Methods
cget(opt)
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1785 def cget(opt) @tree.column_cget(@tree.column_index(@id), opt) end
cget_strict(opt)
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1788 def cget_strict(opt) @tree.column_cget_strict(@tree.column_index(@id), opt) end
cget_tkstring(opt)
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1782 def cget_tkstring(opt) @tree.column_cget_tkstring(@tree.column_index(@id), opt) end
configinfo(*args)
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1796 def configinfo(*args) @tree.column_configinfo(@tree.column_index(@id), *args) end
configure(*args)
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1792 def configure(*args) @tree.column_configure(@tree.column_index(@id), *args) end
current_configinfo(*args)
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1800 def current_configinfo(*args) @tree.current_column_configinfo(@tree.column_index(@id), *args) end
current_width()
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1823 def current_width @tree.column_width(@tree.column_index(@id)) end
delete()
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1804 def delete @tree.column_delete(@tree.column_index(@id)) self end
id()
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1774 def id @id end
index()
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1809 def index @tree.column_index(@id) end
move(before)
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1813 def move(before) @tree.column_move(@tree.column_index(@id), before) self end
mutex()
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1729 def mutex; @mutex; end
needed_width()
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1818 def needed_width @tree.column_needed_width(@tree.column_index(@id)) end
Also aliased as: neededwidth
to_s()
click to toggle source
# File lib/tkextlib/treectrl/tktreectrl.rb, line 1778 def to_s @id.to_s.dup end