Re: drawing pixels on screen
- From: Havoc Pennington <hp redhat com>
- To: gtk-app-devel-list redhat com
- Cc: gtk-list redhat com
- Subject: Re: drawing pixels on screen
- Date: 16 Dec 1999 14:15:27 -0500
Bart Vandewoestyne <Bart.Vandewoestyne@skynet.be> writes:
> I am trying to figure out how to draw lines and circles and stuff like
> that. I have written a little test program, and I can get some grapihcs
> on screen using the gtk_timeout_add() function. Unfortunately, this
> isn't exactly what I want. I want the pixels be drawn once in the
> GdkDrawable, and just be able to enjoy the view without needing to
> update (=recall Draw()) the screen every x seconds. I only want to call
> the Draw() once and put is't output in a GdkDrawable.
> Can someone correct my code, or give me another very simple program that
> just draws a window with a line in it?
Read the chapter in the tutorial with the "scribble" drawing example
in it - I think you'll find that a lot nicer than the timeout
approach.:-)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]