Sha256: 750b8643f9fca430fa32434f0de96518ea94b257d25cfc8d8d07edd0c3b29e12

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

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

    attr_reader :app, :parent, :dimensions, :gui
    style_with :angle, :art_styles, :curve, :common_styles, :dimensions
    STYLES = {angle: 0}

    def initialize(app, parent, left, top, width, height, styles = {}, blk = nil)
      @app = app
      @parent = parent
      style_init styles
      @dimensions = AbsoluteDimensions.new left, top, width, height, @style
      @parent.add_child self
      @gui = Shoes.backend_for self
      register_click blk
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-dsl-4.0.0.pre2 lib/shoes/rect.rb