identify(x, y)
click to toggle source
instate(state, script=nil, &b)
click to toggle source
state(state=nil)
click to toggle source
tile_identify(x, y)
click to toggle source
tile_instate(state, script=nil, &b)
click to toggle source
tile_state(state=nil)
click to toggle source
ttk_identify(x, y)
click to toggle source
def ttk_identify(x, y)
ret = tk_send_without_enc('identify', x, y)
(ret.empty?)? nil: ret
end
ttk_instate(state, script=nil, &b)
click to toggle source
def ttk_instate(state, script=nil, &b)
if script
tk_send('instate', state, script)
elsif b
tk_send('instate', state, Proc.new(&b))
else
bool(tk_send('instate', state))
end
end
ttk_state(state=nil)
click to toggle source
def ttk_state(state=nil)
if state
tk_send('state', state)
else
list(tk_send('state'))
end
end