Module: Tk::Tile::TileWidget
- Includes:
- ParseStyleLayout
- Included in:
- SizeGrip, TButton, TCheckButton, TCombobox, TEntry, TFrame, TLabel, TLabelframe, TMenubutton, TNotebook, TPaned, TProgress, TProgressbar, TRadioButton, TScale, TScrollbar, TSeparator, TSpinbox, TSquare, Treeview
- Defined in:
- lib/tkextlib/tile.rb
Instance Method Summary collapse
- #ttk_identify(x, y) ⇒ Object (also: #tile_identify, #identify)
- #ttk_instate(state, script = nil, &b) ⇒ Object (also: #tile_instate, #instate)
- #ttk_state(state = nil) ⇒ Object (also: #tile_state, #state)
Instance Method Details
#ttk_identify(x, y) ⇒ Object Also known as: tile_identify, identify
357 358 359 360 |
# File 'lib/tkextlib/tile.rb', line 357 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
337 338 339 340 341 342 343 344 345 |
# File 'lib/tkextlib/tile.rb', line 337 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
348 349 350 351 352 353 354 |
# File 'lib/tkextlib/tile.rb', line 348 def ttk_state(state=nil) if state tk_send('state', state) else list(tk_send('state')) end end |