Another documentation issue



Hi, ALL,
Looking at https://developer.gnome.org/gdk2/stable/gdk2-Drawing-Primitives.html#gdk-draw-line

I see following:

[quote]
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);
cairo_stroke (cr);]|
See also <ulink url="http://cairographics.org/FAQ/#sharp_lines";>the Cairo
FAQ</ulink> on this topic.
[/quote]

The text after "See also " is a plain text and not a link to the
appropriate URL.

It also would be nice if the documentation say whether screen, window or client
coordinates are used for drawing.

Thank you.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]