OSDN Git Service

ruby-1.9.1-rc1
[splhack/AndroidRuby.git] / lib / ruby-1.9.1-rc1 / ext / tk / lib / tkextlib / bwidget / dragsite.rb
1 #
2 #  tkextlib/bwidget/dragsite.rb
3 #                               by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
4 #
5
6 require 'tk'
7 require 'tkextlib/bwidget.rb'
8
9 module Tk
10   module BWidget
11     module DragSite
12     end
13   end
14 end
15
16 module Tk::BWidget::DragSite
17   include Tk
18   extend Tk
19
20   def self.include(klass, type, event)
21     tk_call('DragSite::include', klass, type, event)
22   end
23
24   def self.register(path, keys={})
25     tk_call('DragSite::register', path, *hash_kv(keys))
26   end
27
28   def self.set_drag(path, subpath, initcmd, endcmd, force=None)
29     tk_call('DragSite::setdrag', path, subpath, initcmd, endcmd, force)
30   end
31 end