Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more
# File tk/lib/tkextlib/tile/treeview.rb, line 953 def self.id2obj(tree, id) tpath = tree.path Tk::Tile::Treeview::Tag::TagID_TBL.mutex.synchronize{ if Tk::Tile::Treeview::Tag::TagID_TBL[tpath] (Tk::Tile::Treeview::Tag::TagID_TBL[tpath][id])? \ Tk::Tile::Treeview::Tag::TagID_TBL[tpath][id]: id else id end } end
# File tk/lib/tkextlib/tile/treeview.rb, line 965 def initialize(tree, keys=nil) @parent = @t = tree @tpath = tree.path Tag_ID.mutex.synchronize{ @path = @id = Tag_ID.join(TkCore::INTERP._ip_id_) Tag_ID[1].succ! } TagID_TBL.mutex.synchronize{ TagID_TBL[@tpath] = {} unless TagID_TBL[@tpath] TagID_TBL[@tpath][@id] = self } if keys && keys != None tk_call_without_enc(@tpath, 'tag', 'configure', @id, *hash_kv(keys,true)) end end
# File tk/lib/tkextlib/tile/treeview.rb, line 989 def bind(seq, *args) if TkComm._callback_entry?(args[0]) || !block_given? cmd = args.shift else cmd = Proc.new end @t.tag_bind(@id, seq, cmd, *args) self end
# File tk/lib/tkextlib/tile/treeview.rb, line 999 def bind_append(seq, *args) if TkComm._callback_entry?(args[0]) || !block_given? cmd = args.shift else cmd = Proc.new end @t.tag_bind_append(@id, seq, cmd, *args) self end
# File tk/lib/tkextlib/tile/treeview.rb, line 1009 def bind_remove(seq) @t.tag_bind_remove(@id, seq) self end
# File tk/lib/tkextlib/tile/treeview.rb, line 1014 def bindinfo(seq=nil) @t.tag_bindinfo(@id, seq) end
# File tk/lib/tkextlib/tile/treeview.rb, line 1021 def cget(option) @t.tagcget(@id, option) end
# File tk/lib/tkextlib/tile/treeview.rb, line 1024 def cget_strict(option) @t.tagcget_strict(@id, option) end
# File tk/lib/tkextlib/tile/treeview.rb, line 1018 def cget_tkstring(option) @t.tagcget_tkstring(@id, option) end
# File tk/lib/tkextlib/tile/treeview.rb, line 1033 def configinfo(key=nil) @t.tagconfiginfo(@id, key) end
# File tk/lib/tkextlib/tile/treeview.rb, line 1028 def configure(key, value=None) @t.tagconfigure(@id, key, value) self end
# File tk/lib/tkextlib/tile/treeview.rb, line 1037 def current_configinfo(key=nil) @t.current_tagconfiginfo(@id, key) end
# File tk/lib/tkextlib/tile/treeview.rb, line 943 def mutex; @mutex; end
# File tk/lib/tkextlib/tile/treeview.rb, line 984 def tag_has?(item) @t.tag_has?(@id, item) end