In Files

  • tk/lib/tkextlib/tcllib/ctext.rb

Class/Module Index [+]

Quicksearch

Tk::Tcllib::CText

Public Class Methods

package_name() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 21
def self.package_name
  PACKAGE_NAME
end
            
package_version() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 25
def self.package_version
  begin
    TkPackage.require('ctext')
  rescue
    ''
  end
end
            

Public Instance Methods

add_highlight_class(klass, col, *keywords) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 94
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) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 105
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) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 99
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) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 111
def add_highlight_class_with_only_char_start(klass, col, chr)
  tk_call('ctext::addHighlightClassWithOnlyCharStart',
          @path, klass, col, chr)
  self
end
            
append(*args) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 62
def append(*args)
  tk_send('append', *args)
end
            
clear_highlight_classes() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 117
def clear_highlight_classes
  tk_call('ctext::clearHighlightClasses', @path)
  self
end
            
copy() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 66
def copy
  tk_send('copy')
end
            
cut() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 70
def cut
  tk_send('cut')
end
            
delete_highlight_class(klass) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 126
def delete_highlight_class(klass)
  tk_call('ctext::deleteHighlightClass', @path, klass)
  self
end
            
disable_C_comments() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 136
def disable_C_comments
  tk_call('ctext::disableComments', @path)
  self
end
            
edit(*args) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 90
def edit(*args)
  tk_send('edit', *args)
end
            
enable_C_comments() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 131
def enable_C_comments
  tk_call('ctext::enableComments', @path)
  self
end
            
fast_delete(*args) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 74
def fast_delete(*args)
  tk_send('fastdelete', *args)
end
            
fast_insert(*args) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 78
def fast_insert(*args)
  tk_send('fastinsert', *args)
end
            
find_next_char(idx, chr) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 141
def find_next_char(idx, chr)
  tk_call('ctext::findNextChar', @path, idx, chr)
end
            
find_next_space(idx) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 145
def find_next_space(idx)
  tk_call('ctext::findNextSpace', @path, idx)
end
            
find_previous_space(idx) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 149
def find_previous_space(idx)
  tk_call('ctext::findPreviousSpace', @path, idx)
end
            
get_highlight_classes() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 122
def get_highlight_classes
  tk_split_simplelist(tk_call('ctext::getHighlightClasses', @path))
end
            
highlight(*args) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 82
def highlight(*args)
  tk_send('highlight', *args)
end
            
modified?(mode) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 158
def modified?(mode)
  bool(tk_call('ctext::modified', @path, mode))
end
            
paste() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 86
def paste
  tk_send('paste')
end
            
set_update_proc(cmd=Proc.new) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/ctext.rb, line 153
def set_update_proc(cmd=Proc.new)
  tk_call('proc', 'ctext::update', '', cmd)
  self
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.