Module: Tk::BLT::DnD
  
  
  
  
    
      Constant Summary
      collapse
    
    
      
        - TkCommandNames =
          
        
 
        ['::blt::dnd'.freeze].freeze
 
      
    
  
  
  
  Constants included
     from TkCore
  TkCore::EventFlag, TkCore::INTERP, TkCore::INTERP_MUTEX, TkCore::INTERP_ROOT_CHECK, TkCore::INTERP_THREAD, TkCore::INTERP_THREAD_STATUS, TkCore::RUN_EVENTLOOP_ON_MAIN_THREAD, TkCore::WIDGET_DESTROY_HOOK, TkCore::WITH_ENCODING, TkCore::WITH_RUBY_VM
  
  
  Constants included
     from TkComm
  TkComm::GET_CONFIGINFO_AS_ARRAY, TkComm::GET_CONFIGINFOwoRES_AS_ARRAY, TkComm::TkExtlibAutoloadModule, TkComm::Tk_CMDTBL, TkComm::Tk_IDs, TkComm::Tk_WINDOWS, TkComm::USE_TCLs_LIST_FUNCTIONS, TkComm::WidgetClassNames
  
  
  Constants included
     from TkUtil
  TkUtil::None, TkUtil::RELEASE_DATE
  
    
      Class Method Summary
      collapse
    
    
      
        - 
  
    
      .__item_cget_cmd(id)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .__item_config_cmd(id)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .cancel(win)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .cget(win, option)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .cget_strict(win, option)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .cget_tkstring(win, option)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .configinfo(win, slot = nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .configure(win, slot, value = None)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .current_configinfo(win, slot = nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .current_token_configinfo(win, slot = nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .current_token_windowconfiginfo(win, slot = nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .delete(*wins)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .delete_source(*wins)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .delete_target(*wins)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .drag(win, x, y, token = None)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .drop(win, x, y, token = None)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .get_data(win, fmt = nil, cmd = nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .names(pat = None)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .pull(win, fmt)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .register(win, keys = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .select(win, x, y, timestamp)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .set_data(win, fmt = nil, cmd = nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .source_names(pat = None)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .target_names(pat = None)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .token(*args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .token_cget(win, option)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .token_cget_strict(win, option)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .token_cget_tkstring(win, option)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .token_configinfo(win, slot = nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .token_configure(win, slot, value = None)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .token_windowconfiginfo(win, slot = nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
        - 
  
    
      .token_windowconfigure(win, slot, value = None)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
  
 
      
    
  
  
  
  
  
  
  
  
  
  Methods included from TkCore
  _tk_call_to_list_core, after, after_cancel, after_idle, appname, appsend, appsend_deny, appsend_displayof, callback, callback_break, callback_continue, callback_return, chooseColor, chooseDirectory, do_one_event, event_generate, getMultipleOpenFile, getMultipleSaveFile, getOpenFile, getSaveFile, get_eventloop_tick, get_eventloop_weight, get_no_event_wait, inactive, inactive_displayof, info, ip_eval, ip_eval_with_enc, ip_eval_without_enc, ip_invoke, ip_invoke_with_enc, ip_invoke_without_enc, is_mainloop?, load_cmd_on_ip, mainloop, mainloop_exist?, mainloop_thread?, mainloop_watchdog, messageBox, rb_appsend, rb_appsend_displayof, reset_inactive, reset_inactive_displayof, restart, scaling, scaling_displayof, set_eventloop_tick, set_eventloop_weight, set_no_event_wait, tk_call, tk_call_to_list, tk_call_to_list_with_enc, tk_call_to_list_without_enc, tk_call_to_simplelist, tk_call_to_simplelist_with_enc, tk_call_to_simplelist_without_enc, tk_call_with_enc, tk_call_without_enc, windowingsystem
  
  
  
  
  
  
  
  
  Methods included from TkComm
  _at, _callback_entry?, _callback_entry_class?, _curr_cmd_id, _fromUTF8, _genobj_for_tkwidget, _next_cmd_id, _toUTF8, array2tk_list, #bind, #bind_all, #bind_append, #bind_append_all, #bind_remove, #bind_remove_all, #bindinfo, #bindinfo_all, bool, image_obj, #install_cmd, install_cmd, list, num_or_nil, num_or_str, number, procedure, simplelist, slice_ary, string, #subst, tk_tcl2ruby, uninstall_cmd, #uninstall_cmd, window
  
  
  
  
  
  
  
  
  Methods included from TkUtil
  #_conv_args, _conv_args, #_fromUTF8, #_get_eval_enc_str, _get_eval_enc_str, #_get_eval_string, _get_eval_string, _symbolkey2str, #_symbolkey2str, #_toUTF8, #bool, bool, callback, eval_cmd, #hash_kv, hash_kv, install_cmd, #num_or_nil, num_or_nil, num_or_str, #num_or_str, number, #number, string, #string, uninstall_cmd, untrust
  
  
  
  
  
  
  
  
  Methods included from TkEvent
  #install_bind, #install_bind_for_event_class
  
  
  
  
  
  
  
  
  
  __IGNORE_UNKNOWN_CONFIGURE_OPTION__, __check_available_itemconfigure_options, __current_itemconfiginfo, __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!, current_itemconfiginfo, itemcget, itemcget_strict, itemcget_tkstring, itemconfiginfo, itemconfigure, tagid
  
  
  
  
  
  
  
  
  
  #__conv_item_keyonly_opts, #itemconfig_hash_kv
  
  
  
  
  
  
  
  
  
  #kanjifont_copy, #kanjitagfont_configure, #latintagfont_configure, #latintagfont_copy, #tagfont_configinfo, #tagfont_configure, #tagfont_copy
  
  
  
  
  
  
  
    Class Method Details
    
      
  
  
    .__item_cget_cmd(id)  ⇒ Object 
  
  
  
  
    
      
24
25
26 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 24
def __item_cget_cmd(id)
  ['::blt::dnd', *id]
end 
     | 
  
 
    
      
  
  
    .__item_config_cmd(id)  ⇒ Object 
  
  
  
  
    
      
29
30
31 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 29
def __item_config_cmd(id)
  ['::blt::dnd', *id]
end 
     | 
  
 
    
      
  
  
    .cancel(win)  ⇒ Object 
  
  
  
  
    
      
88
89
90 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 88
def self.cancel(win)
  tk_call('::blt::dnd', 'cancel', *wins)
end
     | 
  
 
    
      
  
  
    .cget(win, option)  ⇒ Object 
  
  
  
  
    
      
40
41
42 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 40
def cget(win, option)
  itemcget(['cget', win], option)
end 
     | 
  
 
    
      
  
  
    .cget_strict(win, option)  ⇒ Object 
  
  
  
  
    
      
43
44
45 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 43
def cget_strict(win, option)
  itemcget_strict(['cget', win], option)
end 
     | 
  
 
    
      
  
  
    .cget_tkstring(win, option)  ⇒ Object 
  
  
  
  
    
      
37
38
39 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 37
def cget_tkstring(win, option)
  itemcget_tkstring(['cget', win], option)
end 
     | 
  
 
    
      
  
  
    .configinfo(win, slot = nil)  ⇒ Object 
  
  
  
  
    
      
49
50
51 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 49
def configinfo(win, slot=nil)
  itemconfiginfo(['configure', win], slot)
end 
     | 
  
 
    
      
  
  
    
      
46
47
48 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 46
def configure(win, slot, value=None)
  itemconfigure(['configure', win], slot, value)
end 
     | 
  
 
    
      
  
  
    .current_configinfo(win, slot = nil)  ⇒ Object 
  
  
  
  
    
      
52
53
54 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 52
def current_configinfo(win, slot=nil)
  current_itemconfiginfo(['configure', win], slot)
end 
     | 
  
 
    
      
  
  
    .current_token_configinfo(win, slot = nil)  ⇒ Object 
  
  
  
  
    
      
71
72
73 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 71
def current_token_configinfo(win, slot=nil)
  current_itemconfiginfo(['token', 'configure', win], slot)
end 
     | 
  
 
    
      
  
  
    .current_token_windowconfiginfo(win, slot = nil)  ⇒ Object 
  
  
  
  
    
      
81
82
83 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 81
def current_token_windowconfiginfo(win, slot=nil)
  current_itemconfiginfo(['token', 'window', win], slot)
end 
     | 
  
 
    
      
  
  
    .delete(*wins)  ⇒ Object 
  
  
  
  
    
      
91
92
93 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 91
def self.delete(*wins)
  tk_call('::blt::dnd', 'delete', *wins)
end
     | 
  
 
    
      
  
  
    .delete_source(*wins)  ⇒ Object 
  
  
  
  
    
      
94
95
96 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 94
def self.delete_source(*wins)
  tk_call('::blt::dnd', 'delete', '-source', *wins)
end
     | 
  
 
    
      
  
  
    .delete_target(*wins)  ⇒ Object 
  
  
  
  
    
      
97
98
99 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 97
def self.delete_target(*wins)
  tk_call('::blt::dnd', 'delete', '-target', *wins)
end
     | 
  
 
    
      
  
  
    .drag(win, x, y, token = None)  ⇒ Object 
  
  
  
  
    
      
100
101
102 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 100
def self.drag(win, x, y, token=None)
  tk_call('::blt::dnd', 'drag', win, x, y, token)
end
     | 
  
 
    
      
  
  
    .drop(win, x, y, token = None)  ⇒ Object 
  
  
  
  
    
      
103
104
105 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 103
def self.drop(win, x, y, token=None)
  tk_call('::blt::dnd', 'drop', win, x, y, token)
end
     | 
  
 
    
      
  
  
    .get_data(win, fmt = nil, cmd = nil)  ⇒ Object 
  
  
  
  
    
      
106
107
108
109
110
111
112 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 106
def self.get_data(win, fmt=nil, cmd=nil)
  if fmt
    tk_call('::blt::dnd', 'getdata', win, fmt, cmd)
  else
    list(tk_call('::blt::dnd', 'getdata', win))
  end
end
     | 
  
 
    
      
  
  
    .names(pat = None)  ⇒ Object 
  
  
  
  
    
      
113
114
115 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 113
def self.names(pat=None)
  list(tk_call('::blt::dnd', 'names', pat))
end
     | 
  
 
    
      
  
  
    .pull(win, fmt)  ⇒ Object 
  
  
  
  
    
      
122
123
124 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 122
def self.pull(win, fmt)
  tk_call('::blt::dnd', 'pull', win, fmt)
end
     | 
  
 
    
      
  
  
    .register(win, keys = {})  ⇒ Object 
  
  
  
  
    
      
125
126
127 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 125
def self.register(win, keys={})
  tk_call('::blt::dnd', 'register', win, keys)
end
     | 
  
 
    
      
  
  
    .select(win, x, y, timestamp)  ⇒ Object 
  
  
  
  
    
      
128
129
130 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 128
def self.select(win, x, y, timestamp)
  tk_call('::blt::dnd', 'select', win, x, y, timestamp)
end
     | 
  
 
    
      
  
  
    .set_data(win, fmt = nil, cmd = nil)  ⇒ Object 
  
  
  
  
    
      
131
132
133
134
135
136
137 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 131
def self.set_data(win, fmt=nil, cmd=nil)
  if fmt
    tk_call('::blt::dnd', 'setdata', win, fmt, cmd)
  else
    list(tk_call('::blt::dnd', 'setdata', win))
  end
end
     | 
  
 
    
      
  
  
    .source_names(pat = None)  ⇒ Object 
  
  
  
  
    
      
116
117
118 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 116
def self.source_names(pat=None)
  list(tk_call('::blt::dnd', 'names', '-source', pat))
end
     | 
  
 
    
      
  
  
    .target_names(pat = None)  ⇒ Object 
  
  
  
  
    
      
119
120
121 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 119
def self.target_names(pat=None)
  list(tk_call('::blt::dnd', 'names', '-target', pat))
end
     | 
  
 
    
      
  
  
    .token(*args)  ⇒ Object 
  
  
  
  
    
      
138
139
140 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 138
def self.token(*args)
  tk_call('::blt::dnd', 'token', *args)
end
     | 
  
 
    
      
  
  
    .token_cget(win, option)  ⇒ Object 
  
  
  
  
    
      
59
60
61 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 59
def token_cget(win, option)
  itemcget(['token', 'cget', win], option)
end 
     | 
  
 
    
      
  
  
    .token_cget_strict(win, option)  ⇒ Object 
  
  
  
  
    
      
62
63
64 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 62
def token_cget_strict(win, option)
  itemcget_strict(['token', 'cget', win], option)
end 
     | 
  
 
    
      
  
  
    .token_cget_tkstring(win, option)  ⇒ Object 
  
  
  
  
    
      
56
57
58 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 56
def token_cget_tkstring(win, option)
  itemcget_tkstring(['token', 'cget', win], option)
end 
     | 
  
 
    
      
  
  
    .token_configinfo(win, slot = nil)  ⇒ Object 
  
  
  
  
    
      
68
69
70 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 68
def token_configinfo(win, slot=nil)
  itemconfiginfo(['token', 'configure', win], slot)
end 
     | 
  
 
    
      
  
  
    
      
65
66
67 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 65
def token_configure(win, slot, value=None)
  itemconfigure(['token', 'configure', win], slot, value)
end 
     | 
  
 
    
      
  
  
    .token_windowconfiginfo(win, slot = nil)  ⇒ Object 
  
  
  
  
    
      
78
79
80 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 78
def token_windowconfiginfo(win, slot=nil)
  itemconfiginfo(['token', 'window', win], slot)
end 
     | 
  
 
    
      
  
  
    
      
75
76
77 
     | 
    
      # File 'lib/tkextlib/blt/unix_dnd.rb', line 75
def token_windowconfigure(win, slot, value=None)
  itemconfigure(['token', 'window', win], slot, value)
end 
     |