Sha256: 188c530594892b0738ad62beb7837a3b4ba108fb084d5e25e7e6e537c436b003

Contents?: true

Size: 740 Bytes

Versions: 2

Compression:

Stored size: 740 Bytes

Contents

class Shoes
  module Swt
    class Arrow
      extend Forwardable
      include Common::Fill
      include Common::Stroke
      include Common::Clickable
      include Common::PainterUpdatesPosition
      include Common::Visibility
      include Common::Remove
      include Common::Translate
      include ::Shoes::BackendDimensionsDelegations

      def_delegators :dsl, :angle

      attr_reader :dsl, :app, :transform, :path, :painter

      def initialize(dsl, app)
        @dsl = dsl
        @app = app

        @painter = ArrowPainter.new(self)
        @app.add_paint_listener @painter
      end

      def update_position
        @painter.clear_path
      end

      def dispose
        @painter.dispose
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shoes-swt-4.0.0.pre8 lib/shoes/swt/arrow.rb
shoes-swt-4.0.0.pre7 lib/shoes/swt/arrow.rb