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::WIDGET_DESTROY_HOOK
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
current_itemconfiginfo, itemcget, 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_str, #num_or_str, number, #number, string, #string, uninstall_cmd
#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, #bind, #bind_all, #bind_append, #bind_append_all, #bind_remove, #bind_remove_all, #bindinfo, #bindinfo_all, #image_obj, #install_cmd, #subst, #uninstall_cmd
Methods included from TkEvent
#install_bind, #install_bind_for_event_class
Class Method Details
.__validation_class_list ⇒ Object
122
123
124
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 122
def self.__validation_class_list
super() << PackageCommand << SiteCommand
end
|
206
207
208
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 206
def self.active
bool(tk_call('::blt::drag&drop', 'active'))
end
|
.current_source_configinfo(win, slot = nil) ⇒ Object
66
67
68
|
# File '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
195
196
197
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 195
def self.drag(win, x, y)
tk_call('::blt::drag&drop', 'drag', win, x, y)
end
|
.drop(win, x, y) ⇒ Object
198
199
200
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 198
def self.drop(win, x, y)
tk_call('::blt::drag&drop', 'drop', win, x, y)
end
|
.errors(cmd = Proc.new) ⇒ Object
202
203
204
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 202
def self.errors(cmd=Proc.new)
tk_call('::blt::drag&drop', 'errors', cmd)
end
|
.handle_target(win, type, val = None) ⇒ Object
187
188
189
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 187
def self.handle_target(win, type, val=None)
tk_call('::blt::drag&drop', 'target', win, 'handle', type, val)
end
|
.init_source(win) ⇒ Object
165
166
167
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 165
def self.init_source(win)
tk_call('::blt::drag&drop', 'source', win)
end
|
.location(x = None, y = None) ⇒ Object
210
211
212
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 210
def self.location(x=None, y=None)
list(tk_call('::blt::drag&drop', 'location', x, y))
end
|
169
170
171
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 169
def self.source()
list(tk_call('::blt::drag&drop', 'source'))
end
|
.source_configinfo(win, slot = nil) ⇒ Object
63
64
65
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 63
def source_configinfo(win, slot=nil)
itemconfiginfo(['source', win], slot)
end
|
60
61
62
|
# File '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
151
152
153
154
155
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 151
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
176
177
178
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 176
def self.source_handler_info(win, type)
tk_tcl2ruby(tk_call('::blt::drag&drop', 'source', win, 'handler', type))
end
|
.source_handler_list(win) ⇒ Object
173
174
175
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 173
def self.source_handler_list(win)
simplelist(tk_call('::blt::drag&drop', 'source', win, 'handler'))
end
|
180
181
182
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 180
def self.target
list(tk_call('::blt::drag&drop', 'target'))
end
|
.target_handler(win, datatype, cmd = Proc.new, *args) ⇒ Object
157
158
159
160
161
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 157
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
183
184
185
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 183
def self.target_handler_list(win)
simplelist(tk_call('::blt::drag&drop', 'target', win, 'handler'))
end
|
.token(win) ⇒ Object
191
192
193
|
# File 'lib/tkextlib/blt/dragdrop.rb', line 191
def self.token(win)
window(tk_call('::blt::drag&drop', 'token', win))
end
|