1#
2# tk/txtwin_abst.rb : TkTextWin abstruct class
3#
4require 'tk'
5
6class TkTextWin<TkWindow
7  TkCommandNames = [].freeze
8  #def create_self
9  #  fail RuntimeError, "TkTextWin is an abstract class"
10  #end
11  #private :create_self
12
13  def bbox(index)
14    list(tk_send_without_enc('bbox', index))
15  end
16  def delete(first, last=None)
17    tk_send_without_enc('delete', first, last)
18    self
19  end
20  def get(*index)
21    _fromUTF8(tk_send_without_enc('get', *index))
22  end
23  def insert(index, *args)
24    tk_send('insert', index, *args)
25    self
26  end
27  def scan_mark(x, y)
28    tk_send_without_enc('scan', 'mark', x, y)
29    self
30  end
31  def scan_dragto(x, y)
32    tk_send_without_enc('scan', 'dragto', x, y)
33    self
34  end
35  def see(index)
36    tk_send_without_enc('see', index)
37    self
38  end
39end
40