Methods
- B
- C
- D
- F
- G
- I
- M
- N
- P
- S
- T
Included Modules
Constants
TabID_TBL | = | TkCore::INTERP.create_table |
TabsetTab_ID | = | ['blt_tabset_tab'.freeze, TkUtil.untrust('00000')]).instance_eval{ @mutex = Mutex.new |
Class Public methods
id2obj(tabset, id)
Link
new(parent, pos, name, keys)
Link
# File ext/tk/lib/tkextlib/blt/tabset.rb, line 70 def initialize(parent, pos, name, keys) @t = parent @tpath = parent.path if name @path = @id = name unless (list(tk_call(@tpath, 'tab', 'names', @id)).empty?) if pos idx = tk_call(@tpath, 'index', '-name', @id) if pos.to_s == 'end' tk_call(@tpath, 'move', idx, 'after', 'end') else tk_call(@tpath, 'move', idx, 'before', pos) end end tk_call(@tpath, 'tab', 'configure', @id, keys) else pos = 'end' unless pos tk_call(@tpath, 'insert', pos, @id, keys) end else pos = 'end' unless pos TabsetTab_ID.mutex.synchronize{ @path = @id = TabsetTab_ID.join(TkCore::INTERP._ip_id_) TabsetTab_ID[1].succ! } tk_call(@tpath, 'insert', pos, @id, keys) end end
new(parent, pos=nil, name=nil, keys={})
Link
# File ext/tk/lib/tkextlib/blt/tabset.rb, line 37 def self.new(parent, pos=nil, name=nil, keys={}) if pos.kind_of?(Hash) keys = pos name = nil pos = nil end if name.kind_of?(Hash) keys = name name = nil end obj = nil TabID_TBL.mutex.synchronize{ if name && TabID_TBL[parent.path] && TabID_TBL[parent.path][name] obj = TabID_TBL[parent.path][name] if pos if pos.to_s == 'end' obj.move_after('end') else obj.move_before(pos) end end obj.configure if keys && ! keys.empty? else (obj = self.allocate).instance_eval{ initialize(parent, pos, name, keys) TabID_TBL[@tpath] = {} unless TabID_TBL[@tpath] TabID_TBL[@tpath][@id] = self } end } obj end
Instance Public methods
bind(context, *args)
Link
def bind(context, cmd=Proc.new, *args)
@t.tab_bind(@id, context, cmd, *args)
self
end
bind_append(context, *args)
Link
def #bind_append(context, cmd=Proc.new, *args)
@t.tab_bind_append(@id, context, cmd, *args)
self
end
# File ext/tk/lib/tkextlib/blt/tabset.rb, line 117 def bind_append(context, *args) # if args[0].kind_of?(Proc) || args[0].kind_of?(Method) if TkComm._callback_entry?(args[0]) || !block_given? cmd = args.shift else cmd = Proc.new end @t.tab_bind_append(@id, context, cmd, *args) self end
bind_remove(context)
Link
bindinfo(context=nil)
Link
cget(*args)
Link
cget_strict(*args)
Link
cget_tkstring(*args)
Link
configinfo(*args)
Link
configure(*args)
Link
current_configinfo(*args)
Link
delete()
Link
focus()
Link
get_name()
Link
index()
Link
invoke()
Link
move_after(idx)
Link
move_before(idx)
Link
mutex()
Link
perforation_highlight(mode)
Link
perforation_invoke()
Link
see()
Link