Method: Tk::BLT::Treeview::Tag#initialize
- Defined in:
- lib/tkextlib/blt/treeview.rb
#initialize(tree, name, ids) ⇒ Tag
Returns a new instance of Tag.
1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 |
# File 'lib/tkextlib/blt/treeview.rb', line 1230 def initialize(tree, name, ids) @parent = @tree = tree @tpath = @parent.path if name @path = @id = name else TreeTag_ID.mutex.synchronize{ @path = @id = TreeTag_ID.join(TkCore::INTERP._ip_id_).freeze TreeTag_ID[1].succ! } end unless ids.empty? tk_call(@tpath, 'tag', 'add', @id, *(ids.collect{|id| tagid(id)})) end end |