Sign in to follow this  
silverphyre673

XWindows programming

Recommended Posts

The closest equivalent to the Windows API is probably kdelibs. It is quite nicely integrated into a suite of libraries to do things ranging from GUIs and HTML rendering to networking and printing. You can probably find everything you need to know about it from developer.kde.org . QT's licensing might be a problem though. AFAIK kdelibs is LGPL so you can link your app to it even if you decide to buy the commercial QT license.

Otherwise you will probably use diffrent libraries for diffrent tasks. I know of no other monolithic API suite for unix than kdelibs. You can use GTK+ (or its C++ wrapper gtkmm) for GUI widgets or SDL for custom rendering (via OpenGL or otherwise).

Share this post


Link to post
Share on other sites
As someone in the process of making an X11 window manager, I sincerely recommend you stay as far away as possible from the horrible mess that is Xlib. Unless you need some advanced features, try to use a higher level library like the ones listed above. Of course, 'graphics and such' is a bit vague, but if you mean GUI stuff, Qt or GTK are your best bets. If you mean graphics such as OpenGL, strongly consider using something simple like SDL or GLFW. Anything to stay away from Xlib, unless you absolutely need it. :-)

Just my humble opinion.

-bodisiw

Share this post


Link to post
Share on other sites
Sign in to follow this