# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1859 def self.id2obj(tree, id) tpath = tree.path Tk::TreeCtrl::Element::TreeCtrlElementID_TBL.mutex.synchronize{ if Tk::TreeCtrl::Element::TreeCtrlElementID_TBL[tpath] Tk::TreeCtrl::Element::TreeCtrlElementID_TBL[tpath][id]? Tk::TreeCtrl::Element::TreeCtrlElementID_TBL[tpath][id] : id else id end } end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1871 def initialize(parent, type, keys=nil) @tree = parent @tpath = parent.path @type = type.to_s Tk::TreeCtrl::Element::TreeCtrlElementID.mutex.synchronize{ @path = @id = Tk::TreeCtrl::Element::TreeCtrlElementID.join(TkCore::INTERP._ip_id_) Tk::TreeCtrl::Element::TreeCtrlElementID[1].succ! } Tk::TreeCtrl::Element::TreeCtrlElementID_TBL.mutex.synchronize{ Tk::TreeCtrl::Element::TreeCtrlElementID_TBL[@tpath] ||= {} Tk::TreeCtrl::Element::TreeCtrlElementID_TBL[@tpath][@id] = self } @tree.element_create(@id, @type, keys) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1900 def cget(opt) @tree.element_cget(@id, opt) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1903 def cget_strict(opt) @tree.element_cget_strict(@id, opt) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1897 def cget_tkstring(opt) @tree.element_cget_tkstring(@id, opt) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1911 def configinfo(*args) @tree.element_configinfo(@id, *args) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1907 def configure(*args) @tree.element_configure(@id, *args) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1915 def current_configinfo(*args) @tree.current_element_configinfo(@id, *args) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1919 def delete @tree.element_delete(@id) self end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1928 def element_class @tree.element_class(@id) end
# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 1924 def element_type @tree.element_type(@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.