LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 12-10-2006, 03:51 AM   #1
killer_instinct
LQ Newbie
 
Registered: Dec 2006
Posts: 26

Rep: Reputation: 15
how to draw a curve using gtk


hi
i use glade as GUI for gtk
my problem is that i must make a program with a graphical interface that draw a curve
in fact
this file contains something like that

1,3 5,6 9,9 4,8 7,8 ...
so i must draw a curve using those cords
i find in the glade an icon called curve but i don't know how to program it
 
Old 12-10-2006, 10:24 AM   #2
killer_instinct
LQ Newbie
 
Registered: Dec 2006
Posts: 26

Original Poster
Rep: Reputation: 15
any help please
 
Old 12-10-2006, 10:42 AM   #3
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian wheezy/sid, PC-BSD
Posts: 3,000
Blog Entries: 4

Rep: Reputation: 88
GtkCurve is the object you want:

http://www.gtk.org/api/2.6/gtk/GtkCurve.html
 
Old 12-10-2006, 11:02 AM   #4
killer_instinct
LQ Newbie
 
Registered: Dec 2006
Posts: 26

Original Poster
Rep: Reputation: 15
but my problem is that i want a real example
suppose i want to draw a curve using those cords
(3,5) (4,8) (1,2)
so what i must tape exactly
note i use GLADE
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to plot a curve in linux? spinal2 Programming 15 10-23-2006 03:27 AM
gtk and C, draw a grid and place images leosgb Programming 1 04-12-2006 06:35 PM
Enjoying riding the learning curve steelcap LinuxQuestions.org Member Intro 2 01-17-2006 05:24 PM
Getting rid of Blue Curve skippy1969 Fedora 2 07-09-2004 05:26 PM
The 'GUI' learning curve... tcritchell Programming 5 10-15-2001 11:07 AM


All times are GMT -5. The time now is 03:25 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration