Sha256: e8573b42b953511648bacfac80c54bc922af0ae96575d29725699d27ef1e339f
Contents?: true
Size: 725 Bytes
Versions: 1
Compression:
Stored size: 725 Bytes
Contents
class Shoes class Rect include Common::UIElement include Common::Fill include Common::Stroke include Common::Clickable include Common::Hover include Common::Style include Common::Translate style_with :angle, :art_styles, :curve, :common_styles, :dimensions STYLES = { angle: 0, curve: 0, fill: Shoes::COLORS[:black] }.freeze 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 && rotate.nonzero? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-core-4.0.0.pre7 | lib/shoes/rect.rb |