# module Tk::WinDDE

### Constants

PACKAGE_NAME
TkCommandNames

### Public Class Methods

async_execute(service, topic, data) click to toggle source

    # File lib/tk/winpkg.rb, line 63
    def async_execute(service, topic, data)
      tk_call('dde', '-async', 'execute', service, topic, data)
    end

eval(topic, cmd, *args) click to toggle source

    # File lib/tk/winpkg.rb, line 83
    def eval(topic, cmd, *args)
      tk_call('dde', 'eval', topic, cmd, *args)
    end

execute(service, topic, data) click to toggle source

    # File lib/tk/winpkg.rb, line 59
    def execute(service, topic, data)
      tk_call('dde', 'execute', service, topic, data)
    end

package_name() click to toggle source

    # File lib/tk/winpkg.rb, line 24
    def self.package_name
      PACKAGE_NAME
    end

poke(service, topic, item, data) click to toggle source

    # File lib/tk/winpkg.rb, line 67
    def poke(service, topic, item, data)
      tk_call('dde', 'poke', service, topic, item, data)
    end

request(service, topic, item) click to toggle source

    # File lib/tk/winpkg.rb, line 71
    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 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

services(service, topic) click to toggle source

    # File lib/tk/winpkg.rb, line 79
    def services(service, topic)
      tk_call('dde', 'services', service, topic)
    end

### Public Instance Methods

async_eval(topic, cmd, *args) click to toggle source

    # File lib/tk/winpkg.rb, line 87
    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 lib/tk/winpkg.rb, line 75
    def binary_request(service, topic, item)
      tk_call('dde', 'request', '-binary', service, topic, item)
    end

### Private Instance Methods

async_execute(service, topic, data) click to toggle source

    # File lib/tk/winpkg.rb, line 63
    def async_execute(service, topic, data)
      tk_call('dde', '-async', 'execute', service, topic, data)
    end

eval(topic, cmd, *args) click to toggle source

    # File lib/tk/winpkg.rb, line 83
    def eval(topic, cmd, *args)
      tk_call('dde', 'eval', topic, cmd, *args)
    end

execute(service, topic, data) click to toggle source

    # File lib/tk/winpkg.rb, line 59
    def execute(service, topic, data)
      tk_call('dde', 'execute', service, topic, data)
    end

poke(service, topic, item, data) click to toggle source

    # File lib/tk/winpkg.rb, line 67
    def poke(service, topic, item, data)
      tk_call('dde', 'poke', service, topic, item, data)
    end

request(service, topic, item) click to toggle source

    # File lib/tk/winpkg.rb, line 71
    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 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

services(service, topic) click to toggle source

    # File lib/tk/winpkg.rb, line 79
    def services(service, topic)
      tk_call('dde', 'services', service, topic)
    end