Sha256: 862f823991a7ae065e864740e4d708f97e63655a4d75cee4d0d57afd910e8482

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 Bytes

Contents

class Shoes
  class Oval
    include Common::UIElement
    include Common::Fill
    include Common::Stroke
    include Common::Style
    include Common::Clickable

    style_with :art_styles, :center, :common_styles, :dimensions, :radius
    STYLES = { fill: Shoes::COLORS[:black] }

    def create_dimensions(left, top, width, height)
      left   ||= @style[:left]
      top    ||= @style[:top]
      width  ||= @style[:diameter] || @style[:width] || (@style[:radius] || 0) * 2
      height ||= @style[:height] || width

      @dimensions = AbsoluteDimensions.new left, top, width, height, @style
    end

    def needs_rotate?
      rotate != 0
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-core-4.0.0.pre4 lib/shoes/oval.rb