add(*nodes)
click to toggle source
def add(*nodes)
tk_call(@tpath, 'tag', 'add', @id, *nodes)
self
end
delete(*nodes)
click to toggle source
def delete(*nodes)
tk_call(@tpath, 'tag', 'delete', @id, *nodes)
self
end
forget()
click to toggle source
def forget()
tk_call(@tpath, 'tag', 'forget', @id)
TreeTagID_TBL.mutex.synchronize{
TreeTagID_TBL[@tpath].delete(@id)
}
self
end
id()
click to toggle source
mutex()
click to toggle source
nodes()
click to toggle source
def nodes()
simplelist(tk_call(@tpath, 'tag', 'nodes', @id)).collect{|node|
Tk::BLT::Tree::Node.id2obj(@path, node)
}
end
set(node)
click to toggle source
def set(node)
tk_call(@tpath, 'tag', 'set', node, @id)
self
end
unset(node)
click to toggle source
def unset(node)
tk_call(@tpath, 'tag', 'unset', node, @id)
self
end