Re: learning X programming
- From: Sam <sam@xxxxxxxxxxxxxx>
- Date: Thu, 13 Sep 2007 20:42:15 -0500
Allan Adler writes:
Sam <sam@xxxxxxxxxxxxxx> writes:
Neither. They all describe fairly low-level aspects of X. You will need to spend the rest of your life writing anything useful, at this level. [...]
For C, the practical choice would be Gnome. Look for books about GTK programming. With C++, another choice is the Qt toolkit, although personally I prefer GTK.
I went to
http://www.linuxheadquarters.com/howto/programming/gtk_examples/checkbutton/checkbutton.shtml
I'll look at these examples. I copied some of them to files and compiled
and ran them on my machine. They work ok but they aren't the kind of thing
I'm interested in. I'd like to be able to produce and update graphics based
on certain computations. I've seen programs in C that work directly with
X11 to do things like that. I can just try to imitate them, looking up in
the documents I mentioned the things they actually use in their source code.
That is an approach I like to describe as "learning about it on the streets".
I just wanted to know whether there was simply a book or other document I
could read instead.
There are GTK widgets that you can use as a blank canvas to paint on. GTK will do the heavy lifting and take of all the details. Look at the GtkDrawingArea widget.
See http://library.gnome.org/devel/gtk/2.11/GtkDrawingArea.html
Attachment:
pgp7Gg2LtVp2N.pgp
Description: PGP signature
- Follow-Ups:
- Re: learning X programming
- From: Allan Adler
- Re: learning X programming
- References:
- learning X programming
- From: Allan Adler
- Re: learning X programming
- From: Sam
- Re: learning X programming
- From: Allan Adler
- learning X programming
- Prev by Date: Re: learning X programming
- Next by Date: Re: learning X programming
- Previous by thread: Re: learning X programming
- Next by thread: Re: learning X programming
- Index(es):