Module: Tk::Tile::TileWidget

Includes:
Grid
Included in:
Button, CheckButton, ComboBox, Entry, Frame, Label, LabelFrame, MenuButton, Notebook, PanedWindow, Progressbar, RadioButton, Scale, Scrollbar, Separator, Sizegrip, Treeview
Defined in:
lib/ffi-tk/widget/tile.rb

Instance Method Summary collapse

Methods included from Grid

anchor, bbox, columnconfigure, configure, forget, #grid_anchor, #grid_bbox, #grid_columnconfigure, #grid_configure, #grid_forget, #grid_info, #grid_location, #grid_propagate, #grid_remove, #grid_rowconfigure, #grid_size, #grid_slave, #grid_slaves, info, location, propagate, remove, rowconfigure, size, slave, slaves

Instance Method Details

#grid(options) ⇒ Object



54
55
56
# File 'lib/ffi-tk/widget/tile.rb', line 54

def grid(options)
  grid_configure options
end

#state(new_state = None) ⇒ Object



44
45
46
# File 'lib/ffi-tk/widget/tile.rb', line 44

def state(new_state = None)
  ttk_state(new_state)
end

#style(layout_spec, name = tk_pathname) ⇒ Object



48
49
50
# File 'lib/ffi-tk/widget/tile.rb', line 48

def style(layout_spec, name = tk_pathname)
  Tk::Tile::Style.layout(name, layout_spec)
end

#ttk_state(new_state = None) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/ffi-tk/widget/tile.rb', line 36

def ttk_state(new_state = None)
  if new_state == None
    execute(:state)&.split
  else
    execute_only(:state, new_state)
  end
end