Drawable.drawLine

Warning gdk_draw_line has been deprecated since version 2.22 and should not be used in newly-written code. Use cairo_line_to() and cairo_stroke() instead. Be aware that the default line width in Cairo is 2 pixels and that your coordinates need to describe the center of the line. To draw a single

class Drawable
void
drawLine
(,
int x1_
,
int y1_
,
int x2_
,
int y2_
)

Parameters

gc GC

a GdkGC.

x1_ int

the x coordinate of the start point.

y1_ int

the y coordinate of the start point.

x2_ int

the x coordinate of the end point.

y2_ int

the y coordinate of the end point.

Meta