lib/ctioga2/graphics/elements/region.rb in ctioga2-0.10.1 vs lib/ctioga2/graphics/elements/region.rb in ctioga2-0.11

- old
+ new

@@ -27,20 +27,25 @@ class Region < RedirectingContainer undef :elements undef :subframe + define_style 'region' + # The curves which delimit the region attr_accessor :curves # The fill style attr_accessor :fill_style # The fill style for reversed polarity attr_accessor :reversed_fill_style # Creates a new empty region - def initialize(parent = nil, root = nil) + def initialize(parent, root, opts) + setup_style(parent, opts) + # A reason why we don't use the superclass constructor ? + @parent = parent @clipped = true # clipped by default ! # elements to be given to tioga @curves = []