Class | Tk::Tcllib::CText
In: | tk/lib/tkextlib/tcllib/ctext.rb
Parent: | TkText

### Methods

add_highlight_class add_highlight_class_for_regexp add_highlight_class_for_special_chars add_highlight_class_with_only_char_start append clear_highlight_classes copy cut delete_highlight_class disable_C_comments edit enable_C_comments fast_delete fast_insert find_next_char find_next_space find_previous_space get_highlight_classes highlight modified? package_name package_version paste set_update_proc

### Constants

PACKAGE_NAME | = | 'ctext'.freeze
TkCommandNames | = | ['ctext'.freeze].freeze
WidgetClassName | = | 'Ctext'.freeze

### Public Class methods

package_name()

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 20
          def self.package_name
            PACKAGE_NAME
          end

package_version()

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 24
          def self.package_version
            begin
              TkPackage.require('ctext')
            rescue
              ''
            end
          end

### Public Instance methods

add_highlight_class(klass, col, *keywords)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 93
      def add_highlight_class(klass, col, *keywords)
        tk_call('ctext::addHighlightClass', @path, klass, col, keywords.flatten)
        self
      end

add_highlight_class_for_regexp(klass, col, tcl_regexp)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 104
      def add_highlight_class_for_regexp(klass, col, tcl_regexp)
        tk_call('ctext::addHighlightClassForRegexp',
                @path, klass, col, tcl_regexp)
        self
      end

add_highlight_class_for_special_chars(klass, col, *chrs)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 98
      def add_highlight_class_for_special_chars(klass, col, *chrs)
        tk_call('ctext::addHighlightClassForSpecialChars',
                @path, klass, col, chrs.join(''))
        self
      end

add_highlight_class_with_only_char_start(klass, col, chr)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 110
      def add_highlight_class_with_only_char_start(klass, col, chr)
        tk_call('ctext::addHighlightClassWithOnlyCharStart',
                @path, klass, col, chr)
        self
      end

append(*args)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 61
      def append(*args)
        tk_send('append', *args)
      end

clear_highlight_classes()

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 116
      def clear_highlight_classes
        tk_call('ctext::clearHighlightClasses', @path)
        self
      end

copy()

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 65
      def copy
        tk_send('copy')
      end

cut()

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 69
      def cut
        tk_send('cut')
      end

delete_highlight_class(klass)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 125
      def delete_highlight_class(klass)
        tk_call('ctext::deleteHighlightClass', @path, klass)
        self
      end

disable_C_comments()

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 135
      def disable_C_comments
        tk_call('ctext::disableComments', @path)
        self
      end

edit(*args)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 89
      def edit(*args)
        tk_send('edit', *args)
      end

enable_C_comments()

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 130
      def enable_C_comments
        tk_call('ctext::enableComments', @path)
        self
      end

fast_delete(*args)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 73
      def fast_delete(*args)
        tk_send('fastdelete', *args)
      end

fast_insert(*args)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 77
      def fast_insert(*args)
        tk_send('fastinsert', *args)
      end

find_next_char(idx, chr)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 140
      def find_next_char(idx, chr)
        tk_call('ctext::findNextChar', @path, idx, chr)
      end

find_next_space(idx)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 144
      def find_next_space(idx)
        tk_call('ctext::findNextSpace', @path, idx)
      end

find_previous_space(idx)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 148
      def find_previous_space(idx)
        tk_call('ctext::findPreviousSpace', @path, idx)
      end

get_highlight_classes()

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 121
      def get_highlight_classes
        tk_split_simplelist(tk_call('ctext::getHighlightClasses', @path))
      end

highlight(*args)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 81
      def highlight(*args)
        tk_send('highlight', *args)
      end

modified?(mode)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 157
      def modified?(mode)
        bool(tk_call('ctext::modified', @path, mode))
      end

paste()

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 85
      def paste
        tk_send('paste')
      end

set_update_proc(cmd=Proc.new)

[Source]

    # File tk/lib/tkextlib/tcllib/ctext.rb, line 152
      def set_update_proc(cmd=Proc.new)
        tk_call('proc', 'ctext::update', '', cmd)
        self
      end

[Validate]