Find the answer to your Linux question:
Results 1 to 2 of 2
I was hoping to program gtk apps, so I bought a book, Foundations of gtk+ development , however, my primary language is c++, and I later learned that gtkmm is ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    8

    GTK vs GTKmm

    I was hoping to program gtk apps, so I bought a book, Foundations of gtk+ development, however, my primary language is c++, and I later learned that gtkmm is the c++ library for gtk. Is programming in gtk a lot differernt than gtkmm i.e. will I be able to use that book to learn gtkmm?

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    gtkmm basically takes the awkward pseudo-object-oriented interface of Gtk for C and turns it into an actual OO interface in C++. To my knowledge, it is no different besides this. Every class and behaviour in Gtk is replicated, just it's actually OO, as opposed to trying to make C OO.

    From the official gtkmm FAQ:
    2.2. How complete is it?

    gtkmm tries to offer all of the functionality offered by GTK+. This means that you should be able to do anything with gtkmm that's supported by GTK+, and do it more easily. If something isn't covered then we want to know about it.
    So I suspect that it won't be too different, you'll just need to mentally translate between functions and methods.
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...