Another documentation issue
- Date: Mon, 26 Oct 2015 21:54:41 -0400
- From: Igor Korot <ikorot01@xxxxxxxxx>
- Subject: Another documentation issue
Looking at https://developer.gnome.org/gdk2/stable/gdk2-Drawing-Primitives.html#gdk-draw-line
I see following:
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 pixel wide
pixel-aligned line, you would use:
cairo_set_line_cap (cr, CAIRO_LINE_CAP_SQUARE);
cairo_move_to (cr, 0.5, 0.5);
cairo_line_to (cr, 9.5, 0.5);
See also <ulink url="http://cairographics.org/FAQ/#sharp_lines">the Cairo
FAQ</ulink> on this topic.
The text after "See also " is a plain text and not a link to the
It also would be nice if the documentation say whether screen, window or client
coordinates are used for drawing.
gtk-list mailing list