Re: drawing pixels on screen



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]