# module Tk::Itcl

### Constants

LIBRARY
PACKAGE_NAME
PATCHLEVEL
PURIST
VERSION

### Public Class Methods

body(klass, func, args, body) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 112
    def self.body(klass, func, args, body)
      tk_call('::itcl::body', "#{klass}::#{func}", args, body)
    end

code(cmd, *args) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 116
    def self.code(cmd, *args)
      tk_call('::itcl::code', cmd, *args)
    end

code_in_namespace(namespace, cmd, *args) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 120
    def self.code_in_namespace(namespace, cmd, *args)
      tk_call('::itcl::code', '-namespace', namespace, cmd, *args)
    end

configbody(klass, var, body) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 124
    def self.configbody(klass, var, body)
      tk_call('::itcl::configbody', "#{klass}::#{var}", body)
    end

create_itcl_class(name, body) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 128
    def self.create_itcl_class(name, body)
      TkCore::INTERP._invoke('::itcl::class', name, body)
      klass = Class.new(Tk::Itcl::ItclObject)
      klass.const_set('ITCL_CLASSNAME', name.dup.freeze)
      klass
    end

create_local_obj(klass, name, *args) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 167
    def self.create_local_obj(klass, name, *args)
      tk_call('::itcl::local', klass, name, *args)
    end

delete_itcl_class(*names) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 135
    def self.delete_itcl_class(*names)
      tk_call('::itcl::delete', 'class',  *names)
    end

delete_itcl_object(*names) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 139
    def self.delete_itcl_object(*names)
      tk_call('::itcl::delete', 'object',  *names)
    end

delete_namespace(*names) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 143
    def self.delete_namespace(*names)
      tk_call('::itcl::delete', 'namespace',  *names)
    end

ensemble(name, *args) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 147
    def self.ensemble(name, *args)
      tk_call('::itcl::ensemble', name, *args)
    end

find_classes(pat=None) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 151
    def self.find_classes(pat=None)
      simplelist(tk_call('::itcl::find', 'classes', pat))
    end

find_objects(*args) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 155
    def self.find_objects(*args)
      simplelist(tk_call('::itcl::find', 'objects', *args))
    end

is_itcl_class(target) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 159
    def self.is_itcl_class(target)
      bool(tk_call('::itcl::is', 'class', target))
    end

is_itcl_instance(klass, target) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 171
    def self.is_itcl_instance(klass, target)
      bool(tk_call('::itcl::is', 'object', '-class', klass, target))
    end

is_itcl_object(target) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 163
    def self.is_itcl_object(target)
      bool(tk_call('::itcl::is', 'object', target))
    end

package_name() click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 27
    def self.package_name
      PACKAGE_NAME
    end

package_version() click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 31
    def self.package_version
      begin
        TkPackage.require('Itcl')
      rescue
        ''
      end
    end

scope(var) click to toggle source

    # File lib/tkextlib/itcl/incr_tcl.rb, line 175
    def self.scope(var)
      tk_call('::itcl::scope', var)
    end