Methods
A
C
D
E
I
L
M
N
R
Included Modules
Constants
CellTagID_TBL = TkCore::INTERP.create_table
 
CellTag_ID = ['tktbl:celltag'.freeze, TkUtil.untrust('00000')]).instance_eval{ @mutex = Mutex.new
 
Class Public methods
id2obj(table, id)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 144
def self.id2obj(table, id)
  tpath = table.path
  CellTagID_TBL.mutex.synchronize{
    if CellTagID_TBL[tpath]
      CellTagID_TBL[tpath][id]? CellTagID_TBL[tpath][id] : id
    else
      id
    end
  }
end
new(parent, keys=nil)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 155
def initialize(parent, keys=nil)
  @parent = @t = parent
  @tpath - parent.path
  CellTag_ID.mutex.synchronize{
    @path = @id = CellTag_ID.join(TkCore::INTERP._ip_id_)
    CellTag_ID[1].succ!
  }
  CellTagID_TBL.mutex.synchronize{
    CellTagID_TBL[@tpath] = {} unless CellTagID_TBL[@tpath]
    CellTagID_TBL[@tpath][@id] = self
  }
  configure(keys) if keys
end
Instance Public methods
add_cell(*args)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 189
def add_cell(*args)
  @t.tag_cell(@id, *args)
end
add_col(*args)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 192
def add_col(*args)
  @t.tag_col(@id, *args)
end
add_row(*args)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 195
def add_row(*args)
  @t.tag_row(@id, *args)
end
cget(key)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 209
def cget(key)
  @t.tag_cget(@id, key)
end
cget_strict(key)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 212
def cget_strict(key)
  @t.tag_cget_strict(@id, key)
end
cget_tkstring(key)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 206
def cget_tkstring(key)
  @t.tag_cget_tkstring(@id, key)
end
configinfo(key=nil)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 218
def configinfo(key=nil)
  @t.tag_configinfo(@id, key)
end
configure(key, val=None)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 215
def configure(key, val=None)
  @t.tag_configure(@id, key, val)
end
current_configinfo(key=nil)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 221
def current_configinfo(key=nil)
  @t.current_tag_configinfo(@id, key)
end
delete()
Alias for: destroy
destroy()
Also aliased as: delete
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 173
def destroy
  tk_call(@tpath, 'tag', 'delete', @id)
  CellTagID_TBL.mutex.synchronize{
    CellTagID_TBL[@tpath].delete(@id) if CellTagID_TBL[@tpath]
  }
  self
end
exist?()
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 182
def exist?
  @t.tag_exist?(@id)
end
id()
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 169
def id
  @id
end
include?(idx)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 185
def include?(idx)
  @t.tag_include?(@id, idx)
end
lower(target=None)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 202
def lower(target=None)
  @t.tag_lower(@id, target)
end
mutex()
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 136
def mutex; @mutex; end
raise(target=None)
# File ext/tk/lib/tkextlib/tktable/tktable.rb, line 199
def raise(target=None)
  @t.tag_raise(@id, target)
end