Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more
# File tk/lib/tkextlib/blt/htext.rb, line 35
def append(win, keys={})
tk_send('append', _epath(win), keys)
self
end
# File tk/lib/tkextlib/blt/htext.rb, line 44
def current_line
number(tk_send_without_enc('gotoline'))
end
# File tk/lib/tkextlib/blt/htext.rb, line 40
def goto_line(idx)
tk_send_without_enc('gotoline', idx)
self
end
# File tk/lib/tkextlib/blt/htext.rb, line 48
def index(str)
number(tk_send('index', str))
end
# File tk/lib/tkextlib/blt/htext.rb, line 52
def line_pos(str)
tk_send('linepos', str)
end
# File tk/lib/tkextlib/blt/htext.rb, line 56
def range(from=None, to=None)
tk_send_without_enc('range', from, to)
end
# File tk/lib/tkextlib/blt/htext.rb, line 65
def scan_dragto(pos)
tk_send_without_enc('scan', 'dragto', pos)
self
end
# File tk/lib/tkextlib/blt/htext.rb, line 60
def scan_mark(pos)
tk_send_without_enc('scan', 'mark', pos)
self
end
# 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
# File tk/lib/tkextlib/blt/htext.rb, line 75
def selection_adjust(index)
tk_send_without_enc('selection', 'adjust', index)
self
end
# File tk/lib/tkextlib/blt/htext.rb, line 79
def selection_clear()
tk_send_without_enc('selection', 'clear')
self
end
# File tk/lib/tkextlib/blt/htext.rb, line 83
def selection_from(index)
tk_send_without_enc('selection', 'from', index)
self
end
# File tk/lib/tkextlib/blt/htext.rb, line 87
def selection_line(index)
tk_send_without_enc('selection', 'line', index)
self
end
# File tk/lib/tkextlib/blt/htext.rb, line 91
def selection_present()
bool(tk_send_without_enc('selection', 'present'))
end
# File tk/lib/tkextlib/blt/htext.rb, line 94
def selection_range(first, last)
tk_send_without_enc('selection', 'range', first, last)
self
end
# File tk/lib/tkextlib/blt/htext.rb, line 98
def selection_to(index)
tk_send_without_enc('selection', 'to', index)
self
end