LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-17-2005, 09:30 AM   #1
bertlef
Member
 
Registered: Dec 2004
Location: Costa Rica
Distribution: Ubuntu
Posts: 69

Rep: Reputation: 17
GUI development from scratch


I´m learning c++ and I have found several GUI toolkits. Some of wich I like a lot, but I´m not completely happy with them (for one reason or another).
I am very intersted in GUI development, I would like to know about where to look for info about how to develop GUI´s from scratch.
Books or tutorials, I have been doing some google, but I don´t seem to find anything in this matter.
Another thing, I would like them to be platform independent.
As i said I´m just beggining, but I think that GUI´s is where I would like to get in the future.

Thanks in advance.
 
Old 01-17-2005, 10:30 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
What do you mean by “from scratch”?

If you mean that you'd like to start developing new GUIs using existing libraries, then you may want to take a look at the documentation for Qt (www.troll.no). It provides very good tutorials (and I suspect there's something similar on the gtk homepage, although I haven't used gtk myself).

If, on the other hand, you want to learn how the Linux X-windows GUI works from the X server up, then you should look for documentation on a package called Xlib. Good books on Xlib are few, far between, heavy and expensive (in my experience) but it really is the lowest-level API for GUI development in common usage. There are also alternatives, like SVGAlib for drawing in the console rather than on an X server.
 
Old 01-17-2005, 11:04 AM   #3
bertlef
Member
 
Registered: Dec 2004
Location: Costa Rica
Distribution: Ubuntu
Posts: 69

Original Poster
Rep: Reputation: 17
I´m interested in writing my own libraries, or new libraries (like new widgets) for already made packages like QT, WideStudio, GTK, WxWidgets and so on, not just using what they already have.

For what I can see I will be talking to the Xlib to draw things in the screen, still, I would like it to be OS independent.

Thanks.
 
Old 01-17-2005, 11:20 AM   #4
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Dive deep into GTk, Qt, or whatever tookit, and try to build your tookit on top of their base-classes, or just try first to make extensions to it.

Could save you a lot of hassle, especially if you want to be OS-independent. Even creating a "Hello World" program using Xlib is a non-trivial task at all. Let alone building a whole new API on top of it. You said you were just beginning...
 
Old 01-17-2005, 11:37 AM   #5
bertlef
Member
 
Registered: Dec 2004
Location: Costa Rica
Distribution: Ubuntu
Posts: 69

Original Poster
Rep: Reputation: 17
That´s more less what I´ve been doing (reading their source code).
What I´m looking for is the basics, it is a long term plan.
But I can´t seem to find books or anything that will guide me in this matter.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GUI development options in Linux sureshkellemane Linux - General 7 08-12-2005 02:05 AM
Cross Platform GUI development Artik Programming 15 06-29-2005 06:36 PM
GUI development tool mathew_geo Programming 1 05-27-2004 08:03 AM
Adding a Network card from scratch - not using the gui... mjstempf Linux - Networking 2 10-01-2003 06:14 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration