module Tk::WinDDE
Constants
- PACKAGE_NAME
- TkCommandNames
Public Class Methods
Source
# File lib/tk/winpkg.rb, line 63 def async_execute(service, topic, data) tk_call('dde', '-async', 'execute', service, topic, data) end
Source
# File lib/tk/winpkg.rb, line 83 def eval(topic, cmd, *args) tk_call('dde', 'eval', topic, cmd, *args) end
Source
# File lib/tk/winpkg.rb, line 59 def execute(service, topic, data) tk_call('dde', 'execute', service, topic, data) end
Source
# File lib/tk/winpkg.rb, line 67 def poke(service, topic, item, data) tk_call('dde', 'poke', service, topic, item, data) end
Source
# File lib/tk/winpkg.rb, line 71 def request(service, topic, item) tk_call('dde', 'request', service, topic, item) end
Source
# File lib/tk/winpkg.rb, line 37 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
def servername(topic=None)
tk_call('dde', 'servername', topic)
end
Source
# File lib/tk/winpkg.rb, line 79 def services(service, topic) tk_call('dde', 'services', service, topic) end
Public Instance Methods
Source
# File lib/tk/winpkg.rb, line 87 def async_eval(topic, cmd, *args) tk_call('dde', 'eval', -async, topic, cmd, *args) end
Source
# File lib/tk/winpkg.rb, line 75 def binary_request(service, topic, item) tk_call('dde', 'request', '-binary', service, topic, item) end
Private Instance Methods
Source
# File lib/tk/winpkg.rb, line 63 def async_execute(service, topic, data) tk_call('dde', '-async', 'execute', service, topic, data) end
Source
# File lib/tk/winpkg.rb, line 83 def eval(topic, cmd, *args) tk_call('dde', 'eval', topic, cmd, *args) end
Source
# File lib/tk/winpkg.rb, line 59 def execute(service, topic, data) tk_call('dde', 'execute', service, topic, data) end
Source
# File lib/tk/winpkg.rb, line 67 def poke(service, topic, item, data) tk_call('dde', 'poke', service, topic, item, data) end
Source
# File lib/tk/winpkg.rb, line 71 def request(service, topic, item) tk_call('dde', 'request', service, topic, item) end
Source
# File lib/tk/winpkg.rb, line 37 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
def servername(topic=None)
tk_call('dde', 'servername', topic)
end
Source
# File lib/tk/winpkg.rb, line 79 def services(service, topic) tk_call('dde', 'services', service, topic) end