In Files

  • tk/lib/tkextlib/blt.rb
  • tk/lib/tkextlib/blt/barchart.rb
  • tk/lib/tkextlib/blt/bitmap.rb
  • tk/lib/tkextlib/blt/busy.rb
  • tk/lib/tkextlib/blt/component.rb
  • tk/lib/tkextlib/blt/container.rb
  • tk/lib/tkextlib/blt/cutbuffer.rb
  • tk/lib/tkextlib/blt/dragdrop.rb
  • tk/lib/tkextlib/blt/eps.rb
  • tk/lib/tkextlib/blt/graph.rb
  • tk/lib/tkextlib/blt/htext.rb
  • tk/lib/tkextlib/blt/spline.rb
  • tk/lib/tkextlib/blt/stripchart.rb
  • tk/lib/tkextlib/blt/table.rb
  • tk/lib/tkextlib/blt/tabnotebook.rb
  • tk/lib/tkextlib/blt/tabset.rb
  • tk/lib/tkextlib/blt/ted.rb
  • tk/lib/tkextlib/blt/tile.rb
  • tk/lib/tkextlib/blt/tile/button.rb
  • tk/lib/tkextlib/blt/tile/checkbutton.rb
  • tk/lib/tkextlib/blt/tile/frame.rb
  • tk/lib/tkextlib/blt/tile/label.rb
  • tk/lib/tkextlib/blt/tile/radiobutton.rb
  • tk/lib/tkextlib/blt/tile/scrollbar.rb
  • tk/lib/tkextlib/blt/tile/toplevel.rb
  • tk/lib/tkextlib/blt/tree.rb
  • tk/lib/tkextlib/blt/treeview.rb
  • tk/lib/tkextlib/blt/unix_dnd.rb
  • tk/lib/tkextlib/blt/vector.rb
  • tk/lib/tkextlib/blt/watch.rb
  • tk/lib/tkextlib/blt/win_printer.rb
  • tk/lib/tkextlib/blt/winop.rb

Class/Module Index [+]

Quicksearch

Tk::BLT

Public Class Methods

active_legend(graph) click to toggle source
 
               # File tk/lib/tkextlib/blt.rb, line 115
def self.active_legend(graph)
  tk_call_without_enc('Blt_ActiveLegend', graph)
end
            
beep(percent = 50) click to toggle source
 
               # File tk/lib/tkextlib/blt.rb, line 60
def self.beep(percent = 50)
  tk_call('::blt::beep', percent)
end
            
bgexec(*args) click to toggle source
 
               # File tk/lib/tkextlib/blt.rb, line 64
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) click to toggle source
 
               # File tk/lib/tkextlib/blt.rb, line 98
def self.bltdebug(lvl = nil)
  if lvl
    tk_call('::blt::bltdebug', lvl)
  else
    number(tk_call('::blt::bltdebug'))
  end
end
            
closest_point(graph) click to toggle source
 
               # File tk/lib/tkextlib/blt.rb, line 127
def self.closest_point(graph)
  tk_call_without_enc('Blt_ClosestPoint', graph)
end
            
crc32_data(dat) click to toggle source
 
               # File tk/lib/tkextlib/blt.rb, line 109
def self.crc32_data(dat)
  tk_call_without_enc('::blt::crc32', '-data', dat)
end
            
crc32_file(name) click to toggle source
 
               # File tk/lib/tkextlib/blt.rb, line 106
def self.crc32_file(name)
  tk_call_without_enc('::blt::crc32', name)
end
            
crosshairs(graph) click to toggle source
 
               # File tk/lib/tkextlib/blt.rb, line 118
def self.crosshairs(graph)
  tk_call_without_enc('Blt_Crosshairs', graph)
end
            
detach_bgexec(*args) click to toggle source
 
               # File tk/lib/tkextlib/blt.rb, line 81
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() click to toggle source
 
               # File tk/lib/tkextlib/blt.rb, line 46
def self.package_name
  PACKAGE_NAME
end
            
package_version() click to toggle source
 
               # File tk/lib/tkextlib/blt.rb, line 50
def self.package_version
  begin
    TkPackage.require('BLT')
  rescue
    ''
  end
end
            
zoom_stack(graph) click to toggle source
 
               # File tk/lib/tkextlib/blt.rb, line 121
def self.zoom_stack(graph)
  tk_call_without_enc('Blt_ZoomStack', graph)
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.