In Files

  • tk/lib/tk/winpkg.rb

Class/Module Index [+]

Quicksearch

Tk::WinDDE

Public Class Methods

async_execute(service, topic, data) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 62
def async_execute(service, topic, data)
  tk_call('dde', '-async', 'execute', service, topic, data)
end
            
eval(topic, cmd, *args) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 82
def eval(topic, cmd, *args)
  tk_call('dde', 'eval', topic, cmd, *args)
end
            
execute(service, topic, data) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 58
def execute(service, topic, data)
  tk_call('dde', 'execute', service, topic, data)
end
            
package_name() click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 23
def self.package_name
  PACKAGE_NAME
end
            
poke(service, topic, item, data) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 66
def poke(service, topic, item, data)
  tk_call('dde', 'poke', service, topic, item, data)
end
            
request(service, topic, item) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 70
def request(service, topic, item)
  tk_call('dde', 'request', service, topic, item)
end
            
servername(*args) click to toggle source

def servername(topic=None)

tk_call('dde', 'servername', topic)

end

 
               # File tk/lib/tk/winpkg.rb, line 36
def servername(*args)
  if args.size == 0
    tk_call('dde', 'servername')
  else
    if args[-1].kind_of?(Hash)  # dde 1.2 +
      keys = _symbolkey2str(args.pop)
      force = (keys.delete('force'))? '-force': None
      exact = (keys.delete('exact'))? '-exact': None
      if keys.size == 0
        tk_call('dde', 'servername', force, exact)
      elsif args.size == 0
        tk_call('dde', 'servername', force, exact, *hash_kv(keys))
      else
        tk_call('dde', 'servername', force, exact,
                *((hash_kv(keys) << '--') + args))
      end
    else
      tk_call('dde', 'servername', *args)
    end
  end
end
            
services(service, topic) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 78
def services(service, topic)
  tk_call('dde', 'services', service, topic)
end
            

Public Instance Methods

async_eval(topic, cmd, *args) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 86
def async_eval(topic, cmd, *args)
  tk_call('dde', 'eval', -async, topic, cmd, *args)
end
            
binary_request(service, topic, item) click to toggle source
 
               # File tk/lib/tk/winpkg.rb, line 74
def binary_request(service, topic, item)
  tk_call('dde', 'request', '-binary', service, topic, item)
end