Module: Tk::Tile::TileWidget

Instance Method Summary collapse

Instance Method Details

#identify(x, y) ⇒ Object



162
163
164
165
# File 'lib/tkextlib/tile.rb', line 162

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

#instate(state, script = nil, &b) ⇒ Object



144
145
146
147
148
149
150
151
152
# File 'lib/tkextlib/tile.rb', line 144

def 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

#state(state = nil) ⇒ Object



154
155
156
157
158
159
160
# File 'lib/tkextlib/tile.rb', line 154

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