Methods
- #
- A
- D
- I
- M
- T
- Y
Included Modules
Constants
TkCommandNames | = | ['::iwidgets::menubar'.freeze].freeze |
WidgetClassName | = | 'Menubar'.freeze |
Instance Public methods
__methodcall_optkeys()
Link
add(type, tag=nil, keys={})
Link
# File ext/tk/lib/tkextlib/iwidgets/menubar.rb, line 137 def add(type, tag=nil, keys={}) if tag.kind_of?(Hash) keys = tag tag = nil end if tag tag = Tk::Itk::Component.new(self, tagid(tag)) else tag = Tk::Itk::Component.new(self) end keys = _symbolkey2str(keys) keys['menu'] = _parse_menu_spec(keys['menu']) if keys.key?('menu') tk_call(@path, 'add', type, tagid(tag), *hash_kv(keys)) tag end
delete(path1, path2=nil)
Link
index(idx)
Link
insert(idx, type, tag=nil, keys={})
Link
# File ext/tk/lib/tkextlib/iwidgets/menubar.rb, line 165 def insert(idx, type, tag=nil, keys={}) if tag.kind_of?(Hash) keys = tag tag = nil end if tag tag = Tk::Itk::Component.new(self, tagid(tag)) else tag = Tk::Itk::Component.new(self) end keys = _symbolkey2str(keys) keys['menu'] = _parse_menu_spec(keys['menu']) if keys.key?('menu') tk_call(@path, 'insert', index(idx), type, tagid(tag), *hash_kv(keys)) tag end
invoke(idx)
Link
tagid(tagOrId)
Link
type(path)
Link