In Files

  • tk/lib/tkextlib/blt/vector.rb

Methods

Class/Module Index [+]

Quicksearch

Tk::BLT::VectorAccess

Public Class Methods

new(name) click to toggle source
 
               # File tk/lib/tkextlib/blt/vector.rb, line 223
def self.new(name)
  return TkVar_ID_TBL[name] if TkVar_ID_TBL[name]
  super(name, size=nil, keys={})
end
            
new(vec_name) click to toggle source
 
               # File tk/lib/tkextlib/blt/vector.rb, line 228
def initialize(vec_name)
  @id = vec_name
  TkVar_ID_TBL[@id] = self

  @def_default = false
  @default_val = nil

  @trace_var  = nil
  @trace_elem = nil
  @trace_opts = nil

  # teach Tk-ip that @id is global var
  TkCore::INTERP._invoke_without_enc('global', @id)
end