Class: Tk::BLT::Htext (Ruby 2.3.4)

In Files

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

Class/Module Index [+]

Quicksearch

Tk::BLT::Htext

Public Instance Methods

append(win, keys={})
 
               # File tk/lib/tkextlib/blt/htext.rb, line 37
def append(win, keys={})
  tk_send('append', _epath(win), keys)
  self
end
            
current_line()
 
               # File tk/lib/tkextlib/blt/htext.rb, line 46
def current_line
  number(tk_send_without_enc('gotoline'))
end
            
goto_line(idx)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 42
def goto_line(idx)
  tk_send_without_enc('gotoline', idx)
  self
end
            
index(str)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 50
def index(str)
  number(tk_send('index', str))
end
            
line_pos(str)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 54
def line_pos(str)
  tk_send('linepos', str)
end
            
range(from=None, to=None)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 58
def range(from=None, to=None)
  tk_send_without_enc('range', from, to)
end
            
scan_dragto(pos)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 67
def scan_dragto(pos)
  tk_send_without_enc('scan', 'dragto', pos)
  self
end
            
scan_mark(pos)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 62
def scan_mark(pos)
  tk_send_without_enc('scan', 'mark', pos)
  self
end
            
search(pat, from=None, to=None)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 72
def search(pat, from=None, to=None)
  num = number(tk_send('search', pat, from, to))
  (num < 0)? nil: num
end
            
selection_adjust(index)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 77
def selection_adjust(index)
  tk_send_without_enc('selection', 'adjust', index)
  self
end
            
selection_clear()
 
               # File tk/lib/tkextlib/blt/htext.rb, line 81
def selection_clear()
  tk_send_without_enc('selection', 'clear')
  self
end
            
selection_from(index)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 85
def selection_from(index)
  tk_send_without_enc('selection', 'from', index)
  self
end
            
selection_line(index)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 89
def selection_line(index)
  tk_send_without_enc('selection', 'line', index)
  self
end
            
selection_present()
 
               # File tk/lib/tkextlib/blt/htext.rb, line 93
def selection_present()
  bool(tk_send_without_enc('selection', 'present'))
end
            
selection_range(first, last)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 96
def selection_range(first, last)
  tk_send_without_enc('selection', 'range', first, last)
  self
end
            
selection_to(index)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 100
def selection_to(index)
  tk_send_without_enc('selection', 'to', index)
  self
end
            
selection_word(index)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 104
def selection_word(index)
  tk_send_without_enc('selection', 'word', index)
  self
end
            
windows(pat=None)
 
               # File tk/lib/tkextlib/blt/htext.rb, line 109
def windows(pat=None)
  list(tk_send('windows', pat))
end