Module: Tk::BLT
- Extended by:
- TkCore
- Defined in:
- ext/lib/tkextlib/blt.rb,
ext/lib/tkextlib/blt/eps.rb,
ext/lib/tkextlib/blt/ted.rb,
ext/lib/tkextlib/blt/busy.rb,
ext/lib/tkextlib/blt/tile.rb,
ext/lib/tkextlib/blt/tree.rb,
ext/lib/tkextlib/blt/graph.rb,
ext/lib/tkextlib/blt/htext.rb,
ext/lib/tkextlib/blt/table.rb,
ext/lib/tkextlib/blt/watch.rb,
ext/lib/tkextlib/blt/winop.rb,
ext/lib/tkextlib/blt/bitmap.rb,
ext/lib/tkextlib/blt/spline.rb,
ext/lib/tkextlib/blt/tabset.rb,
ext/lib/tkextlib/blt/vector.rb,
ext/lib/tkextlib/blt/barchart.rb,
ext/lib/tkextlib/blt/dragdrop.rb,
ext/lib/tkextlib/blt/treeview.rb,
ext/lib/tkextlib/blt/unix_dnd.rb,
ext/lib/tkextlib/blt/component.rb,
ext/lib/tkextlib/blt/container.rb,
ext/lib/tkextlib/blt/cutbuffer.rb,
ext/lib/tkextlib/blt/stripchart.rb,
ext/lib/tkextlib/blt/tile/frame.rb,
ext/lib/tkextlib/blt/tile/label.rb,
ext/lib/tkextlib/blt/tabnotebook.rb,
ext/lib/tkextlib/blt/tile/button.rb,
ext/lib/tkextlib/blt/win_printer.rb,
ext/lib/tkextlib/blt/tile/toplevel.rb,
ext/lib/tkextlib/blt/tile/scrollbar.rb,
ext/lib/tkextlib/blt/tile/checkbutton.rb,
ext/lib/tkextlib/blt/tile/radiobutton.rb
Defined Under Namespace
Modules: Busy, CutBuffer, DnD, DragDrop, GraphCommand, PlotComponent, Spline, Table, Ted, Tile, Winop
Classes: Barchart, Bitmap, Container, EPS, Graph, Hiertable, Htext, Printer, Stripchart, Tabnotebook, Tabset, Tree, Treeview, Vector, VectorAccess, Watch
Constant Summary
collapse
- VERSION =
tk_call('set', 'blt_version')
- PATCH_LEVEL =
tk_call('set', 'blt_patchLevel')
- LIBRARY =
TkVarAccess.new('blt_library', lib)
- LIB_PATH =
TkVarAccess.new('blt_libPath', lib)
- PACKAGE_NAME =
'BLT'.freeze
- WinOp =
Winop
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
Class Method Details
.active_legend(graph) ⇒ Object
112
113
114
|
# File 'ext/lib/tkextlib/blt.rb', line 112
def self.active_legend(graph)
tk_call_without_enc('Blt_ActiveLegend', graph)
end
|
.beep(percent = 50) ⇒ Object
57
58
59
|
# File 'ext/lib/tkextlib/blt.rb', line 57
def self.beep(percent = 50)
tk_call('::blt::beep', percent)
end
|
.bgexec(*args) ⇒ Object
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# File 'ext/lib/tkextlib/blt.rb', line 61
def self.bgexec(*args)
if args[0].kind_of?(TkVariable)
var = args.shift
else
var = TkVariable.new
end
params = [var]
params.concat(hash_kv(args.shift, true)) if args[0].kind_of?(Hash)
params << '--' if args[0] =~ /^\s*-[^-]/
params.concat(args)
tk_call('::blt::bgexec', *params)
var
end
|
.bltdebug(lvl = nil) ⇒ Object
95
96
97
98
99
100
101
|
# File 'ext/lib/tkextlib/blt.rb', line 95
def self.bltdebug(lvl = nil)
if lvl
tk_call('::blt::bltdebug', lvl)
else
number(tk_call('::blt::bltdebug'))
end
end
|
.closest_point(graph) ⇒ Object
124
125
126
|
# File 'ext/lib/tkextlib/blt.rb', line 124
def self.closest_point(graph)
tk_call_without_enc('Blt_ClosestPoint', graph)
end
|
.crc32_data(dat) ⇒ Object
106
107
108
|
# File 'ext/lib/tkextlib/blt.rb', line 106
def self.crc32_data(dat)
tk_call_without_enc('::blt::crc32', '-data', dat)
end
|
.crc32_file(name) ⇒ Object
103
104
105
|
# File 'ext/lib/tkextlib/blt.rb', line 103
def self.crc32_file(name)
tk_call_without_enc('::blt::crc32', name)
end
|
.crosshairs(graph) ⇒ Object
115
116
117
|
# File 'ext/lib/tkextlib/blt.rb', line 115
def self.crosshairs(graph)
tk_call_without_enc('Blt_Crosshairs', graph)
end
|
.detach_bgexec(*args) ⇒ Object
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# File 'ext/lib/tkextlib/blt.rb', line 78
def self.detach_bgexec(*args)
if args[0].kind_of?(TkVariable)
var = args.shift
else
var = TkVariable.new
end
params = [var]
params.concat(hash_kv(args.shift, true)) if args[0].kind_of?(Hash)
params << '--' if args[0] =~ /^\s*-[^-]/
params.concat(args)
params << '&'
[var, tk_split_list(tk_call('::blt::bgexec', *params))]
end
|
.package_name ⇒ Object
43
44
45
|
# File 'ext/lib/tkextlib/blt.rb', line 43
def self.package_name
PACKAGE_NAME
end
|
.package_version ⇒ Object
47
48
49
50
51
52
53
|
# File 'ext/lib/tkextlib/blt.rb', line 47
def self.package_version
begin
TkPackage.require('BLT')
rescue
''
end
end
|
.print_key(graph) ⇒ Object
121
122
123
|
# File 'ext/lib/tkextlib/blt.rb', line 121
def self.print_key(graph)
tk_call_without_enc('Blt_PrintKey', graph)
end
|
.zoom_stack(graph) ⇒ Object
118
119
120
|
# File 'ext/lib/tkextlib/blt.rb', line 118
def self.zoom_stack(graph)
tk_call_without_enc('Blt_ZoomStack', graph)
end
|