GTKmm books for complete beginner? Do I need to learn GTK+ before GTKmm? [closed]
开发者_StackOverflow
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this questionI am familiar with C++ & OOP. I really want to develop a GUI for my program running on Linux using GTKmm. However, I could not find any good book or tutorial for GTKmm.
I have never done any GUI programming before. I did read the gtkmm tutorial on GTKmm homepage http://www.gtkmm.org/en/ but I couldn't understand the way labels, widgets, boxes, etc... were arranged and how to use those classes. I got confused right at the start of chapter 4.
Therefore, my questions are:
1. Does any one know a better GTKmm tutorial rather than the one on their homepage? 2. Does learning GTK+ first make learning GTKmm easier?If you are focused on C++, I would stick with GTKmm and not bother with GTK+ C API for now. It's different enough and will probably just confuse you, especially if you do not have a strong C background.
Unfortunately, the 3rd-party documentation of GTKmm is a little lacking. Their tutorial book though I think is top-notch. I would cut/paste, then compile their sample programs. Examining the source is the best way to learn it. For example with Chapter 4 (Buttons), look at the example program here.
Be careful to follow the right tutorial for your version of GTK (GTK2.4 vs. GTK3.0). GTK3 (and GTKmm 3) was just released.
I would recommend to learn the C API first.
GTKmm does a lot of convenience magic that is nice to have but it also hides some details that you should understand. A lot of newbie problems are from memory management, floating and reference counting and destruction of objects.
This book is very good for beginners
精彩评论