[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
How to draw a simple line?
- From: Bart Vandewoestyne <Bart Vandewoestyne skynet be>
- To: "gtk-app-devel-list redhat com" <gtk-app-devel-list redhat com>
- Subject: How to draw a simple line?
- Date: Sun, 20 Feb 2000 15:23:18 +0100
OK, my program is evolving... next step is to draw some graphs... i just
need some starting help out here...
I have created a function that returns a drawing area. In that function
I want to do some drawing of basic lines etc (I want to make an X-Y
graph). Kan somebody fill in this program with a very basic setup that
draws a simple white line on a black background? I have read the docs
and reference and played a bit around, but i didn't get to see one line
on my screen :-(
This is the function that returns the GtkDrawingArea:
/*
* drawing.c
*/
#include <gtk/gtk.h>
GtkWidget *mot_new_drawing_area(void)
{
GtkWidget *drawing_area;
drawing_area=gtk_drawing_area_new();
gtk_drawing_area_size(GTK_DRAWING_AREA(drawing_area), 400, 300);
return drawing_area;
}
Thanks for helping me out.
Bart
PS: The full source of my program is on http://hello.to/MC303 -> follow
the link to 'my thesis'.
--
Bart Vandewoestyne http://hello.to/MC303
Hugo Verrieststraat 48 Bart.Vandewoestyne@skynet.be
8550 ZWEVEGEM ICQ# 21275340
BELGIUM - EUROPE nick: MC303
Phone: +32(0)56/75.48.11
-------------------------------------------------------------
"If we knew what it was we were doing, it would not
be called research, would it?"
-- Albert Einstein --
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]