[349] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] C++ Wrappers

daemon@ATHENA.MIT.EDU (Jay Painter)
Fri Jun 13 15:01:27 1997

Date: Fri, 13 Jun 1997 11:58:34 -0700 (PDT)
From: Jay Painter <jay@a42.com>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Here's a problem that I'm sure has been solved elegantly by someone.  
I've been porting some software (more like re-writing it) from Qt to GTK, 
and in the process I've played around with some basic C++ wrappers.  
Since GTK uses inhertance, I thought that the wrapper classes could be 
inherited also.  So the problem is how to initalize somthing like this.  
I can't make constructors virtual.  The first solution I thought of was 
to create a _GTKObject which is the object which is the base object which 
gets inherited by derived classes.  _GTKObject has a blank constructor, 
and the functional GTKObject would be created by inheriting _GTKObject 
and adding the proper constructer, which would contain the gtk_new_object 
call or whatever.

Also, I haven't noticed any Postscript printing ability with GTK.  Have I 
just missed it?

-------------------------------------------
Jay Painter -- jay@ssc.com -- jay@a42.com
Systema Admin., SSC/Linux Journal
http://www.a42.com/~jay

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post