Re: Fake inheritance in GDK



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]