Module: Tk::Tile::TileWidget

Instance Method Summary collapse

Instance Method Details

#ttk_identify(x, y) ⇒ Object Also known as: tile_identify, identify



329
330
331
332
# File 'ext/lib/tkextlib/tile.rb', line 329

def ttk_identify(x, y)
  ret = tk_send_without_enc('identify', x, y)
  (ret.empty?)? nil: ret
end

#ttk_instate(state, script = nil, &b) ⇒ Object Also known as: tile_instate, instate



309
310
311
312
313
314
315
316
317
# File 'ext/lib/tkextlib/tile.rb', line 309

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) ⇒ Object Also known as: tile_state, state



320
321
322
323
324
325
326
# File 'ext/lib/tkextlib/tile.rb', line 320

def ttk_state(state=nil)
  if state
    tk_send('state', state)
  else
    list(tk_send('state'))
  end
end