# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1748 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
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1760 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
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1794 def cget(opt) @tree.column_cget(@tree.column_index(@id), opt) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1797 def cget_strict(opt) @tree.column_cget_strict(@tree.column_index(@id), opt) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1791 def cget_tkstring(opt) @tree.column_cget_tkstring(@tree.column_index(@id), opt) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1805 def configinfo(*args) @tree.column_configinfo(@tree.column_index(@id), *args) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1801 def configure(*args) @tree.column_configure(@tree.column_index(@id), *args) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1809 def current_configinfo(*args) @tree.current_column_configinfo(@tree.column_index(@id), *args) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1832 def current_width @tree.column_width(@tree.column_index(@id)) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1813 def delete @tree.column_delete(@tree.column_index(@id)) self end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1818 def index @tree.column_index(@id) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1822 def move(before) @tree.column_move(@tree.column_index(@id), before) self end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1738 def mutex; @mutex; end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1827 def needed_width @tree.column_needed_width(@tree.column_index(@id)) end
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.