Sha256: 9e2c298cdbc866e8209e529c2bfa396632f8701aa3918b86a51180cfb61c639e

Contents?: true

Size: 648 Bytes

Versions: 1

Compression:

Stored size: 648 Bytes

Contents

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

    style_with :angle, :art_styles, :curve, :common_styles, :dimensions
    STYLES = { angle: 0, curve: 0, fill: Shoes::COLORS[:black] }

    def create_dimensions(left, top, width, height)
      left   ||= @style[:left] || 0
      top    ||= @style[:top] || 0
      width  ||= @style[:width] || 0
      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/rect.rb