In Files

  • tk/lib/tkextlib/blt/htext.rb

Class/Module Index [+]

Quicksearch

Tk::BLT::Htext

Public Instance Methods

append(win, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 35
def append(win, keys={})
  tk_send('append', _epath(win), keys)
  self
end
            
current_line() click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 44
def current_line
  number(tk_send_without_enc('gotoline'))
end
            
goto_line(idx) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 40
def goto_line(idx)
  tk_send_without_enc('gotoline', idx)
  self
end
            
index(str) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 48
def index(str)
  number(tk_send('index', str))
end
            
line_pos(str) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 52
def line_pos(str)
  tk_send('linepos', str)
end
            
range(from=None, to=None) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 56
def range(from=None, to=None)
  tk_send_without_enc('range', from, to)
end
            
scan_dragto(pos) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 65
def scan_dragto(pos)
  tk_send_without_enc('scan', 'dragto', pos)
  self
end
            
scan_mark(pos) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 60
def scan_mark(pos)
  tk_send_without_enc('scan', 'mark', pos)
  self
end
            
search(pat, from=None, to=None) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 70
def search(pat, from=None, to=None)
  num = number(tk_send('search', pat, from, to))
  (num < 0)? nil: num
end
            
selection_adjust(index) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 75
def selection_adjust(index)
  tk_send_without_enc('selection', 'adjust', index)
  self
end
            
selection_clear() click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 79
def selection_clear()
  tk_send_without_enc('selection', 'clear')
  self
end
            
selection_from(index) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 83
def selection_from(index)
  tk_send_without_enc('selection', 'from', index)
  self
end
            
selection_line(index) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 87
def selection_line(index)
  tk_send_without_enc('selection', 'line', index)
  self
end
            
selection_present() click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 91
def selection_present()
  bool(tk_send_without_enc('selection', 'present'))
end
            
selection_range(first, last) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 94
def selection_range(first, last)
  tk_send_without_enc('selection', 'range', first, last)
  self
end
            
selection_to(index) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 98
def selection_to(index)
  tk_send_without_enc('selection', 'to', index)
  self
end
            
selection_word(index) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 102
def selection_word(index)
  tk_send_without_enc('selection', 'word', index)
  self
end
            
windows(pat=None) click to toggle source
 
               # File tk/lib/tkextlib/blt/htext.rb, line 107
def windows(pat=None)
  list(tk_send('windows', pat))
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.

blog comments powered by Disqus