On Wed, 2 Dec 2015 12:59:43 -0800
Andy Tai <at...@at...> wrote:
> Hi, just curious if there is any plan to wrap gtk+ widgets in C++? Or
> ideally wrap gtk+ objects as C++ objects, via C++ templates...
Hi Andy,
Not really. The wrapping for GTK+ widgets is provided by
Cgu::MainWidgetBase and Cgu::GobjHandle. These are really just objects
to handle GObject (or GtkWidget) lifetimes for RAII purposes, so are
not really a wrapper in the traditional sense: to operate on them you
use the native GTK+ functions.
gtkmm provides the kind of wrapping that you may be after (although it
struggles with thread safety).
Chris
|