Module: Tk::BLT::DragDrop
Defined Under Namespace
Classes: DnD_Handle, PackageCommand, SiteCommand, Token
Constant Summary
collapse
- TkCommandNames =
['::blt::drag&drop'.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_boolval_optkeys(id) ⇒ Object
-
.__item_config_cmd(id) ⇒ Object
id := [‘source’|‘target’, win].
-
.__item_listval_optkeys(id) ⇒ Object
-
.__item_strval_optkeys(id) ⇒ Object
-
.__validation_class_list ⇒ Object
-
.active ⇒ Object
-
.current_source_configinfo(win, slot = nil) ⇒ Object
-
.drag(win, x, y) ⇒ Object
-
.drop(win, x, y) ⇒ Object
-
.errors(cmd = Proc.new) ⇒ Object
-
.handle_target(win, type, val = None) ⇒ Object
-
.init_source(win) ⇒ Object
-
.location(x = None, y = None) ⇒ Object
-
.source ⇒ Object
-
.source_configinfo(win, slot = nil) ⇒ Object
-
.source_configure(win, slot, value = None) ⇒ Object
-
.source_handler(win, datatype, cmd = Proc.new, *args) ⇒ Object
-
.source_handler_info(win, type) ⇒ Object
-
.source_handler_list(win) ⇒ Object
-
.target ⇒ Object
-
.target_handler(win, datatype, cmd = Proc.new, *args) ⇒ Object
-
.target_handler_list(win) ⇒ Object
-
.token(win) ⇒ 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_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
__IGNORE_UNKNOWN_CONFIGURE_OPTION__, __check_available_itemconfigure_options, __current_itemconfiginfo, __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!, current_itemconfiginfo, itemcget, itemcget_strict, itemconfiginfo, itemconfigure, tagid
#__conv_item_keyonly_opts, #itemconfig_hash_kv
#kanjifont_copy, #kanjitagfont_configure, #latintagfont_configure, #latintagfont_copy, #tagfont_configinfo, #tagfont_configure, #tagfont_copy
__conv_vcmd_on_hash_kv, __def_validcmd, __get_validate_key2class, __validation_class_list, __validcmd_call, configure
Class Method Details
.__item_boolval_optkeys(id) ⇒ Object
42
43
44
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 42
def __item_boolval_optkeys(id)
super(id) << 'selftarget'
end
|
.__item_config_cmd(id) ⇒ Object
id := [‘source’|‘target’, win]
37
38
39
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 37
def __item_config_cmd(id) ['::blt::drag&drop', id[0], id[1]]
end
|
.__item_listval_optkeys(id) ⇒ Object
47
48
49
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 47
def __item_listval_optkeys(id)
super(id) << 'send'
end
|
.__item_strval_optkeys(id) ⇒ Object
52
53
54
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 52
def __item_strval_optkeys(id)
super(id) << 'rejectbg' << 'rejectfg' << 'tokenbg'
end
|
.__validation_class_list ⇒ Object
158
159
160
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 158
def self.__validation_class_list
super() << PackageCommand << SiteCommand
end
|
260
261
262
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 260
def self.active
bool(tk_call('::blt::drag&drop', 'active'))
end
|
.current_source_configinfo(win, slot = nil) ⇒ Object
66
67
68
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 66
def current_source_configinfo(win, slot=nil)
current_itemconfiginfo(['source', win], slot)
end
|
.drag(win, x, y) ⇒ Object
249
250
251
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 249
def self.drag(win, x, y)
tk_call('::blt::drag&drop', 'drag', win, x, y)
end
|
.drop(win, x, y) ⇒ Object
252
253
254
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 252
def self.drop(win, x, y)
tk_call('::blt::drag&drop', 'drop', win, x, y)
end
|
.errors(cmd = Proc.new) ⇒ Object
256
257
258
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 256
def self.errors(cmd=Proc.new)
tk_call('::blt::drag&drop', 'errors', cmd)
end
|
.handle_target(win, type, val = None) ⇒ Object
241
242
243
|
# File 'ext/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
|
.init_source(win) ⇒ Object
219
220
221
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 219
def self.init_source(win)
tk_call('::blt::drag&drop', 'source', win)
end
|
.location(x = None, y = None) ⇒ Object
264
265
266
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 264
def self.location(x=None, y=None)
list(tk_call('::blt::drag&drop', 'location', x, y))
end
|
223
224
225
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 223
def self.source()
list(tk_call('::blt::drag&drop', 'source'))
end
|
.source_configinfo(win, slot = nil) ⇒ Object
63
64
65
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 63
def source_configinfo(win, slot=nil)
itemconfiginfo(['source', win], slot)
end
|
60
61
62
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 60
def source_configure(win, slot, value=None)
itemconfigure(['source', win], slot, value)
end
|
.source_handler(win, datatype, cmd = Proc.new, *args) ⇒ Object
205
206
207
208
209
|
# File 'ext/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
|
.source_handler_info(win, type) ⇒ Object
230
231
232
|
# File 'ext/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
|
.source_handler_list(win) ⇒ Object
227
228
229
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 227
def self.source_handler_list(win)
simplelist(tk_call('::blt::drag&drop', 'source', win, 'handler'))
end
|
234
235
236
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 234
def self.target
list(tk_call('::blt::drag&drop', 'target'))
end
|
.target_handler(win, datatype, cmd = Proc.new, *args) ⇒ Object
211
212
213
214
215
|
# File 'ext/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
|
.target_handler_list(win) ⇒ Object
237
238
239
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 237
def self.target_handler_list(win)
simplelist(tk_call('::blt::drag&drop', 'target', win, 'handler'))
end
|
.token(win) ⇒ Object
245
246
247
|
# File 'ext/lib/tkextlib/blt/dragdrop.rb', line 245
def self.token(win)
window(tk_call('::blt::drag&drop', 'token', win))
end
|