In Files

  • tk/lib/tkextlib/blt/barchart.rb

Class/Module Index [+]

Quicksearch

Tk::BLT::Barchart

Public Instance Methods

extents(item) click to toggle source

BarElement_ID = [‘blt_barchart_bar’.freeze, ‘00000’.taint].freeze

def bar(elem=nil, keys={})

if elem.kind_of?(Hash)
  keys = elem
  elem = nil
end
unless elem
  elem = BarElement_ID.join(TkCore::INTERP._ip_id_).freeze
  BarElement_ID[1].succ!
end
tk_send('bar', elem, keys)
Element.new(self, elem, :without_creating=>true)

end

 
               # File tk/lib/tkextlib/blt/barchart.rb, line 52
def extents(item)
  num_or_str(tk_send_without_enc('extents', item))
end
            
inside(x, y) click to toggle source
 
               # File tk/lib/tkextlib/blt/barchart.rb, line 60
def inside(x, y)
  bool(tk_send_without_enc('inside', x, y))
end
            
invtransform(x, y) click to toggle source
 
               # File tk/lib/tkextlib/blt/barchart.rb, line 56
def invtransform(x, y)
  list(tk_send_without_enc('invtransform', x, y))
end
            
metafile(file=None) click to toggle source
 
               # File tk/lib/tkextlib/blt/barchart.rb, line 64
def metafile(file=None)
  # Windows only
  tk_send('metafile', file)
  self
end
            
snap(output, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/blt/barchart.rb, line 70
def snap(output, keys={})
  tk_send_without_enc('snap', *(hash_kv(keys, false) + output))
  self
end
            
transform(x, y) click to toggle source
 
               # File tk/lib/tkextlib/blt/barchart.rb, line 75
def transform(x, y)
  list(tk_send_without_enc('transform', x, y))
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.

blog comments powered by Disqus