Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more
# File tk/lib/tkextlib/blt/dragdrop.rb, line 158
def self.__validation_class_list
super() << PackageCommand << SiteCommand
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 260
def self.active
bool(tk_call('::blt::drag&drop', 'active'))
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 66
def current_source_configinfo(win, slot=nil)
current_itemconfiginfo(['source', win], slot)
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 249
def self.drag(win, x, y)
tk_call('::blt::drag&drop', 'drag', win, x, y)
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 252
def self.drop(win, x, y)
tk_call('::blt::drag&drop', 'drop', win, x, y)
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 256
def self.errors(cmd=Proc.new)
tk_call('::blt::drag&drop', 'errors', cmd)
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 241
def self.handle_target(win, type, val=None)
tk_call('::blt::drag&drop', 'target', win, 'handle', type, val)
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 219
def self.init_source(win)
tk_call('::blt::drag&drop', 'source', win)
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 264
def self.location(x=None, y=None)
list(tk_call('::blt::drag&drop', 'location', x, y))
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 223
def self.source()
list(tk_call('::blt::drag&drop', 'source'))
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 63
def source_configinfo(win, slot=nil)
itemconfiginfo(['source', win], slot)
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 60
def source_configure(win, slot, value=None)
itemconfigure(['source', win], slot, value)
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 205
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
# File tk/lib/tkextlib/blt/dragdrop.rb, line 230
def self.source_handler_info(win, type)
tk_tcl2ruby(tk_call('::blt::drag&drop', 'source', win, 'handler', type))
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 227
def self.source_handler_list(win)
simplelist(tk_call('::blt::drag&drop', 'source', win, 'handler'))
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 234
def self.target
list(tk_call('::blt::drag&drop', 'target'))
end
# File tk/lib/tkextlib/blt/dragdrop.rb, line 211
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