[Fwd: Need help drawing lines]



Oops.  Meant to send this to the whole list.
--- Begin Message ---
I've got the following lines in my code, and it does, in fact, draw a
dotted line.  The 3rd and 4th arguments to gdk_gc_set_dashes() mean "one
pixel on, one pixel off, and the length of the pattern is 2".

gdk_gc_set_line_attributes (widget->style->black_gc, 1, 
                            GDK_LINE_ON_OFF_DASH, 0, 0);
gdk_gc_set_dashes (widget->style->black_gc, 0, "\1\1", 2);

--- End Message ---


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