In Files

  • tk/lib/tkextlib/iwidgets/selectionbox.rb

Class/Module Index [+]

Quicksearch

Tk::Iwidgets::Selectionbox

Public Instance Methods

child_site() click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 32
def child_site
  window(tk_call(@path, 'childsite'))
end
            
clear_items() click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 36
def clear_items
  tk_call(@path, 'clear', 'items')
  self
end
            
clear_selection() click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 41
def clear_selection
  tk_call(@path, 'clear', 'selection')
  self
end
            
curselection() click to toggle source

based on Tk::Listbox ( and TkTextWin )

 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 64
def curselection
  list(tk_send_without_enc('curselection'))
end
            
delete(first, last=None) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 67
def delete(first, last=None)
  tk_send_without_enc('delete', first, last)
  self
end
            
get() click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 46
def get
  tk_call(@path, 'get')
end
            
index(idx) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 71
def index(idx)
  tk_send_without_enc('index', idx).to_i
end
            
insert_items(idx, *args) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 50
def insert_items(idx, *args)
  tk_call(@path, 'insert', 'items', idx, *args)
end
            
insert_selection(pos, text) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 54
def insert_selection(pos, text)
  tk_call(@path, 'insert', 'selection', pos, text)
end
            
nearest(y) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 74
def nearest(y)
  tk_send_without_enc('nearest', y).to_i
end
            
scan_dragto(x, y) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 81
def scan_dragto(x, y)
  tk_send_without_enc('scan', 'dragto', x, y)
  self
end
            
scan_mark(x, y) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 77
def scan_mark(x, y)
  tk_send_without_enc('scan', 'mark', x, y)
  self
end
            
select_item() click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 58
def select_item
  tk_call(@path, 'selectitem')
  self
end
            
selection_anchor(index) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 85
def selection_anchor(index)
  tk_send_without_enc('selection', 'anchor', index)
  self
end
            
selection_clear(first, last=None) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 89
def selection_clear(first, last=None)
  tk_send_without_enc('selection', 'clear', first, last)
  self
end
            
selection_includes(index) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 93
def selection_includes(index)
  bool(tk_send_without_enc('selection', 'includes', index))
end
            
selection_set(first, last=None) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 96
def selection_set(first, last=None)
  tk_send_without_enc('selection', 'set', first, last)
  self
end
            
size() click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 100
def size
  tk_send_without_enc('size').to_i
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.