wrap c++ objects with inheritance
- From: Matthew Talbert <ransom1982 gmail com>
- To: GTK Devel <gtk-app-devel-list gnome org>
- Subject: wrap c++ objects with inheritance
- Date: Sat, 6 Nov 2010 03:58:50 -0400
Can anyone point me to documentation or examples of how to wrap C++
objects with gobject and preserve inheritance? I want to do something
like this:
ClassA
ClassB (inherits from ClassA)
and wrap in gobject like this:
GClassA
GClassB
and I need to be able to cast GClassB back to GClassA. GClassA will
have as a private member a pointer to ClassA, and GClassB will have a
pointer to ClassB. What's the most elegant way to do this?
Thanks,
Matthew
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]