Demo::CairoWindow
# File gtk2/sample/gtk-demo/cairo-path.rb, line 15 def initialize super('cairo path') end
# File gtk2/sample/gtk-demo/cairo-path.rb, line 19 def draw(cr) cr.move_to(0.5, 0.1) cr.line_to(0.9, 0.9) cr.rel_line_to(-0.4, 0.0) cr.curve_to(0.2, 0.9, 0.2, 0.5, 0.5, 0.5) cr.stroke end
[Validate]
Generated with the Darkfish Rdoc Generator 2.