Module: Tk::BLT::DnD

Extended by:
TkCore, TkItemConfigMethod
Defined in:
ext/lib/tkextlib/blt/unix_dnd.rb

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

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_str, number, procedure, simplelist, 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_str, #num_or_str, number, #number, string, #string, uninstall_cmd

Methods included from TkEvent

#install_bind, #install_bind_for_event_class

Methods included from TkItemConfigMethod

__IGNORE_UNKNOWN_CONFIGURE_OPTION__, __check_available_itemconfigure_options, __current_itemconfiginfo, __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!, current_itemconfiginfo, itemcget, itemcget_strict, itemconfiginfo, itemconfigure, tagid

Methods included from TkItemConfigOptkeys

#__conv_item_keyonly_opts, #itemconfig_hash_kv

Methods included from TkTreatItemFont

#kanjifont_copy, #kanjitagfont_configure, #latintagfont_configure, #latintagfont_copy, #tagfont_configinfo, #tagfont_configure, #tagfont_copy

Class Method Details

.__item_cget_cmd(id) ⇒ Object



23
24
25
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 23

def __item_cget_cmd(id)
  ['::blt::dnd', *id]
end

.__item_config_cmd(id) ⇒ Object



28
29
30
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 28

def __item_config_cmd(id)
  ['::blt::dnd', *id]
end

.cancel(win) ⇒ Object



81
82
83
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 81

def self.cancel(win)
  tk_call('::blt::dnd', 'cancel', *wins)
end

.cget(win, option) ⇒ Object



36
37
38
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 36

def cget(win, option)
  itemcget(['cget', win], option)
end

.cget_strict(win, option) ⇒ Object



39
40
41
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 39

def cget_strict(win, option)
  itemcget_strict(['cget', win], option)
end

.configinfo(win, slot = nil) ⇒ Object



45
46
47
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 45

def configinfo(win, slot=nil)
  itemconfiginfo(['configure', win], slot)
end

.configure(win, slot, value = None) ⇒ Object



42
43
44
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 42

def configure(win, slot, value=None)
  itemconfigure(['configure', win], slot, value)
end

.current_configinfo(win, slot = nil) ⇒ Object



48
49
50
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 48

def current_configinfo(win, slot=nil)
  current_itemconfiginfo(['configure', win], slot)
end

.current_token_configinfo(win, slot = nil) ⇒ Object



64
65
66
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 64

def current_token_configinfo(win, slot=nil)
  current_itemconfiginfo(['token', 'configure', win], slot)
end

.current_token_windowconfiginfo(win, slot = nil) ⇒ Object



74
75
76
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 74

def current_token_windowconfiginfo(win, slot=nil)
  current_itemconfiginfo(['token', 'window', win], slot)
end

.delete(*wins) ⇒ Object



84
85
86
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 84

def self.delete(*wins)
  tk_call('::blt::dnd', 'delete', *wins)
end

.delete_source(*wins) ⇒ Object



87
88
89
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 87

def self.delete_source(*wins)
  tk_call('::blt::dnd', 'delete', '-source', *wins)
end

.delete_target(*wins) ⇒ Object



90
91
92
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 90

def self.delete_target(*wins)
  tk_call('::blt::dnd', 'delete', '-target', *wins)
end

.drag(win, x, y, token = None) ⇒ Object



93
94
95
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 93

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



96
97
98
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 96

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



99
100
101
102
103
104
105
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 99

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



106
107
108
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 106

def self.names(pat=None)
  list(tk_call('::blt::dnd', 'names', pat))
end

.pull(win, fmt) ⇒ Object



115
116
117
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 115

def self.pull(win, fmt)
  tk_call('::blt::dnd', 'pull', win, fmt)
end

.register(win, keys = {}) ⇒ Object



118
119
120
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 118

def self.register(win, keys={})
  tk_call('::blt::dnd', 'register', win, keys)
end

.select(win, x, y, timestamp) ⇒ Object



121
122
123
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 121

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



124
125
126
127
128
129
130
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 124

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



109
110
111
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 109

def self.source_names(pat=None)
  list(tk_call('::blt::dnd', 'names', '-source', pat))
end

.target_names(pat = None) ⇒ Object



112
113
114
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 112

def self.target_names(pat=None)
  list(tk_call('::blt::dnd', 'names', '-target', pat))
end

.token(*args) ⇒ Object



131
132
133
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 131

def self.token(*args)
  tk_call('::blt::dnd', 'token', *args)
end

.token_cget(win, option) ⇒ Object



52
53
54
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 52

def token_cget(win, option)
  itemcget(['token', 'cget', win], option)
end

.token_cget_strict(win, option) ⇒ Object



55
56
57
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 55

def token_cget_strict(win, option)
  itemcget_strict(['token', 'cget', win], option)
end

.token_configinfo(win, slot = nil) ⇒ Object



61
62
63
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 61

def token_configinfo(win, slot=nil)
  itemconfiginfo(['token', 'configure', win], slot)
end

.token_configure(win, slot, value = None) ⇒ Object



58
59
60
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 58

def token_configure(win, slot, value=None)
  itemconfigure(['token', 'configure', win], slot, value)
end

.token_windowconfiginfo(win, slot = nil) ⇒ Object



71
72
73
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 71

def token_windowconfiginfo(win, slot=nil)
  itemconfiginfo(['token', 'window', win], slot)
end

.token_windowconfigure(win, slot, value = None) ⇒ Object



68
69
70
# File 'ext/lib/tkextlib/blt/unix_dnd.rb', line 68

def token_windowconfigure(win, slot, value=None)
  itemconfigure(['token', 'window', win], slot, value)
end