Re: Gobject and c++ types.



On Thu, 2009-11-05 at 14:02 +0100, Germán Diago wrote:
> Hello. I'm trying to implement a system that works in a perfect way
> with the GObject C library, so that things are easier to integrate
> c++ classes in tools that use the metadata from GObject, like glade.
> 
> Maybe when I finish this, I could send it here to be able to integrate it
> with glibmm and improve the object model.
> 
> My system must allow to register (yes, with macros, no other way) properties,
> gobjects and signals, etc. So for now, what I can do is the following:
> 
> class MyClass : public glib::object {
> 
> };...
> 
> 
> GLIB_REGISTER_CLASS(MyClass, glib::object);

class MyClass : Glib::Object
{
};

MyClass::MyClass
: Glib::ObjectBase("myclassname")
{
}

will also register a derived GType.


-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]