Sha256: 7d71fcb418b47541e5508dd01510b5f620e5d4f39e8fc5769911f66cb893fbd6

Contents?: true

Size: 663 Bytes

Versions: 1

Compression:

Stored size: 663 Bytes

Contents

class Shoes
  module Swt
    class Line
      include Common::Clickable
      include Common::Stroke
      include Common::Fill
      include Common::Visibility
      include Common::Remove
      include Common::Translate
      include Common::PainterUpdatesPosition
      include ::Shoes::BackendDimensionsDelegations

      attr_reader :dsl, :app
      attr_reader :transform

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

        @painter = LinePainter.new(self)
        @app.add_paint_listener(@painter)

        @transform = nil # Not necessary for this shape
      end

      def angle
        @dsl.angle
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-swt-4.0.0.pre8 lib/shoes/swt/line.rb