module Tk::BLT::DnD - tk-0.2.0 Documentation

# module Tk::BLT::DnD

### Constants

TkCommandNames

### Public Class Methods

cancel(win) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 88
    def self.cancel(win)
      tk_call('::blt::dnd', 'cancel', *wins)
    end

cget(win, option) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 40
    def cget(win, option)
      itemcget(['cget', win], option)
    end

cget_strict(win, option) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 43
    def cget_strict(win, option)
      itemcget_strict(['cget', win], option)
    end

cget_tkstring(win, option) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 37
    def cget_tkstring(win, option)
      itemcget_tkstring(['cget', win], option)
    end

configinfo(win, slot=nil) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 49
    def configinfo(win, slot=nil)
      itemconfiginfo(['configure', win], slot)
    end

configure(win, slot, value=None) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 46
    def configure(win, slot, value=None)
      itemconfigure(['configure', win], slot, value)
    end

current_configinfo(win, slot=nil) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 52
    def current_configinfo(win, slot=nil)
      current_itemconfiginfo(['configure', win], slot)
    end

current_token_configinfo(win, slot=nil) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 71
    def current_token_configinfo(win, slot=nil)
      current_itemconfiginfo(['token', 'configure', win], slot)
    end

current_token_windowconfiginfo(win, slot=nil) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 81
    def current_token_windowconfiginfo(win, slot=nil)
      current_itemconfiginfo(['token', 'window', win], slot)
    end

delete(*wins) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 91
    def self.delete(*wins)
      tk_call('::blt::dnd', 'delete', *wins)
    end

delete_source(*wins) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 94
    def self.delete_source(*wins)
      tk_call('::blt::dnd', 'delete', '-source', *wins)
    end

delete_target(*wins) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 97
    def self.delete_target(*wins)
      tk_call('::blt::dnd', 'delete', '-target', *wins)
    end

drag(win, x, y, token=None) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 100
    def self.drag(win, x, y, token=None)
      tk_call('::blt::dnd', 'drag', win, x, y, token)
    end

drop(win, x, y, token=None) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 103
    def self.drop(win, x, y, token=None)
      tk_call('::blt::dnd', 'drop', win, x, y, token)
    end

get_data(win, fmt=nil, cmd=nil) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 106
    def self.get_data(win, fmt=nil, cmd=nil)
      if fmt
        tk_call('::blt::dnd', 'getdata', win, fmt, cmd)
      else
        list(tk_call('::blt::dnd', 'getdata', win))
      end
    end

names(pat=None) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 113
    def self.names(pat=None)
      list(tk_call('::blt::dnd', 'names', pat))
    end

pull(win, fmt) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 122
    def self.pull(win, fmt)
      tk_call('::blt::dnd', 'pull', win, fmt)
    end

register(win, keys={}) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 125
    def self.register(win, keys={})
      tk_call('::blt::dnd', 'register', win, keys)
    end

select(win, x, y, timestamp) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 128
    def self.select(win, x, y, timestamp)
      tk_call('::blt::dnd', 'select', win, x, y, timestamp)
    end

set_data(win, fmt=nil, cmd=nil) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 131
    def self.set_data(win, fmt=nil, cmd=nil)
      if fmt
        tk_call('::blt::dnd', 'setdata', win, fmt, cmd)
      else
        list(tk_call('::blt::dnd', 'setdata', win))
      end
    end

source_names(pat=None) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 116
    def self.source_names(pat=None)
      list(tk_call('::blt::dnd', 'names', '-source', pat))
    end

target_names(pat=None) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 119
    def self.target_names(pat=None)
      list(tk_call('::blt::dnd', 'names', '-target', pat))
    end

token(*args) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 138
    def self.token(*args)
      tk_call('::blt::dnd', 'token', *args)
    end

token_cget(win, option) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 59
    def token_cget(win, option)
      itemcget(['token', 'cget', win], option)
    end

token_cget_strict(win, option) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 62
    def token_cget_strict(win, option)
      itemcget_strict(['token', 'cget', win], option)
    end

token_cget_tkstring(win, option) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 56
    def token_cget_tkstring(win, option)
      itemcget_tkstring(['token', 'cget', win], option)
    end

token_configinfo(win, slot=nil) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 68
    def token_configinfo(win, slot=nil)
      itemconfiginfo(['token', 'configure', win], slot)
    end

token_configure(win, slot, value=None) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 65
    def token_configure(win, slot, value=None)
      itemconfigure(['token', 'configure', win], slot, value)
    end

token_windowconfiginfo(win, slot=nil) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 78
    def token_windowconfiginfo(win, slot=nil)
      itemconfiginfo(['token', 'window', win], slot)
    end

token_windowconfigure(win, slot, value=None) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 75
    def token_windowconfigure(win, slot, value=None)
      itemconfigure(['token', 'window', win], slot, value)
    end

### Private Class Methods

__item_cget_cmd(id) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 24
    def __item_cget_cmd(id)
      ['::blt::dnd', *id]
    end

__item_config_cmd(id) click to toggle source

    # File lib/tkextlib/blt/unix_dnd.rb, line 29
    def __item_config_cmd(id)
      ['::blt::dnd', *id]
    end