OSDN Git Service

ruby-1.9.1-rc1
[splhack/AndroidRuby.git] / lib / ruby-1.9.1-rc1 / ext / tk / lib / tkextlib / bwidget / dropsite.rb
1 #
2 #  tkextlib/bwidget/dropsite.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 DropSite
12     end
13   end
14 end
15
16 module Tk::BWidget::DropSite
17   include Tk
18   extend Tk
19
20   def self.include(klass, type)
21     tk_call('DropSite::include', klass, type)
22   end
23
24   def self.register(path, keys={})
25     tk_call('DropSite::register', path, *hash_kv(keys))
26   end
27
28   def self.set_cursor(cursor)
29     tk_call('DropSite::setcursor', cursor)
30   end
31
32   def self.set_drop(path, subpath, dropover, drop, force=None)
33     tk_call('DropSite::setdrop', path, subpath, dropover, drop, force)
34   end
35
36   def self.set_operation(op)
37     tk_call('DropSite::setoperation', op)
38   end
39 end