Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
GTK2
GTK2.GdkDrawable

Method GTK2.GdkDrawable()->draw_line()


Method draw_line

GDK2.Drawable draw_line(GTK2.GdkGC gc, int x1, int y1, int x2, int y2)

Description

img_begin w = GTK2.DrawingArea()->set_size_request(100,100); delay: g = GDK2.GC(w)->set_foreground( GDK2.Color(255,0,0) ); delay: for(int x = 0; x<10; x++) w->draw_line(g,x*10,0,100-x*10,99); img_end