In Files

  • tk/lib/tkextlib/vu/pie.rb

Class/Module Index [+]

Quicksearch

Tk::Vu::Pie

Public Instance Methods

__destroy_hook__() click to toggle source
 
               # File tk/lib/tkextlib/vu/pie.rb, line 43
def __destroy_hook__
  Tk::Vu::PieSlice::SliceID_TBL.delete(@path)
end
            
create(slice, *args) click to toggle source
Alias for: set
delete(*glob_pats) click to toggle source
 
               # File tk/lib/tkextlib/vu/pie.rb, line 62
def delete(*glob_pats)
  tk_call(@path, 'delete', *glob_pats)
  self
end
            
explode(slice, *args) click to toggle source
 
               # File tk/lib/tkextlib/vu/pie.rb, line 67
def explode(slice, *args)
  tk_call(@path, 'explode', slice, *args)
  self
end
            
explode_value(slice) click to toggle source
 
               # File tk/lib/tkextlib/vu/pie.rb, line 72
def explode_value(slice)
  num_or_str(tk_call(@path, 'explode', slice))
end
            
lower(slice, below=None) click to toggle source
 
               # File tk/lib/tkextlib/vu/pie.rb, line 76
def lower(slice, below=None)
  tk_call(@path, 'lower', slice, below)
  self
end
            
names(*glob_pats) click to toggle source
 
               # File tk/lib/tkextlib/vu/pie.rb, line 81
def names(*glob_pats)
  simplelist(tk_call(@path, 'names', *glob_pats))
end
            
Also aliased as: slices
order(*args) click to toggle source
 
               # File tk/lib/tkextlib/vu/pie.rb, line 86
def order(*args)
  tk_call(@path, 'order', *args)
  self
end
            
raise(slice, above=None) click to toggle source
 
               # File tk/lib/tkextlib/vu/pie.rb, line 91
def raise(slice, above=None)
  tk_call(@path, 'raise', slice, above)
  self
end
            
set(slice, *args) click to toggle source
 
               # File tk/lib/tkextlib/vu/pie.rb, line 101
def set(slice, *args)
  num_or_str(tk_call(@path, 'set', slice, *args))
end
            
Also aliased as: set_value, set_values, create
set_value(slice, *args) click to toggle source
Alias for: set
set_values(slice, *args) click to toggle source
Alias for: set
slice_value(slice) click to toggle source
 
               # File tk/lib/tkextlib/vu/pie.rb, line 108
def slice_value(slice)
  num_or_str(tk_call(@path, 'set', slice))
end
            
slices(*glob_pats) click to toggle source
Alias for: names
sum_value(val = None) click to toggle source
Alias for: value
swap(slice1, slice2) click to toggle source
 
               # File tk/lib/tkextlib/vu/pie.rb, line 96
def swap(slice1, slice2)
  tk_call(@path, 'swap', slice1, slice2)
  self
end
            
tagid(tag) click to toggle source
 
               # File tk/lib/tkextlib/vu/pie.rb, line 51
def tagid(tag)
  if tag.kind_of?(Tk::Vu::PieSlice)
    tag.id
  else
    # tag
    _get_eval_string(tag)
  end
end
            
value(val = None) click to toggle source
 
               # File tk/lib/tkextlib/vu/pie.rb, line 112
def value(val = None)
  num_or_str(tk_call_without_enc(@path, 'value'))
end
            
Also aliased as: sum_value

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.