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

# module Tk::BLT::DragDrop

### Constants

TkCommandNames

### Public Class Methods

__validation_class_list() click to toggle source
Calls superclass method

    # File lib/tkextlib/blt/dragdrop.rb, line 160
    def self.__validation_class_list
      super() << PackageCommand << SiteCommand
    end

active() click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 262
    def self.active
      bool(tk_call('::blt::drag&drop', 'active'))
    end

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

    # File lib/tkextlib/blt/dragdrop.rb, line 68
    def current_source_configinfo(win, slot=nil)
      current_itemconfiginfo(['source', win], slot)
    end

drag(win, x, y) click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 251
    def self.drag(win, x, y)
      tk_call('::blt::drag&drop', 'drag', win, x, y)
    end

drop(win, x, y) click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 254
    def self.drop(win, x, y)
      tk_call('::blt::drag&drop', 'drop', win, x, y)
    end

errors(cmd=Proc.new) click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 258
    def self.errors(cmd=Proc.new)
      tk_call('::blt::drag&drop', 'errors', cmd)
    end

handle_target(win, type, val=None) click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 243
    def self.handle_target(win, type, val=None)
      tk_call('::blt::drag&drop', 'target', win, 'handle', type, val)
    end

init_source(win) click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 221
    def self.init_source(win)
      tk_call('::blt::drag&drop', 'source', win)
    end

location(x=None, y=None) click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 266
    def self.location(x=None, y=None)
      list(tk_call('::blt::drag&drop', 'location', x, y))
    end

source() click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 225
    def self.source()
      list(tk_call('::blt::drag&drop', 'source'))
    end

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

    # File lib/tkextlib/blt/dragdrop.rb, line 65
    def source_configinfo(win, slot=nil)
      itemconfiginfo(['source', win], slot)
    end

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

    # File lib/tkextlib/blt/dragdrop.rb, line 62
    def source_configure(win, slot, value=None)
      itemconfigure(['source', win], slot, value)
    end

source_handler(win, datatype, cmd=Proc.new, *args) click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 207
    def self.source_handler(win, datatype, cmd=Proc.new, *args)
      _bind_for_event_class(DnD_Handle,
                            ['::blt::drag&drop', 'source', win, 'handler'],
                            cmd, *args)
    end

source_handler_info(win, type) click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 232
    def self.source_handler_info(win, type)
      tk_tcl2ruby(tk_call('::blt::drag&drop', 'source', win, 'handler', type))
    end

source_handler_list(win) click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 229
    def self.source_handler_list(win)
      simplelist(tk_call('::blt::drag&drop', 'source', win, 'handler'))
    end

target() click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 236
    def self.target
      list(tk_call('::blt::drag&drop', 'target'))
    end

target_handler(win, datatype, cmd=Proc.new, *args) click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 213
    def self.target_handler(win, datatype, cmd=Proc.new, *args)
      _bind_for_event_class(DnD_Handle,
                            ['::blt::drag&drop', 'target', win, 'handler'],
                            cmd, *args)
    end

target_handler_list(win) click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 239
    def self.target_handler_list(win)
      simplelist(tk_call('::blt::drag&drop', 'target', win, 'handler'))
    end

token(win) click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 247
    def self.token(win)
      window(tk_call('::blt::drag&drop', 'token', win))
    end

### Private Class Methods

__item_boolval_optkeys(id) click to toggle source
Calls superclass method

    # File lib/tkextlib/blt/dragdrop.rb, line 43
    def __item_boolval_optkeys(id)
      super(id) << 'selftarget'
    end

__item_config_cmd(id) click to toggle source

    # File lib/tkextlib/blt/dragdrop.rb, line 38
    def __item_config_cmd(id)  # id := ['source'|'target', win]
      ['::blt::drag&drop', id[0], id[1]]
    end

__item_listval_optkeys(id) click to toggle source
Calls superclass method

    # File lib/tkextlib/blt/dragdrop.rb, line 48
    def __item_listval_optkeys(id)
      super(id) << 'send'
    end

__item_strval_optkeys(id) click to toggle source
Calls superclass method

    # File lib/tkextlib/blt/dragdrop.rb, line 53
    def __item_strval_optkeys(id)
      super(id) << 'rejectbg' << 'rejectfg' << 'tokenbg'
    end