Sha256: 28431f26ebd280338365cbe03fe5842e89b86540804e79b6a97d749a61d3d761

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

class Shoes
  module Swt
    class LinePainter < Common::Painter
      def draw(gc)
        gc.draw_line(@obj.translate_left + @obj.element_left,
                     @obj.translate_top + @obj.element_top,
                     @obj.translate_left + @obj.element_right + 1,
                     @obj.translate_top + @obj.element_bottom + 1)
      end

      # Don't do fill setup
      def fill_setup(_gc)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shoes-swt-4.0.0.pre8 lib/shoes/swt/line_painter.rb
shoes-swt-4.0.0.pre7 lib/shoes/swt/line_painter.rb