Module | Tk::BLT::DragDrop
In: | tk/lib/tkextlib/blt/dragdrop.rb

### Methods

__validation_class_list active current_source_configinfo drag drop errors handle_target init_source location source source_configinfo source_configure source_handler source_handler_info source_handler_list target target_handler target_handler_list token

### Classes and Modules

Class Tk::BLT::DragDrop::DnD_Handle
Class Tk::BLT::DragDrop::PackageCommand
Class Tk::BLT::DragDrop::SiteCommand
Class Tk::BLT::DragDrop::Token

### Constants

TkCommandNames | = | ['::blt::drag&drop'.freeze].freeze

### Public Class methods

__validation_class_list()

[Source]

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

active()

[Source]

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

current_source_configinfo(win, slot=nil)

[Source]

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

drag(win, x, y)

[Source]

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

drop(win, x, y)

[Source]

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

errors(cmd=Proc.new)

[Source]

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

handle_target(win, type, val=None)

[Source]

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

init_source(win)

[Source]

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

location(x=None, y=None)

[Source]

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

source()

[Source]

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

source_configinfo(win, slot=nil)

[Source]

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

source_configure(win, slot, value=None)

[Source]

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

source_handler(win, datatype, cmd=Proc.new, *args)

[Source]

    # File tk/lib/tkextlib/blt/dragdrop.rb, line 151
        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)

[Source]

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

source_handler_list(win)

[Source]

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

target()

[Source]

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

target_handler(win, datatype, cmd=Proc.new, *args)

[Source]

    # File tk/lib/tkextlib/blt/dragdrop.rb, line 157
        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)

[Source]

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

token(win)

[Source]

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

[Validate]