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 TkUtil
TkUtil::None, TkUtil::RELEASE_DATE
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
Class Method Summary
collapse
-
.__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
__conv_vcmd_on_hash_kv, __def_validcmd, __get_validate_key2class, __validation_class_list, __validcmd_call, configure
__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
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
#kanjifont_copy, #kanjitagfont_configure, #latintagfont_configure, #latintagfont_copy, #tagfont_configinfo, #tagfont_configure, #tagfont_copy
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 TkEvent
#install_bind, #install_bind_for_event_class
Class Method Details
.__validation_class_list ⇒ Object
159
160
161
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 159
def self.__validation_class_list
super() << PackageCommand << SiteCommand
end
|
261
262
263
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 261
def self.active
bool(tk_call('::blt::drag&drop', 'active'))
end
|
.current_source_configinfo(win, slot = nil) ⇒ Object
67
68
69
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 67
def current_source_configinfo(win, slot=nil)
current_itemconfiginfo(['source', win], slot)
end
|
.drag(win, x, y) ⇒ Object
250
251
252
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 250
def self.drag(win, x, y)
tk_call('::blt::drag&drop', 'drag', win, x, y)
end
|
.drop(win, x, y) ⇒ Object
253
254
255
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 253
def self.drop(win, x, y)
tk_call('::blt::drag&drop', 'drop', win, x, y)
end
|
.errors(cmd = Proc.new) ⇒ Object
257
258
259
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 257
def self.errors(cmd=Proc.new)
tk_call('::blt::drag&drop', 'errors', cmd)
end
|
.handle_target(win, type, val = None) ⇒ Object
242
243
244
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 242
def self.handle_target(win, type, val=None)
tk_call('::blt::drag&drop', 'target', win, 'handle', type, val)
end
|
.init_source(win) ⇒ Object
220
221
222
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 220
def self.init_source(win)
tk_call('::blt::drag&drop', 'source', win)
end
|
.location(x = None, y = None) ⇒ Object
265
266
267
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 265
def self.location(x=None, y=None)
list(tk_call('::blt::drag&drop', 'location', x, y))
end
|
224
225
226
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 224
def self.source()
list(tk_call('::blt::drag&drop', 'source'))
end
|
.source_configinfo(win, slot = nil) ⇒ Object
64
65
66
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 64
def source_configinfo(win, slot=nil)
itemconfiginfo(['source', win], slot)
end
|
61
62
63
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 61
def source_configure(win, slot, value=None)
itemconfigure(['source', win], slot, value)
end
|
.source_handler(win, datatype, cmd = Proc.new, *args) ⇒ Object
206
207
208
209
210
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 206
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
231
232
233
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 231
def self.source_handler_info(win, type)
tk_tcl2ruby(tk_call('::blt::drag&drop', 'source', win, 'handler', type))
end
|
.source_handler_list(win) ⇒ Object
228
229
230
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 228
def self.source_handler_list(win)
simplelist(tk_call('::blt::drag&drop', 'source', win, 'handler'))
end
|
235
236
237
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 235
def self.target
list(tk_call('::blt::drag&drop', 'target'))
end
|
.target_handler(win, datatype, cmd = Proc.new, *args) ⇒ Object
212
213
214
215
216
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 212
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
238
239
240
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 238
def self.target_handler_list(win)
simplelist(tk_call('::blt::drag&drop', 'target', win, 'handler'))
end
|
.token(win) ⇒ Object
246
247
248
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 246
def self.token(win)
window(tk_call('::blt::drag&drop', 'token', win))
end
|