Module: Tk::BLT::DnD

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

Constant Summary collapse

TkCommandNames =
['::blt::dnd'.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

Methods included from TkItemConfigMethod

__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

Methods included from TkItemConfigOptkeys

#__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

Methods included from TkTreatItemFont

#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

.cancel(win) ⇒ Object


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

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

.cget(win, option) ⇒ Object


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

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

.cget_strict(win, option) ⇒ Object


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

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

.cget_tkstring(win, option) ⇒ Object


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

def cget_tkstring(win, option)
  itemcget_tkstring(['cget', win], option)
end

.configinfo(win, slot = nil) ⇒ Object


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

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

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


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

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

.current_configinfo(win, slot = nil) ⇒ Object


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

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

.current_token_configinfo(win, slot = nil) ⇒ Object


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

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

.current_token_windowconfiginfo(win, slot = nil) ⇒ Object


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

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

.delete(*wins) ⇒ Object


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

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

.delete_source(*wins) ⇒ Object


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

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

.delete_target(*wins) ⇒ Object


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

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

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


99
100
101
# File 'lib/tkextlib/blt/unix_dnd.rb', line 99

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


102
103
104
# File 'lib/tkextlib/blt/unix_dnd.rb', line 102

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


105
106
107
108
109
110
111
# File 'lib/tkextlib/blt/unix_dnd.rb', line 105

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


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

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

.pull(win, fmt) ⇒ Object


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

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

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


124
125
126
# File 'lib/tkextlib/blt/unix_dnd.rb', line 124

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

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


127
128
129
# File 'lib/tkextlib/blt/unix_dnd.rb', line 127

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


130
131
132
133
134
135
136
# File 'lib/tkextlib/blt/unix_dnd.rb', line 130

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


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

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

.target_names(pat = None) ⇒ Object


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

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

.token(*args) ⇒ Object


137
138
139
# File 'lib/tkextlib/blt/unix_dnd.rb', line 137

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

.token_cget(win, option) ⇒ Object


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

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

.token_cget_strict(win, option) ⇒ Object


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

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

.token_cget_tkstring(win, option) ⇒ Object


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

def token_cget_tkstring(win, option)
  itemcget_tkstring(['token', 'cget', win], option)
end

.token_configinfo(win, slot = nil) ⇒ Object


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

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

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


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

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

.token_windowconfiginfo(win, slot = nil) ⇒ Object


77
78
79
# File 'lib/tkextlib/blt/unix_dnd.rb', line 77

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

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


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

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