Methods
C
D
E
I
L
M
N
T
Constants
TreeCtrlStyleID_TBL = TkCore::INTERP.create_table
 
TreeCtrlStyleID = ['treectrl_style'.freeze, TkUtil.untrust('00000')]).instance_eval{ @mutex = Mutex.new
 
Class Public methods
id2obj(tree, id)
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2292
def self.id2obj(tree, id)
  tpath = tree.path
  Tk::TreeCtrl::Style::TreeCtrlStyleID_TBL.mutex.synchronize{
    if Tk::TreeCtrl::Style::TreeCtrlStyleID_TBL[tpath]
      Tk::TreeCtrl::Style::TreeCtrlStyleID_TBL[tpath][id]?                       Tk::TreeCtrl::Style::TreeCtrlStyleID_TBL[tpath][id] : id
    else
      id
    end
  }
end
new(parent, keys=nil)
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2304
def initialize(parent, keys=nil)
  @tree = parent
  @tpath = parent.path

  Tk::TreeCtrl::Style::TreeCtrlStyleID.mutex.synchronize{
    @path = @id =
      Tk::TreeCtrl::Style::TreeCtrlStyleID.join(TkCore::INTERP._ip_id_)
    Tk::TreeCtrl::Style::TreeCtrlStyleID[1].succ!
  }

  Tk::TreeCtrl::Style::TreeCtrlStyleID_TBL.mutex.synchronize{
    Tk::TreeCtrl::Style::TreeCtrlStyleID_TBL[@tpath] ||= {}
    Tk::TreeCtrl::Style::TreeCtrlStyleID_TBL[@tpath][@id] = self
  }

  @tree.style_create(@id, keys)
end
Instance Public methods
cget(opt)
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2333
def cget(opt)
  @tree.style_cget(@id, opt)
end
cget_strict(opt)
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2336
def cget_strict(opt)
  @tree.style_cget_strict(@id, opt)
end
cget_tkstring(opt)
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2330
def cget_tkstring(opt)
  @tree.style_cget_tkstring(@id, opt)
end
configinfo(*args)
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2344
def configinfo(*args)
  @tree.style_configinfo(@id, *args)
end
configure(*args)
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2340
def configure(*args)
  @tree.style_configure(@id, *args)
end
current_configinfo(*args)
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2348
def current_configinfo(*args)
  @tree.current_style_configinfo(@id, *args)
end
delete()
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2352
def delete
  @tree.style_delete(@id)
  self
end
elements(*elems)
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2357
def elements(*elems)
  if elems.empty?
    @tree.style_elements(@id)
  else
    @tree.style_elements(@id, *elems)
    self
  end
end
id()
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2322
def id
  @id
end
layout(elem, keys=None)
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2366
def layout(elem, keys=None)
  if keys && keys != None && keys.kind_of?(Hash)
    @tree.style_layout(@id, elem, keys)
    self
  else
    @tree.style_layout(@id, elem, keys)
  end
end
mutex()
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2282
def mutex; @mutex; end
to_s()
# File ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, line 2326
def to_s
  @id.dup
end