Methods
Included Modules
Class Public methods
new(pie, *args)
Link
# File ext/tk/lib/tkextlib/tcllib/tkpiechart.rb, line 169 def initialize(pie, *args) unless pie.kind_of?(Pie) && pie != :no_create fail ArgumentError, "expects TkPiechart::Pie for 1st argument" end if pie == :no_create @pie, @tag_key = args else text = args[0] || None @pie = pie @tag_key = tk_call_without_enc('pie::newSlice', @pie.tag_key, text) end @parent = @c = @pie.canvas @path = @parent.path @pie._entry_slice(self) @id = "slices(#{@tag_key})" @tag = TkcNamedTag.new(@pie.canvas, @id) CItemID_TBL.mutex.synchronize{ CItemID_TBL[@path] = {} unless CItemID_TBL[@path] CItemID_TBL[@path][@id] = self } end
Instance Public methods
delete()
Link
label(text)
Link
pie()
Link
size(share, disp=None)
Link
tag()
Link