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 |
# File tk/lib/tkextlib/blt.rb, line 112 def self.active_legend(graph) tk_call_without_enc('Blt_ActiveLegend', graph) end
# File tk/lib/tkextlib/blt.rb, line 57 def self.beep(percent = 50) tk_call('::blt::beep', percent) end
# File tk/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 << '--' params.concat(args) tk_call('::blt::bgexec', *params) var end
# File tk/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
# File tk/lib/tkextlib/blt.rb, line 124 def self.closest_point(graph) tk_call_without_enc('Blt_ClosestPoint', graph) end
# File tk/lib/tkextlib/blt.rb, line 106 def self.crc32_data(dat) tk_call_without_enc('::blt::crc32', '-data', dat) end
# File tk/lib/tkextlib/blt.rb, line 103 def self.crc32_file(name) tk_call_without_enc('::blt::crc32', name) end
# File tk/lib/tkextlib/blt.rb, line 115 def self.crosshairs(graph) tk_call_without_enc('Blt_Crosshairs', graph) end
# File tk/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 << '--' params.concat(args) params << '&' [var, tk_split_list(tk_call('::blt::bgexec', *params))] end
# File tk/lib/tkextlib/blt.rb, line 47 def self.package_version begin TkPackage.require('BLT') rescue '' end end
# File tk/lib/tkextlib/blt.rb, line 121 def self.print_key(graph) tk_call_without_enc('Blt_PrintKey', graph) end
# File tk/lib/tkextlib/blt.rb, line 118 def self.zoom_stack(graph) tk_call_without_enc('Blt_ZoomStack', graph) end
# File tk/lib/tkextlib/blt/container.rb, line 21 def find_command(pat) list(tk_send_without_enc(tk_call(self.path, 'find', '-command', pat))) end