Re: [cxx-gtk-utils-general] wrapping widgets?
Brought to you by:
cvine
From: Chris V. <ch...@cv...> - 2015-12-03 11:25:00
|
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 |