pike.hubbe.net

[Top]
GDK
GDK.Drawable
previousGDK.Drawable()->draw_image() GDK.Drawable()->draw_pixmap()next

Method GDK.Drawable()->draw_line()


Method draw_line

object(GDK.Drawable) GDK.Drawable()->draw_line(object(GDK.GC) gc, int x1, int y1, int x2, int y2)

Description

img_begin w = GTK.DrawingArea()->set_usize(100,100); delay: g = GDK.GC(w)->set_foreground( GDK.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


Extracted from Pike v7.3 release 11 at 2001-11-03.