Methods
#
C
D
I
R
Included Modules
Constants
ToolbarItemID_TBL = TkCore::INTERP.create_table
 
Class Public methods
id2obj(tbar, id)
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 48
def ToolbarItem.id2obj(tbar, id)
  tpath = tbar.path
  ToolbarItemID_TBL.mutex.synchronize{
    if ToolbarItemID_TBL[tpath]
      ToolbarItemID_TBL[tpath][id]? ToolbarItemID_TBL[tpath][id]: id
    else
      id
    end
  }
end
Instance Public methods
[](key)
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 73
def [](key)
  cget key
end
[]=(key,val)
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 77
def []=(key,val)
  configure key, val
  val
end
cget(option)
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 85
def cget(option)
  @t.itemcget(@id, option)
end
cget_strict(option)
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 88
def cget_strict(option)
  @t.itemcget_strict(@id, option)
end
cget_tkstring(option)
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 82
def cget_tkstring(option)
  @t.itemcget_tkstring(@id, option)
end
configinfo(key=nil)
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 97
def configinfo(key=nil)
  @t.itemconfiginfo(@id, key)
end
configure(key, value=None)
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 92
def configure(key, value=None)
  @t.itemconfigure(@id, key, value)
  self
end
current_configinfo(key=nil)
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 101
def current_configinfo(key=nil)
  @t.current_itemconfiginfo(@id, key)
end
delete()
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 105
def delete
  @t.delete(@id)
end
initaialize(parent, *args)
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 59
def initaialize(parent, *args)
  @parent = @t = parent
  @tpath = parent.path

  @path = @id = @t.tk_send('add', *args)
  # A same id is rejected by the Tcl function.

  ToolbarItemID_TBL.mutex.synchronize{
    ToolbarItemID_TBL[@id] = self
    ToolbarItemID_TBL[@tpath] = {} unless ToolbarItemID_TBL[@tpath]
    ToolbarItemID_TBL[@tpath][@id] = self
  }
end
itemid()
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 109
def itemid
  @t.itemid(@id)
end
remove()
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 113
def remove
  @t.remove(@id)
end
remove_with_destroy()
# File ext/tk/lib/tkextlib/tcllib/toolbar.rb, line 116
def remove_with_destroy
  @t.remove_with_destroy(@id)
end