Class | Tk::BLT::Htext
In: | tk/lib/tkextlib/blt/htext.rb
Parent: | TkWindow

### Methods

append current_line goto_line index line_pos range scan_dragto scan_mark search selection_adjust selection_clear selection_from selection_line selection_present selection_range selection_to selection_word windows

### Included Modules

TkItemConfigMethod Scrollable

### Constants

Htext_Var | = | TkVarAccess.new_hash('htext')
Htext_Widget | = | TkVarAccess.new('htext(widget)', :window)
Htext_File | = | TkVarAccess.new('htext(file)')
Htext_Line | = | TkVarAccess.new('htext(line)')
TkCommandNames | = | ['::blt::htext'.freeze].freeze
WidgetClassName | = | 'Htext'.freeze

### External Aliases

itemcget | -> | window_cget
itemconfigure | -> | window_configure
itemconfiginfo | -> | window_configuinfo
current_itemconfiginfo | -> | current_window_configuinfo

### Public Instance methods

append(win, keys={})

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 34
        def append(win, keys={})
          tk_send('append', _epath(win), keys)
          self
        end

current_line()

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 43
        def current_line
          number(tk_send_without_enc('gotoline'))
        end

goto_line(idx)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 39
        def goto_line(idx)
          tk_send_without_enc('gotoline', idx)
          self
        end

index(str)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 47
        def index(str)
          number(tk_send('index', str))
        end

line_pos(str)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 51
        def line_pos(str)
          tk_send('linepos', str)
        end

range(from=None, to=None)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 55
        def range(from=None, to=None)
          tk_send_without_enc('range', from, to)
        end

scan_dragto(pos)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 64
        def scan_dragto(pos)
          tk_send_without_enc('scan', 'dragto', pos)
          self
        end

scan_mark(pos)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 59
        def scan_mark(pos)
          tk_send_without_enc('scan', 'mark', pos)
          self
        end

search(pat, from=None, to=None)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 69
        def search(pat, from=None, to=None)
          num = number(tk_send('search', pat, from, to))
          (num < 0)? nil: num
        end

selection_adjust(index)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 74
        def selection_adjust(index)
          tk_send_without_enc('selection', 'adjust', index)
          self
        end

selection_clear()

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 78
        def selection_clear()
          tk_send_without_enc('selection', 'clear')
          self
        end

selection_from(index)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 82
        def selection_from(index)
          tk_send_without_enc('selection', 'from', index)
          self
        end

selection_line(index)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 86
        def selection_line(index)
          tk_send_without_enc('selection', 'line', index)
          self
        end

selection_present()

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 90
        def selection_present()
          bool(tk_send_without_enc('selection', 'present'))
        end

selection_range(first, last)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 93
        def selection_range(first, last)
          tk_send_without_enc('selection', 'range', first, last)
          self
        end

selection_to(index)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 97
        def selection_to(index)
          tk_send_without_enc('selection', 'to', index)
          self
        end

selection_word(index)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 101
        def selection_word(index)
          tk_send_without_enc('selection', 'word', index)
          self
        end

windows(pat=None)

[Source]

    # File tk/lib/tkextlib/blt/htext.rb, line 106
        def windows(pat=None)
          list(tk_send('windows', pat))
        end

[Validate]