lib/shoes/swt/shape.rb in shoes-swt-4.0.0.pre12 vs lib/shoes/swt/shape.rb in shoes-swt-4.0.0.rc1

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true + class Shoes module Swt class Shape include Common::Clickable include Common::Visibility @@ -18,20 +19,21 @@ def initialize(dsl, app) @dsl = dsl @app = app @element = ::Swt::Path.new(::Swt.display) @painter = ShapePainter.new(self) + @transform = nil @app.add_paint_listener @painter + @scroll_top_applied = nil end def dispose @transform.dispose unless @transform.nil? || @transform.disposed? @element.dispose unless @element.nil? || @element.disposed? end - attr_reader :dsl, :app - attr_reader :element, :transform - attr_reader :painter + attr_reader :dsl, :app, :element, :painter + attr_accessor :scroll_top_applied def redraw_target @dsl end