Sha256: 98d4495b5deb12421dbdde05f96eb2829dbc208439dc0326036484e464b7ccde

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

class Shoes
  module Swt
    class Star
      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, :outer, :inner, :points

      attr_reader :dsl, :app, :transform, :container

      def initialize(dsl, app)
        @dsl = dsl
        @app = app
        @container = @app.real

        @painter = StarPainter.new(self)
        @app.add_paint_listener @painter
      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/star.rb
shoes-swt-4.0.0.pre7 lib/shoes/swt/star.rb