----- Original Message ----- From: Jane Young <[EMAIL PROTECTED]> Date: Thursday, June 26, 2003 11:25 am Subject: (clug-talk) gtk+ and Xlib
> > I am new to GUI programming as well as Xlib and GTK+, so bear with me > while I ask a newbieish question or two. > I have done some GUI programming, IANAE (I am not an expert) but I will give a stab. First, in the world of X, the toolkit that you are using is there to shield you from raw X11. Believe me raw Xlib is not something that is fun to deal with! What the toolkit is for is to create buttons, listboxes etc so you don't have to write code that deals with each event that is generated by the X11 system. Most graphical programs use a toolkit, like gtk+ to create all the controls (using MS terminology) and write code to respond to the asynchronous events, typically implemented in callback funtions. Even graphical programs like vector drawing programs use what is typically called a Canvas or DrawingArea for the graphics. The most common reason to use Xlib is when you have to have the utmost in speed when dealing with bitmap graphics like a scanner program or an image viewer (correct me if I am wrong on this someone). To summarize, read the gtk+ docs and see if these don't supply what you need already. Only if it doesn't then look into using the X11 library. > I am wondering if somehow the existing Xlib code could be > integrated into a > GTK+ framework. > > Thank you for you help. > > Jane >
