Re: Fake inheritance in GDK
- From: murrayc t-online de (Murray Cumming)
- To: Owen Taylor <otaylor redhat com>
- Cc: gtk-devel-list <gtk-devel-list gnome org>
- Subject: Re: Fake inheritance in GDK
- Date: 11 Oct 2001 17:55:33 +0200
On Thu, 2001-10-11 at 17:37, Owen Taylor wrote:
> Well, GdkBitmap is different because there actually is no such thing
> as a bitmap, it's just an alias for GdkPixmap. I'd expect that in
> language bindings this type would not exist. (Use of the GdkBitmap
> type indicates that only depth-1 pixmaps are allowed, but there are
> plenty of other places where we have runtime depth restrictions, so I
> don't see creating a special type for this.)
That's useful advice. I think that'll we'll have to have a Gdk::Bitmap
class, or our C++ wrappers for methods that take GdkBitmap* parameters
will suddenly appear to work with Gdk::Pixmap. But we can probably use
regular C++ inheritance or typedefing for this.
--
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]