GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Apr 17, 2014 10:16 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Problem in setting line attributes with Gdk-DirectFB
PostPosted: Wed Feb 06, 2008 4:26 am 
Offline

Joined: Tue Feb 05, 2008 1:51 pm
Posts: 3
Hi,
I want to draw poly lines using Gtk+ over DirectFB backend.
The code i am using, is given below.

GdkGCValues values;

values.line_width = 15;
values.line_style = GDK_LINE_ON_OFF_DASH;
values.cap_style = GDK_CAP_ROUND;
values.join_style = GDK_JOIN_BEVEL;

gdk_gc_set_values (GdkGraphDescPool[gdkGraphDesc].gc, &values,
GDK_GC_LINE_WIDTH | GDK_GC_LINE_STYLE | GDK_GC_CAP_STYLE | GDK_GC_JOIN_STYLE);
/*for (i = 0; i < nPoints-1; i++) {
gdk_draw_line (GdkImageDescPool[GdkGraphDescPool[gdkGraphDesc].gid].pixmap, GdkGraphDescPool[gdkGraphDesc].gc, points[i].x, points[i].y, points[i+1].x, points[i+1].y);
}*/

gdk_draw_lines(GdkImageDescPool[GdkGraphDescPool[gdkGraphDesc].gid].pixmap,GdkGraphDescPool[gdkGraphDesc].gc,points, (gint)nPoints);


I am facing problem regarding line attributes.
The line attributes (e.g. line width, line style, cap style, join style) that i am setting has no effect on output.
For example, line width in the output, is same irrespective of "line_width" value in the code.

Please help me to solve this problem.
Thanks in advance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group