Class: Shoes::Swt::LinePainter

Inherits:
Common::Painter show all
Defined in:
shoes-swt/lib/shoes/swt/line_painter.rb

Constant Summary

Constants inherited from Common::Painter

Common::Painter::LINECAP

Constants included from Common::Resource

Common::Resource::OPAQUE

Instance Method Summary collapse

Methods inherited from Common::Painter

#after_painted, #before_painted, #draw_setup, #drawing_bottom, #drawing_top, #fill, #fill_and_draw, #initialize, #paint_control, #paint_object, #reset_rotate, #set_rotate

Methods included from Common::Resource

#clip_context_to, #dispose_previous_contexts, #reset_graphics_context, #set_defaults_on_context, #track_graphics_context

Constructor Details

This class inherits a constructor from Shoes::Swt::Common::Painter

Instance Method Details

#draw(gc) ⇒ Object



6
7
8
9
10
11
# File 'shoes-swt/lib/shoes/swt/line_painter.rb', line 6

def draw(gc)
  gc.draw_line(@obj.translate_left + @obj.element_left,
               @obj.translate_top + drawing_top,
               @obj.translate_left + @obj.element_right + 1,
               @obj.translate_top + drawing_bottom + 1)
end

#fill_setup(_gc) ⇒ Object

Don’t do fill setup



14
15
# File 'shoes-swt/lib/shoes/swt/line_painter.rb', line 14

def fill_setup(_gc)
end