lib/glimmer/swt/custom/shape/text.rb in glimmer-dsl-swt-4.18.5.3 vs lib/glimmer/swt/custom/shape/text.rb in glimmer-dsl-swt-4.18.5.4

- old
+ new

@@ -31,12 +31,10 @@ module Custom # Represents a shape (graphics) to be drawn on a control/widget/canvas/display # That is because Shape is drawn on a parent as graphics and doesn't have an SWT widget for itself class Shape class Text < Shape - attr_accessor :extent - def parameter_names @parameter_names || text_parameter_names end def possible_parameter_names @@ -67,14 +65,14 @@ end super end def width - extent&.x + @extent&.x end def height - extent&.y + @extent&.y end end String = Text