[Fwd: Need help drawing lines]
- From: Davina Armstrong <davina lickey com>
- To: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: [Fwd: Need help drawing lines]
- Date: Fri, 02 Mar 2001 10:52:54 -0800
Oops. Meant to send this to the whole list.
--- Begin Message ---
- From: Davina Armstrong <davina lickey com>
- To: learfox furry ao net
- Subject: Re: Need help drawing lines
- Date: Fri, 02 Mar 2001 10:52:15 -0800
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]