Sha256: cca67552c84a3bae1137730fbdabd0e72e741a86353a06bd7408734c2c8d85e2

Contents?: true

Size: 448 Bytes

Versions: 24

Compression:

Stored size: 448 Bytes

Contents

class RectView < GestureView
  def drawRect(rect)
    super(rect)

    context = UIGraphicsGetCurrentContext()
    CGContextSetAllowsAntialiasing(context, true);
    CGContextSetShouldAntialias(context, true);
    CGContextSetFillColorWithColor(context, UIColor.redColor.CGColor)
    CGContextSetLineWidth(context, 10.0)
    CGContextAddRect(context, [[0,0], [self.frame.size.width,self.frame.size.height]])
    CGContextFillPath(context)
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
bubble-wrap-1.9.7 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.9.6 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.9.5 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.9.4 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.9.3 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.9.2 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.9.1 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.9.0 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.8.0 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.7.1 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.7.0 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.6.0 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.6.0.rc1 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.5.0 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.5.0.rc1 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.4.0 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.3.0 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.3.0.osx samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.2.0 samples/gesture/app/views/drawing/rect_view.rb
bubble-wrap-1.2.0.pre samples/gesture/app/views/drawing/rect_view.rb